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.
| Name | Table | Address | Ref | Type | Order | Scale | Unit |
|---|---|---|---|---|---|---|---|
| V L1-NValue weight: Volt*10. | Input | 0–1 | 30001 | int32 | CDAB | 0.1 | V |
| V L2-NValue weight: Volt*10. | Input | 2–3 | 30003 | int32 | CDAB | 0.1 | V |
| V L3-NValue weight: Volt*10. | Input | 4–5 | 30005 | int32 | CDAB | 0.1 | V |
| V L1-L2Value weight: Volt*10. | Input | 6–7 | 30007 | int32 | CDAB | 0.1 | V |
| V L2-L3Value weight: Volt*10. | Input | 8–9 | 30009 | int32 | CDAB | 0.1 | V |
| V L3-L1Value weight: Volt*10. | Input | 10–11 | 30011 | int32 | CDAB | 0.1 | V |
| A L1Value weight: Ampere*1000. | Input | 12–13 | 30013 | int32 | CDAB | 0.001 | A |
| A L2Value weight: Ampere*1000. | Input | 14–15 | 30015 | int32 | CDAB | 0.001 | A |
| A L3Value weight: Ampere*1000. | Input | 16–17 | 30017 | int32 | CDAB | 0.001 | A |
| W L1Value weight: W*10. | Input | 18–19 | 30019 | int32 | CDAB | 0.1 | W |
| W L2Value weight: W*10. | Input | 20–21 | 30021 | int32 | CDAB | 0.1 | W |
| W L3Value weight: W*10. | Input | 22–23 | 30023 | int32 | CDAB | 0.1 | W |
| VA L1Value weight: VA*10. | Input | 24–25 | 30025 | int32 | CDAB | 0.1 | VA |
| VA L2Value weight: VA*10. | Input | 26–27 | 30027 | int32 | CDAB | 0.1 | VA |
| VA L3Value weight: VA*10. | Input | 28–29 | 30029 | int32 | CDAB | 0.1 | VA |
| var L1Value weight: var*10. | Input | 30–31 | 30031 | int32 | CDAB | 0.1 | var |
| var L2Value weight: var*10. | Input | 32–33 | 30033 | int32 | CDAB | 0.1 | var |
| var L3Value weight: var*10. | Input | 34–35 | 30035 | int32 | CDAB | 0.1 | var |
| V L-N sysValue weight: Volt*10. | Input | 36–37 | 30037 | int32 | CDAB | 0.1 | V |
| V L-L sysValue weight: Volt*10. | Input | 38–39 | 30039 | int32 | CDAB | 0.1 | V |
| W sysValue weight: W*10. | Input | 40–41 | 30041 | int32 | CDAB | 0.1 | W |
| VA sysValue weight: VA*10. | Input | 42–43 | 30043 | int32 | CDAB | 0.1 | VA |
| var sysValue weight: var*10. | Input | 44–45 | 30045 | int32 | CDAB | 0.1 | var |
| PF L1Value weight: PF*1000. Negative = exported active power, positive = imported. | Input | 46 | 30047 | int16 | 0.001 | ||
| PF L2Value weight: PF*1000. Negative = exported active power, positive = imported. | Input | 47 | 30048 | int16 | 0.001 | ||
| PF L3Value weight: PF*1000. Negative = exported active power, positive = imported. | Input | 48 | 30049 | int16 | 0.001 | ||
| PF sysValue weight: PF*1000. Negative = exported active power, positive = imported. | Input | 49 | 30050 | int16 | 0.001 | ||
| Phase sequence-1 = L1-L3-L2, 1 = L1-L2-L3; meaningful only in a 3-phase system. | Input | 50 | 30051 | int16 | |||
| FrequencyValue weight: Hz*10. | Input | 51 | 30052 | int16 | 0.1 | Hz | |
| kWh (+) TOTValue weight: kWh*10. | Input | 52–53 | 30053 | int32 | CDAB | 0.1 | kWh |
| kvarh (+) TOTValue weight: kvarh*10. | Input | 54–55 | 30055 | int32 | CDAB | 0.1 | kvarh |
| W sys DMDValue weight: W*10. | Input | 56–57 | 30057 | int32 | CDAB | 0.1 | W |
| W sys DMD MAXValue weight: W*10. | Input | 58–59 | 30059 | int32 | CDAB | 0.1 | W |
| kWh (+) PARTIALValue weight: kWh*10. | Input | 60–61 | 30061 | int32 | CDAB | 0.1 | kWh |
| kvarh (+) PARTIALValue weight: kvarh*10. | Input | 62–63 | 30063 | int32 | CDAB | 0.1 | kvarh |
| kWh (+) L1Value weight: kWh*10. | Input | 64–65 | 30065 | int32 | CDAB | 0.1 | kWh |
| kWh (+) L2Value weight: kWh*10. | Input | 66–67 | 30067 | int32 | CDAB | 0.1 | kWh |
| kWh (+) L3Value weight: kWh*10. | Input | 68–69 | 30069 | int32 | CDAB | 0.1 | kWh |
| kWh (+) tariff 1Value weight: kWh*10. | Input | 70–71 | 30071 | int32 | CDAB | 0.1 | kWh |
| kWh (+) tariff 2Value weight: kWh*10. | Input | 72–73 | 30073 | int32 | CDAB | 0.1 | kWh |
| kWh (-) TOTValue weight: kWh*10. | Input | 78–79 | 30079 | int32 | CDAB | 0.1 | kWh |
| kvarh (-) TOTValue weight: kvarh*10. | Input | 80–81 | 30081 | int32 | CDAB | 0.1 | kvarh |
| kVAh TOTValue weight: kVAh*10. | Input | 86–87 | 30087 | int32 | CDAB | 0.1 | kVAh |
| Run hour meterValue weight: hours*100. | Input | 90–91 | 30091 | int32 | CDAB | 0.01 | h |
| THD A L1Value weight: %*100. | Input | 130–131 | 30131 | int32 | CDAB | 0.01 | % |
| THD A L2Value weight: %*100. | Input | 132–133 | 30133 | int32 | CDAB | 0.01 | % |
| THD A L3Value weight: %*100. | Input | 134–135 | 30135 | int32 | CDAB | 0.01 | % |
| THD V L1-NValue weight: %*100. | Input | 138–139 | 30139 | int32 | CDAB | 0.01 | % |
| THD V L2-NValue weight: %*100. | Input | 140–141 | 30141 | int32 | CDAB | 0.01 | % |
| THD V L3-NValue weight: %*100. | Input | 142–143 | 30143 | int32 | CDAB | 0.01 | % |
| Neutral current (An)Value weight: Ampere*1000. | Input | 152–153 | 30153 | int32 | CDAB | 0.001 | A |
| Digital input status0 = input open, 1 = input closed. | Input | 768 | 30769 | int16 | |||
| Active tariff0 = none, 1 = tariff 1, 2 = tariff 2. | Input | 769 | 30770 | int16 | |||
| Firmware versionMSB bits 4..7 = major, bits 0..3 = minor; LSB = revision. Read one word at a time. | Input | 770 | 30771 | uint16 | |||
| RS485 instrument addressWritable. 1 to 247, default 1. | Holding | 8192 | 48193 | uint16 | |||
| RS485 baud rateWritable. 1 = 9.6k (default), 2 = 19.2k, 3 = 38.4k, 4 = 57.6k, 5 = 115.2 kbps. | Holding | 8193 | 48194 | uint16 | |||
| RS485 parityWritable. 1 = none (default), 2 = even. | Holding | 8194 | 48195 | uint16 | |||
| RS485 stop bitsWritable. 0 = 1 stop bit (default), 1 = 2 stop bits; fixed to 1 with even parity. | Holding | 8195 | 48196 | uint16 |
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