fogh62
06/20/2025, 9:06 AMjanikkn
06/20/2025, 10:50 AMinput:
modbus:
controller: 'tcp://<your-device-ip>:502'
slaveIDs:
- 5
- 10
timeout: '1s'
timeBetweenReads: '1s'
addresses:
- name: "yourRegisterName"
register: "holding"
address: 10
type: "BIT"
output: "BOOL"
Hey @fogh62 it should be something like this, i assumed by node you're speaking about the slaveIDs.
Then for the addresses part you have to specify the address e.g. holding register 10 and in register you specify the type in this case holding
All those configuration options can be seen here in the documentation https://docs.umh.app/benthos-umh/input/modbusfogh62
06/20/2025, 10:59 AMjanikkn
06/20/2025, 11:02 AMtype: "BIT is basically what you have inside the plc, so whether its a bit that was written or a UINT16 or whatever data structure is used.
the output : "BOOL" is to what it converts, bool is basically 1 BIT which can have the value 1 or 0, which then is basically a bit