Every device. One tool. Pay once. Modbus · BACnet · Siemens S7 · one-time licence · also from us: BACManager ↗

Carlo Gavazzi EM340 and EM24 Modbus: Registers, Scaling, Word Order

Carlo Gavazzi meters — the EM340 on RS-485 and the EM24 with Ethernet are among the most common — share one register map and one set of habits: values are integers with a fixed weight (volts × 10, amps × 1000), 32-bit values come low word first, and FC03 and FC04 return the same thing. This page covers the map, the scaling and the settings from Carlo Gavazzi's own protocol documents, plus a register that changes meaning depending on how you read it.

ModbusManager Pro dashboard for a Carlo Gavazzi EM340 on a workshop sub-board: three-phase meter with voltages, currents, powers and power factors and a current-unbalance warning, imported and exported kWh, apparent and reactive power, phase sequence, the identification code read as EM340, frequency and a trend of the three phase currents
The free workspace below on a simulated EM340 — INT32 low word first, weights applied.

Connection Settings

SettingEM340 (RS-485, RTU)EM24-DIN E1 (Ethernet, TCP)
Address / IP1 (1–247), register 2000h192.168.1.10 / 255.255.255.0, DHCP off
Baud / port9600 (up to 115200), 2001hTCP port 502 (210Ch)
Parity / stopnone, 1 stop (2002h / 2003h)—
Terminationbridge A− to T on the last meter—

On the EM24 E1, IP changes written to 2100h–210Dh only apply after writing 1 to 210Eh (apply TCP/IP changes). Two stop bits on the EM340 are only possible with even parity.

Addresses: Modicom and Physical

Gavazzi lists every value twice: a six-digit "Modicom" address such as 300001 and a "physical" address such as 0000h — the physical one is what goes in the frame. Physical = Modicom − 300001. With FC03 the Modicom address starts with 4 instead of 3, and FC03 and FC04 have exactly the same effect: use whichever your master prefers.

Measurement Registers (EM340, EM24 alike)

PhysicalValueTypeWeight
0000h / 0002h / 0004hV L1-N / L2-N / L3-NINT32V × 10
0006h / 0008h / 000AhV L1-L2 / L2-L3 / L3-L1INT32V × 10
000Ch / 000Eh / 0010hA L1 / L2 / L3INT32A × 1000
0012h / 0014h / 0016hW L1 / L2 / L3INT32W × 10
0028hW systemINT32W × 10
002Ah / 002ChVA system / var systemINT32× 10
002Eh–0031hPF L1, L2, L3, systemINT16PF × 1000, negative = export
0032hPhase sequenceINT160 = L1-L2-L3, 1 = L1-L3-L2
0033hFrequencyINT16Hz × 10
0034hkWh (+) totalINT32kWh × 10
004EhkWh (−) totalINT32kWh × 10
0038h / 003AhkW demand / peakINT32W × 10
0040h–0044hkWh (+) L1, L2, L3INT32kWh × 10

Low word first

"In INT32, UINT32 and UINT64 formats, the word order is LSW → MSW." V L1-N at 230.5 V is 2305 = 0x00000901, sent as 0901 0000. Read high word first and you get 151 060 480 — or, more often, a voltage that looks fine at first and jumps wildly as soon as the value passes 6553.5. Most Modbus tools call this "word swap", "little-endian words" or "CDAB".

An overflowing value (display "EEE") reads FFFF 7FFF in the frame — 0x7FFFFFFF.

One address, two meanings: 000Bh

000Bh is the high word of V L3-L1 (000Ah–000Bh) — and also the meter's identification code, which the protocol says is read "limited to a word at a time": 341 for an EM340, 345 for an ET340, 332 for an EM330. A one-word read of 000Bh returns the code; a block read across 000Bh returns the voltage word. If your master merges requests, the code can come back as 0. The workspace reads it alone, with FC03.

Easy connection or bidirectional

Models ending PF A count in "easy connection" mode: current and power always positive, kWh always increasing whatever the direction — the right choice when a CT may be fitted backwards. PF B models are bidirectional: negative power is export and goes to kWh (−) at 004Eh. On a PV or battery circuit you need the PF B variant.

Common Mistakes

Step-by-Step: Reading an EM340 with ModbusManager

  1. Wire A−, B+ and GND; bridge A− to T on the last meter of the line.
  2. In ModbusManager choose RTU, 9600, no parity, 1 stop bit, unit 1 (the defaults).
  3. Poll FC04 from address 0, quantity 18, display Int32 with swapped words, and divide by 10 for volts.
  4. Open the workspace below for all values scaled and the three-phase meter.

Download a Ready-Made Workspace

Read-only. For an EM24 E1 change the connection to TCP, 192.168.1.10, port 502 — the registers are the same. Tags and dashboard are ModbusManager Pro features; Standard opens the poll windows only.

CarloGavazzi_EM340.json

Carlo Gavazzi EM340 / EM24 workspace. Open via Workspace › Open in ModbusManager Pro.

Download Workspace

Try it with ModbusManager Pro

Three-phase meter element, historian and energy reports. Free 14-day trial. No credit card. Windows 10/11.

Download Pro Trial

Other meters: Eastron SDM630 (Float32, FC04), Schneider PM3250 (Float32, FC03), Eastron SDM230 / SDM72.

Frequently Asked Questions

What is the word order of Carlo Gavazzi EM340 registers?

Low word first. The protocol says INT32, UINT32 and UINT64 values are sent LSW to MSW, with each word big-endian — often called word swap or CDAB.

How are EM340 values scaled?

They are integers with a fixed weight: voltage × 10, current × 1000, power × 10 (W), power factor × 1000, frequency × 10 and energy × 10 (kWh).

Should I use FC03 or FC04 with Carlo Gavazzi meters?

Either: the protocol says functions 03h and 04h have exactly the same effect. The physical address is the Modicom address minus 300001, so V L1-N 300001 is address 0.

What is the default IP address of the Carlo Gavazzi EM24 Ethernet?

The EM24-DIN E1 is set to 192.168.1.10, mask 255.255.255.0, gateway 192.168.1.1, DHCP off, Modbus TCP port 502. After changing them, write 1 to register 210Eh to apply.

Why does the EM340 identification code read 0?

Address 000Bh is also the high word of V L3-L1. The code (341 for an EM340) is returned only when 000Bh is read as a single word, not inside a block.

Sources

Carlo Gavazzi, EM300 Series and ET300 Series Communication Protocol, Version 2 Revision 17 (2021-07-05), and EM24-DIN E1 (Ethernet) Communication Protocol, Version 0 Revision 1.3, both from Carlo Gavazzi's download server. The RS-485 EM24-DIN has its own protocol document, which is not on the Carlo Gavazzi server; check it for your model. Tested against a simulator built from these documents, not a physical meter.

// meters on RS-485 and Ethernet

Every meter in one map

EM340s on RS-485 and EM24s on the LAN: ModbusManager Pro reads both, applies the weights and the word order once, and republishes clean kW and kWh as one Modbus TCP map or over MQTT.

Modbus gateway software →