RegisterDef#
- pydantic model RegisterDef[source]#
Bases:
BaseModelDefinition of a Modbus register.
Note
Swap options control byte ordering for multi-byte values: -
byte_swap: swap bytes within each 16-bit word -word_swap: swap 16-bit words (for 32-bit and 64-bit types) -long_swap: swap 32-bit longs (for 64-bit types only)All swap options default to False (big-endian / network byte order).
scaleis not allowed for coils and discrete inputs.
- field register_type: RegisterType = 'holding'#
- field data_type: DataType = 'uint16'#