Skip to main content

Modbus map

The RTU-X works as a Modbus slave. The address map for the different register blocks is shown below: Coils, Inputs, Input Registers, and Holding Registers.

Addressing

The addresses in the table follow the standard Modbus convention (0xxxx for Coils, 1xxxx for Inputs, 3xxxx for Input Registers, and 4xxxx for Holding Registers). See also the Serial and Modbus section for the Slave ID and TCP port configuration.

AddressDescriptionLengthType
Coils
00.001Digital outputs14bool[14]
Inputs
10.001Digital inputs14bool[14]
Input Registers
30.001Analog inputs8uint[3]
30.009Firmware version1uint
30.010Battery percentage1uint
30.011Battery status1uint
30.012Model (IP68 or DIN)1uint
30.013Module in expansion socket 11uint
30.014Module in expansion socket 21uint
30.015WiFi - status1uint
30.016WiFi - IP address2byte[4]
30.018WiFi - MAC address3byte[6]
30.021WiFi - signal1int
30.022Modem - status1uint
30.023Modem - IP address (IPv4 or IPv6)8byte[16]
30.031Modem - IMEI8char[16]
30.039Modem - IMSI8char[16]
30.047Modem - signal level1int
30.048Modem - model1uint
30.049Hour1uint
30.050Minutes1uint
30.051Seconds1uint
30.052Day of month1uint
30.053Month1uint
30.054Year1uint
30.055Day of week (0 = Sunday)1uint
30.056Unix time in seconds, UTC2ulong
30.058Unix time in seconds, local time2ulong
30.060User button status1bool
30.061Number of records stored in the log2ulong
30.063Number of records stored in the log that haven't been sent over MQTT yet2ulong
30.065Slaves status. Each bit represents the status of a slave (0 means ok and 1 error)2ulong
30.067Script execution status (0 means stopped and 1 means running)1bool
30.071MQTT connection status1uint
30.072Time synchronization performed via NTP1bool
30.073Internal sensor temperature in ºC2float
30.075GPS latitude2float
30.077GPS longitude2float
30.079GPS altitude2float
30.081GPS speed2float
30.083Energy Meter - voltage4float[2]
30.087Energy Meter - current4float[2]
30.091Energy Meter - active power4float[2]
30.095Energy Meter - reactive power4float[2]
30.099Energy Meter - apparent power4float[2]
30.103Energy Meter - power factor4float[2]
30.107Energy Meter - frequency4float[2]
30.111Energy Meter - active energy4float[2]
30.115Energy Meter - reactive energy4float[2]
Holding Registers
40.001Date and time (Hours, Minutes, Seconds, Day, Month, Year)6 uint[6]
40.007Clear log. Set to one to clear the log1bool
40.080Scanner - current wifi device count1uint
40.081Scanner - total wifi device count1uint
40.082Scanner - current bluetooth device count1uint
40.083Scanner - total bluetooth device count1uint
41.001Script variables.1000See variable map in the user interface
42.001Pulse count for digital input 02ulong
42.003Pulse count for digital input 12ulong