2024-04-23 05:45:25 +02:00
|
|
|
uart:
|
2024-05-22 06:17:32 +02:00
|
|
|
- id: uart_modbus_client
|
2024-04-23 05:45:25 +02:00
|
|
|
tx_pin: 17
|
|
|
|
rx_pin: 16
|
|
|
|
baud_rate: 9600
|
2024-05-22 06:17:32 +02:00
|
|
|
- id: uart_modbus_server
|
|
|
|
tx_pin: 1
|
|
|
|
rx_pin: 3
|
|
|
|
baud_rate: 9600
|
2024-04-23 05:45:25 +02:00
|
|
|
|
|
|
|
modbus:
|
2024-05-22 06:17:32 +02:00
|
|
|
- id: mod_bus1
|
|
|
|
uart_id: uart_modbus_client
|
|
|
|
flow_control_pin: 15
|
|
|
|
- id: mod_bus2
|
|
|
|
uart_id: uart_modbus_server
|
|
|
|
role: server
|
2024-04-23 05:45:25 +02:00
|
|
|
|
|
|
|
modbus_controller:
|
|
|
|
- id: modbus_controller1
|
|
|
|
address: 0x2
|
|
|
|
modbus_id: mod_bus1
|
2024-09-03 01:56:19 +02:00
|
|
|
allow_duplicate_commands: false
|
2024-05-22 06:17:32 +02:00
|
|
|
- id: modbus_controller2
|
|
|
|
address: 0x2
|
|
|
|
modbus_id: mod_bus2
|
|
|
|
server_registers:
|
|
|
|
- address: 0x0000
|
|
|
|
value_type: S_DWORD_R
|
|
|
|
read_lambda: |-
|
|
|
|
return 42.3;
|
2024-09-11 07:21:31 +02:00
|
|
|
max_cmd_retries: 0
|