modbus input
Creates an input that reads data from Modbus devices. Created & maintained by the United Manufacturing Hub. About us: www.umh.app
- Common
- Advanced
# Common config fields, showing default values
input:
label: ""
modbus:
controller: "tcp://localhost:502"
slaveIDs: [1]
unifiedAddresses: []
# All config fields, showing default values
input:
label: ""
modbus:
timeBetweenReads: "1s"
controller: "tcp://localhost:502"
transmissionMode: "TCP"
slaveIDs: [1]
timeout: "1s"
busyRetries: 3
busyRetriesWait: "200ms"
optimization: "none"
optimizationMaxRegisterFill: 50
byteOrder: "ABCD"
workarounds:
pauseAfterConnect: "0s"
oneRequestPerField: false
readCoilsStartingAtZero: false
stringRegisterLocation: ""
timeBetweenRequests: "0s"
unifiedAddresses: []
This input plugin enables Expanso Edge to read data directly from Modbus devices using the Modbus protocol.
Fields
timeBetweenReads
The time between two reads of a Modbus device. Useful if you want to read the device every x seconds. Not to be confused with TimeBetweenRequests.
Type: string
Default: "1s"
controller
The Modbus controller address, e.g., 'tcp://localhost:502'
Type: string
Default: "tcp://localhost:502"
transmissionMode
Transmission mode: 'TCP', 'RTUoverTCP', or 'ASCIIoverTCP'
Type: string
Default: "TCP"
slaveIDs
Slave IDs of the Modbus devices to read from 1-255
Type: array of int
Default: [1]
timeout
Type: string
Default: "1s"
busyRetries
Maximum number of retries when the device is busy
Type: int
Default: 3
busyRetriesWait
Time to wait between retries when the device is busy
Type: string
Default: "200ms"
optimization
Request optimization algorithm: 'none' or 'max_insert'
Type: string
Default: "none"
optimizationMaxRegisterFill
Maximum number of registers to insert for optimization
Type: int
Default: 50
byteOrder
Byte order: 'ABCD', 'DCBA', 'BADC', or 'CDAB'
Type: string
Default: "ABCD"
workarounds
Modbus workarounds. Required by some devices to work correctly. Should be left alone by default and must not be changed unless necessary.
Type: object
workarounds.pauseAfterConnect
Pause after connect to delay the first request
Type: string
Default: "0s"
workarounds.oneRequestPerField
Send each field in a separate request
Type: bool
Default: false
workarounds.readCoilsStartingAtZero
Read coils starting at address 0 instead of 1
Type: bool
Default: false
workarounds.stringRegisterLocation
String byte-location in registers: 'lower', 'upper', or empty for both
Type: string
Default: ""
workarounds.timeBetweenRequests
TimeBetweenRequests is the time between two requests to the same device. Useful to avoid flooding the device. Not to be confused with TimeBetweenReads.
Type: string
Default: "0s"
unifiedAddresses
Unified address strings. Format: 'name.register.address.type[:key=value]*'. Mutually exclusive with 'addresses'; providing both will result in an error.
Type: array of string
Default: []