type

ModbusAddr

ModbusAddr : ProtocolAddr

ModbusAddr contains all info required to connect to a modbus point Only supports decimal format (no hex or modicon) Fields:

  • addr: Modbus address (0=Coil, 1=Input, 3=Holding Reg, 4=Input Reg). Must follow 0xxxx-'4xxxx' pattern.
  • encoding: Data format for interpretation.
  • bitIndex: (0-15) Optional bit position within a register.
  • access: "r" (default) or "rw" (Read/Write).
  • scale: Multiplier for raw values (default 1).
  • offset: Optional offset value applied after scaling.
  • byteOrder: Optional, defines endianness for multi-register values.

Example: { "addr": "40001", "encoding": "u2", "scale": 10, "access": "rw" }

slots addr

Must follow standard Modbus addressing rules (0xxxx-4xxxx)

encoding

Specifies data representation format

bitIndex

Optional bit index within a register

access

Read/write access

scale

Scaling factor for raw values

offset

Optional offset applied after scaling

byteOrder

Defines byte ordering for multi-register values

addr Str <pattern:[0-4](\d{4})>

Must follow standard Modbus addressing rules (0xxxx-4xxxx)

encoding ModbusEncoding

Specifies data representation format

bitIndex Int? <maxVal:15, minVal:0>

Optional bit index within a register

access ModbusAccess <val:r>

Read/write access

scale Number <val:1>

Scaling factor for raw values

offset Number?

Optional offset applied after scaling

byteOrder ModbusByteOrder?

Defines byte ordering for multi-register values

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST