Modbus v5.2.1
The printer can act as a Modbus TCP server. Register mappings are configured in the printer settings. A register mapped as Internal is a plain storage slot that is not tied to a counter, variable, or other printer function. When an internal register is given a name, its value can also be read and written with the Aurora API. This lets a Modbus master and an Aurora API client (for example an extension) exchange data through the register.
The value of a named register is represented according to the register type:
| Type | JSON value |
|---|---|
INT16, UINT16, INT32, UINT32 | An integer within the range of the type. |
STRING | A string of at most two bytes per register. |
BLOCK | An array of 16-bit words (integers from 0 to 65535), one per register. |
Named register values are saved and restored across restarts.
Every write to a named register, from the Modbus master or from the Aurora API, increments the register's generation. The generation is not saved, and starts from zero when the printer restarts. Use waitModbusValue with the last seen generation to wait for the next write.