Hi. I don't fully understand the setup
# umh-support
f
Hi. I don't fully understand the setup of a modbusTCP bridge. So does anybody have a sample of a bridge configuration reading 10 HR from addr 100 from node 5 and 10.
j
Copy code
input:
  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/modbus
f
Hi Janik, thanks. I don't understand the BIT and BOOL stuff. But I will dig into the manual later. THANKS
j
no worries, feel free to ask if there is anything I can help you with. the
type: "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
3 Views