OTDeck

Energy meter · Modbus RTU

Carlo Gavazzi EM540 Modbus register map

Three-phase DIN-rail energy analyzer (EM540 direct 65 A, EM530 CT input) with RS-485 Modbus RTU. 58 registers below, copied from the vendor's document; OTDeck adds them to a connection with Register map → Add from library.

Also covers
EM530, EM540DINAV23XS1X, EM540DINAV23XS1PFA, EM540DINAV23XS1PFB, EM540DINAV23XS1PFC, EM530DINAV53XS1X
Link
Modbus RTU (RS-485)
Serial default
9600 baud, 8N1
Unit id default
1
Source
EM530/EM540 MODBUS Communication Protocol (public version), Version 1.3 (February 13th, 2024)
Addresses
The doc gives a 6-digit Modicon address (300001-based, function 04; replace leading 3 with 4 for function 03) and the 'Physical address' in hex. Address here = the physical address = Modicon address - 300001 (e.g. 300053 -> 0034h). Function 03 and 04 return the same data; the templates use the input table for measurements and the holding table for writable configuration (308193 -> 2000h).

Function codes 03h and 04h have exactly the same effect and can be used interchangeably; 06h and 10h write holding registers; broadcast (address 0) only for 06h/10h. Byte order is MSB first; for INT32/UINT32/UINT64 the word order is LSW first (low word at the lower address). Values are scaled integers (see each register's value weight). Request quantity is listed as 1 to 20 registers (14h) in the frame tables, although the text mentions up to 125; keep reads to 20 registers. Max answer time 500 ms. Reading an address not in the tables returns an illegal data address exception. Carlo Gavazzi identification code (model) is at 000Bh, read one word at a time (it shares the address with the high word of V L3-L1, so it is not listed as a separate range). Doc also provides INT64 energy totals in Wh at 0500h; left out because the doc does not state the INT64 word order. Defaults per doc: address 1, 9600 baud, no parity, 1 stop bit.

Registers

Address: the 0-based protocol address sent on the wire. Ref: the same register in 1-based notation (40001 = holding 0). Scale: multiply the raw value by it.

NameTableAddressRefTypeOrderScaleUnit
V L1-NValue weight: Volt*10.Input0–130001int32CDAB0.1V
V L2-NValue weight: Volt*10.Input2–330003int32CDAB0.1V
V L3-NValue weight: Volt*10.Input4–530005int32CDAB0.1V
V L1-L2Value weight: Volt*10.Input6–730007int32CDAB0.1V
V L2-L3Value weight: Volt*10.Input8–930009int32CDAB0.1V
V L3-L1Value weight: Volt*10.Input10–1130011int32CDAB0.1V
A L1Value weight: Ampere*1000.Input12–1330013int32CDAB0.001A
A L2Value weight: Ampere*1000.Input14–1530015int32CDAB0.001A
A L3Value weight: Ampere*1000.Input16–1730017int32CDAB0.001A
W L1Value weight: W*10.Input18–1930019int32CDAB0.1W
W L2Value weight: W*10.Input20–2130021int32CDAB0.1W
W L3Value weight: W*10.Input22–2330023int32CDAB0.1W
VA L1Value weight: VA*10.Input24–2530025int32CDAB0.1VA
VA L2Value weight: VA*10.Input26–2730027int32CDAB0.1VA
VA L3Value weight: VA*10.Input28–2930029int32CDAB0.1VA
var L1Value weight: var*10.Input30–3130031int32CDAB0.1var
var L2Value weight: var*10.Input32–3330033int32CDAB0.1var
var L3Value weight: var*10.Input34–3530035int32CDAB0.1var
V L-N sysValue weight: Volt*10.Input36–3730037int32CDAB0.1V
V L-L sysValue weight: Volt*10.Input38–3930039int32CDAB0.1V
W sysValue weight: W*10.Input40–4130041int32CDAB0.1W
VA sysValue weight: VA*10.Input42–4330043int32CDAB0.1VA
var sysValue weight: var*10.Input44–4530045int32CDAB0.1var
PF L1Value weight: PF*1000. Negative = exported active power, positive = imported.Input4630047int160.001
PF L2Value weight: PF*1000. Negative = exported active power, positive = imported.Input4730048int160.001
PF L3Value weight: PF*1000. Negative = exported active power, positive = imported.Input4830049int160.001
PF sysValue weight: PF*1000. Negative = exported active power, positive = imported.Input4930050int160.001
Phase sequence-1 = L1-L3-L2, 1 = L1-L2-L3; meaningful only in a 3-phase system.Input5030051int16
FrequencyValue weight: Hz*10.Input5130052int160.1Hz
kWh (+) TOTValue weight: kWh*10.Input52–5330053int32CDAB0.1kWh
kvarh (+) TOTValue weight: kvarh*10.Input54–5530055int32CDAB0.1kvarh
W sys DMDValue weight: W*10.Input56–5730057int32CDAB0.1W
W sys DMD MAXValue weight: W*10.Input58–5930059int32CDAB0.1W
kWh (+) PARTIALValue weight: kWh*10.Input60–6130061int32CDAB0.1kWh
kvarh (+) PARTIALValue weight: kvarh*10.Input62–6330063int32CDAB0.1kvarh
kWh (+) L1Value weight: kWh*10.Input64–6530065int32CDAB0.1kWh
kWh (+) L2Value weight: kWh*10.Input66–6730067int32CDAB0.1kWh
kWh (+) L3Value weight: kWh*10.Input68–6930069int32CDAB0.1kWh
kWh (+) tariff 1Value weight: kWh*10.Input70–7130071int32CDAB0.1kWh
kWh (+) tariff 2Value weight: kWh*10.Input72–7330073int32CDAB0.1kWh
kWh (-) TOTValue weight: kWh*10.Input78–7930079int32CDAB0.1kWh
kvarh (-) TOTValue weight: kvarh*10.Input80–8130081int32CDAB0.1kvarh
kVAh TOTValue weight: kVAh*10.Input86–8730087int32CDAB0.1kVAh
Run hour meterValue weight: hours*100.Input90–9130091int32CDAB0.01h
THD A L1Value weight: %*100.Input130–13130131int32CDAB0.01%
THD A L2Value weight: %*100.Input132–13330133int32CDAB0.01%
THD A L3Value weight: %*100.Input134–13530135int32CDAB0.01%
THD V L1-NValue weight: %*100.Input138–13930139int32CDAB0.01%
THD V L2-NValue weight: %*100.Input140–14130141int32CDAB0.01%
THD V L3-NValue weight: %*100.Input142–14330143int32CDAB0.01%
Neutral current (An)Value weight: Ampere*1000.Input152–15330153int32CDAB0.001A
Digital input status0 = input open, 1 = input closed.Input76830769int16
Active tariff0 = none, 1 = tariff 1, 2 = tariff 2.Input76930770int16
Firmware versionMSB bits 4..7 = major, bits 0..3 = minor; LSB = revision. Read one word at a time.Input77030771uint16
RS485 instrument addressWritable. 1 to 247, default 1.Holding819248193uint16
RS485 baud rateWritable. 1 = 9.6k (default), 2 = 19.2k, 3 = 38.4k, 4 = 57.6k, 5 = 115.2 kbps.Holding819348194uint16
RS485 parityWritable. 1 = none (default), 2 = even.Holding819448195uint16
RS485 stop bitsWritable. 0 = 1 stop bit (default), 1 = 2 stop bits; fixed to 1 with even parity.Holding819548196uint16

Check the firmware and document version of your device against the source; registers differ between versions. Found a mistake? Write to support@otdeck.com. Product names are trademarks of their owners; OTDeck is not affiliated with them.

Download OTDeck, free for one connection All devices Modbus client