04-06-2023, 03:32 AM
modbus:
- name: hub1
type: serial
baudrate: 9600
bytesize: 8
method: rtu
parity: N
port: /dev/ttyS0
stopbits: 1
switches:
- name: Modbus-S1
slave: 1
address: 0
write_type: coil
- name: Modbus-S2
slave: 1
address: 1
write_type: coil
- name: Modbus-S3
slave: 1
address: 2
write_type: coil
- name: Modbus-S4
slave: 1
address: 3
write_type: coil
- name: Modbus-S5
slave: 1
address: 4
write_type: coil
- name: Modbus-S6
slave: 1
address: 5
write_type: coil
- name: Modbus-S7
slave: 1
address: 6
write_type: coil
- name: Modbus-S8
slave: 1
address: 7
write_type: coil
- name: Modbus-S9
slave: 1
address: 8
write_type: coil
- name: Modbus-S10
slave: 1
address: 9
write_type: coil
- name: Modbus-S11
slave: 1
address: 10
write_type: coil
- name: Modbus-S12
slave: 1
address: 11
write_type: coil
- name: Modbus-S13
slave: 1
address: 12
write_type: coil
- name: Modbus-S14
slave: 1
address: 13
write_type: coil
- name: Modbus-S15
slave: 1
address: 14
write_type: coil
- name: Modbus-S16
slave: 1
address: 15
write_type: coil
- name: hub1
type: serial
baudrate: 9600
bytesize: 8
method: rtu
parity: N
port: /dev/ttyS0
stopbits: 1
switches:
- name: Modbus-S1
slave: 1
address: 0
write_type: coil
- name: Modbus-S2
slave: 1
address: 1
write_type: coil
- name: Modbus-S3
slave: 1
address: 2
write_type: coil
- name: Modbus-S4
slave: 1
address: 3
write_type: coil
- name: Modbus-S5
slave: 1
address: 4
write_type: coil
- name: Modbus-S6
slave: 1
address: 5
write_type: coil
- name: Modbus-S7
slave: 1
address: 6
write_type: coil
- name: Modbus-S8
slave: 1
address: 7
write_type: coil
- name: Modbus-S9
slave: 1
address: 8
write_type: coil
- name: Modbus-S10
slave: 1
address: 9
write_type: coil
- name: Modbus-S11
slave: 1
address: 10
write_type: coil
- name: Modbus-S12
slave: 1
address: 11
write_type: coil
- name: Modbus-S13
slave: 1
address: 12
write_type: coil
- name: Modbus-S14
slave: 1
address: 13
write_type: coil
- name: Modbus-S15
slave: 1
address: 14
write_type: coil
- name: Modbus-S16
slave: 1
address: 15
write_type: coil