Skip to main content

Modbus System Server

warning

This file has been auto-generated. Do not modify.

EMS-ESP provides a server with general read only information with unit ID 1. It answers function code 04 (read input registers) and provides the following data:

NameDescriptionRegister offsetRegister count
NUM_DEVICESThe number of devices recognized on the EMS bus11
REGISTER_MAP_VERSIONVersion of the entity/register map. It starts at 1 and only increases when an existing register is moved or removed, not when new registers are added. A Modbus client can read this once and stop if the value is not the one it was mapped against.21
DEVICE_TYPE_AND_IDThe device type and ID for each device. "n" in the register offset is the index of the device with 0 <= n < NUM_DEVICES. The first byte of the 16 bit value contains the device type, the second byte contains the device ID.1000 + n1