ModbusAddr
ModbusAddr : ProtocolAddr
ModbusAddr contains all info required to connect to a modbus point. Only supports 6-digit extended Modicon format (no hex or decimal).
Example:
{ "addr": "400001", "encoding": "u2", "scale": "+32768 /10", "access": "rw" , "dis": "Run Cmd"}
Must follow 6-digit extended Modicon address format
Specifies data representation format
Optional bit index within a register
"r" (default), "rw" (Read/Write), or "w" (Write Only)
Optional ordered op chain applied to the raw value
Optional - defines byte ordering and endianness
Optional but preferred vendor human-readable point name
Str <pattern:[0134]\d{5}>
Must follow 6-digit extended Modicon address format. Leading digit selects the type/function; the remaining 5 digits are the 1-based register number. Only the following register values are allowed:
0xxxxx Coil 000001-065536
1xxxxx Discrete Input 100001-165536
3xxxxx Input Register 300001-365536
4xxxxx Holding Register 400001-465536
ModbusEncoding
Specifies data representation format
Int? <maxVal:15, minVal:0>
Optional bit index within a register
ModbusAccess <val:r>
"r" (default), "rw" (Read/Write), or "w" (Write Only)
ModbusScaleExpr?
Optional ordered op chain applied to the raw value.
ModbusByteOrder?
Optional - defines byte ordering and endianness
Str?
Optional but preferred vendor human-readable point name