- Home
- Modbus register maps
- Teracom
- TDI340 4-channel S0 pulse counter with Modbus RTU
Energy meter (S0 pulse counter / digital input module) · Modbus register map
Teracom TDI340 4-channel S0 pulse counter with Modbus RTU Modbus register map
Updated 19 November 2026
The TDI340 is a Teracom DIN-rail module with four isolated S0 inputs (IEC 62053-31) and a Modbus RTU RS-485 port. Each input has a 32-bit pulse counter in polling or edge mode, a scaled real value and an open/closed state, with optional debounce delays.
This page lists 50 Modbus registers for the Teracom TDI340 4-channel S0 pulse counter with Modbus RTU — 32 writable — with the table, 0-based wire address, data type, word order, scale, units and access of each, re-typed from Teracom’s own free documentation (linked below) and checked against it.
- Manufacturer
- Teracom
- Model
- TDI340 4-channel S0 pulse counter with Modbus RTU
- Equipment type
- Energy meter (S0 pulse counter / digital input module)
- Registers
- 50 (32 writable)
- Transport
- Modbus RTU
- Default unit ID
- 1
- Default serial
- 19200 baud, 8E1
- Documented addressing
- Modicon 3xxxx/4xxxx (drop the prefix, subtract 1)
- 32-bit word order
- ABCD high word first (big-endian)
- Firmware
- V1.06 or later
- Also known as
- TDI340
- Source document
- TDI340 User manual · Revision R1.11 · rev. 2026-10
Integration notes: Teracom TDI340 4-channel S0 pulse counter with Modbus RTU
Read the four 32-bit counters at PDU 210-217 (or real values at PDU 230-237) with function 03. Set each input's mode and edge first; edge mode is the factory default.
Minimum registers to map
Addresses are 0-based wire addresses. Enough to monitor and run the unit; map more as the job needs.
| Register | Name | Type | Why | Access |
|---|---|---|---|---|
| HR 210 | Counter Input1 (32-bit) | UINT32 ABCD | Counter input 1 | Read/write |
| HR 212 | Counter Input2 (32-bit) | UINT32 ABCD | Counter input 2 | Read/write |
| HR 230 | Counter Input1 real value | FLOAT32 ABCD | Real value input 1 | Read |
| HR 200 | All digital inputs (bitmask) | BITMAP16 | All input states | Read |
| HR 110 | Counter mode Input1 | UINT16 | Counter mode input 1 | Read/write |
| DI 1 | Input1 | BIT | Input 1 state | Read |
Enable Modbus control & writes
Modbus RTU is the only interface and is always active; there is nothing to switch on. Factory settings are address 1, 19200 baud, 8E1.
Byte order & addressing
- Baud rate and framing changes only take effect after the device is powered off and on again.
- Word order for every 32-bit value is set by the Data order register (PDU 13); check it before blaming the scaling.
Network setup
- Set unit ID (PDU 10), baud (PDU 11) and framing (PDU 12), then power-cycle the device.
- Terminate both ends of the RS-485 bus with 120 ohm; the built-in resistor is enabled by wiring Term to RS485-. A daisy chain is recommended.
Teracom TDI340 4-channel S0 pulse counter with Modbus RTU Modbus registers
Address = 0-based wire address (the documented number is shown under it when it differs) · Order: ABCD = high word first, CDAB = low word first · Scale: engineering value = raw × scale.
| Table | Address | Name | Description | Type | Order | Scale | Units | Access | Values / bits |
|---|---|---|---|---|---|---|---|---|---|
| DI | 1doc 10002 | Input1 | BIT | Read | |||||
| DI | 2doc 10003 | Input2 | BIT | Read | |||||
| DI | 3doc 10004 | Input3 | BIT | Read | |||||
| DI | 4doc 10005 | Input4 | BIT | Read | |||||
| HR | 10doc 40011 | RS-485 address | Modbus slave address of the device. | UINT16 | Read/write | ||||
| HR | 11doc 40012 | Baud rate | Serial baud rate; takes effect after a power cycle. | UINT16 | Read/write | ||||
| HR | 12doc 40013 | Parity, data, stop bits | Parity/data/stop framing; takes effect after a power cycle. | UINT16 | Read/write | 1 = 8 data bits, even parity, 1 stop (E81); 2 = 8 data bits, odd parity, 1 stop (O81); 3 = 8 data bits, no parity, 1 stop (N81) | |||
| HR | 13doc 40014 | Data order | Word order used for all 32-bit values. | UINT16 | Read/write | 1 = MSWF - most significant word first; 2 = LSWF - least significant word first | |||
| HR | 14doc 40015 | Device code | Fixed product identification code. | UINT16 | Read | ||||
| HR | 15doc 40016 | FW version | Firmware version number. | UINT16 | Read | ||||
| HR | 18doc 40019 | Vendor URL | Maker URL as UTF-8 text (64 bytes). | STRING[64] | Read | ||||
| HR | 86doc 40087 | Signed integer test value | INT16 | Read | |||||
| HR | 91doc 40092 | Unsigned integer test value | UINT16 | Read | |||||
| HR | 110doc 40111 | Counter mode Input1 | Counting method: polling of the input or edge detection. | UINT16 | Read/write | 1 = Polling; 2 = Edge | |||
| HR | 111doc 40112 | Counter edge Input1 | Which edge increments the counter in edge mode. | UINT16 | Read/write | 1 = Rising; 2 = Falling; 3 = Both | |||
| HR | 112doc 40113 | Pulses per real unit Input1 | Pulses per engineering unit for the real-value register. | UINT16 | Read/write | ||||
| HR | 113doc 40114 | Delay Low-to-High Input1 (x10 ms) | Debounce delay for low-to-high, in 10 ms steps (polling mode). | UINT16 | × 10 | ms | Read/write | ||
| HR | 114doc 40115 | Delay High-to-Low Input1 (x10 ms) | Debounce delay for high-to-low, in 10 ms steps (polling mode). | UINT16 | × 10 | ms | Read/write | ||
| HR | 120doc 40121 | Counter mode Input2 | Counting method: polling of the input or edge detection. | UINT16 | Read/write | 1 = Polling; 2 = Edge | |||
| HR | 121doc 40122 | Counter edge Input2 | Which edge increments the counter in edge mode. | UINT16 | Read/write | 1 = Rising; 2 = Falling; 3 = Both | |||
| HR | 122doc 40123 | Pulses per real unit Input2 | Pulses per engineering unit for the real-value register. | UINT16 | Read/write | ||||
| HR | 123doc 40124 | Delay Low-to-High Input2 (x10mS) | Debounce delay for low-to-high, in 10 ms steps (polling mode). | UINT16 | × 10 | ms | Read/write | ||
| HR | 124doc 40125 | Delay High-to-Low Input2 (x10mS) | Debounce delay for high-to-low, in 10 ms steps (polling mode). | UINT16 | × 10 | ms | Read/write | ||
| HR | 130doc 40131 | Counter mode Input3 | Counting method: polling of the input or edge detection. | UINT16 | Read/write | 1 = Polling; 2 = Edge | |||
| HR | 131doc 40132 | Counter edge Input3 | Which edge increments the counter in edge mode. | UINT16 | Read/write | 1 = Rising; 2 = Falling; 3 = Both | |||
| HR | 132doc 40133 | Pulses per real unit Input3 | Pulses per engineering unit for the real-value register. | UINT16 | Read/write | ||||
| HR | 133doc 40134 | Delay Low-to-High Input3 (x10 mS) | Debounce delay for low-to-high, in 10 ms steps (polling mode). | UINT16 | × 10 | ms | Read/write | ||
| HR | 134doc 40135 | Delay High-to-Low Input3 (x10 mS) | Debounce delay for high-to-low, in 10 ms steps (polling mode). | UINT16 | × 10 | ms | Read/write | ||
| HR | 140doc 40141 | Counter mode Input4 | Counting method: polling of the input or edge detection. | UINT16 | Read/write | 1 = Polling; 2 = Edge | |||
| HR | 141doc 40142 | Counter edge Input4 | Which edge increments the counter in edge mode. | UINT16 | Read/write | 1 = Rising; 2 = Falling; 3 = Both | |||
| HR | 142doc 40143 | Pulses per real unit Input4 | Pulses per engineering unit for the real-value register. | UINT16 | Read/write | ||||
| HR | 143doc 40144 | Delay Low-to-High Input4 (x10 mS) | Debounce delay for low-to-high, in 10 ms steps (polling mode). | UINT16 | × 10 | ms | Read/write | ||
| HR | 144doc 40145 | Delay High-to-Low Input4 (x10 mS) | Debounce delay for high-to-low, in 10 ms steps (polling mode). | UINT16 | × 10 | ms | Read/write | ||
| HR | 200doc 40201 | All digital inputs (bitmask) | All four input states packed in bits 0-3. | BITMAP16 | Read | bit 0 = Digital input 1; bit 1 = Digital input 2; bit 2 = Digital input 3; bit 3 = Digital input 4 | |||
| HR | 201doc 40202 | Digital Input1 state | UINT16 | Read | 0 = Input closed; 1 = Input open | ||||
| HR | 202doc 40203 | Digital Input2 state | UINT16 | Read | 0 = Input closed; 1 = Input open | ||||
| HR | 203doc 40204 | Digital Input3 state | UINT16 | Read | 0 = Input closed; 1 = Input open | ||||
| HR | 204doc 40205 | Digital Input4 state | UINT16 | Read | 0 = Input closed; 1 = Input open | ||||
| HR | 210doc 40211 | Counter Input1 (32-bit) | Pulse count, 32-bit; writable to preset. | UINT32 | ABCD | Read/write | |||
| HR | 212doc 40213 | Counter Input2 (32-bit) | Pulse count, 32-bit; writable to preset. | UINT32 | ABCD | Read/write | |||
| HR | 214doc 40215 | Counter Input3 (32-bit) | Pulse count, 32-bit; writable to preset. | UINT32 | ABCD | Read/write | |||
| HR | 216doc 40217 | Counter Input4 (32-bit) | Pulse count, 32-bit; writable to preset. | UINT32 | ABCD | Read/write | |||
| HR | 220doc 40221 | Counter Input1 LOW (16-bit) | Low 16 bits of the counter; a write also clears the upper 16 bits. | UINT16 | Read/write | ||||
| HR | 221doc 40222 | Counter Input2 LOW (16-bit) | Low 16 bits of the counter; a write also clears the upper 16 bits. | UINT16 | Read/write | ||||
| HR | 222doc 40223 | Counter Input3 LOW (16-bit) | Low 16 bits of the counter; a write also clears the upper 16 bits. | UINT16 | Read/write | ||||
| HR | 223doc 40224 | Counter Input4 LOW (16-bit) | Low 16 bits of the counter; a write also clears the upper 16 bits. | UINT16 | Read/write | ||||
| HR | 230doc 40231 | Counter Input1 real value | Counter divided by the pulses-per-unit setting. | FLOAT32 | ABCD | Read | |||
| HR | 232doc 40233 | Counter Input2 real value | Counter divided by the pulses-per-unit setting. | FLOAT32 | ABCD | Read | |||
| HR | 234doc 40235 | Counter Input3 real value | Counter divided by the pulses-per-unit setting. | FLOAT32 | ABCD | Read | |||
| HR | 236doc 40237 | Counter Input4 real value | Counter divided by the pulses-per-unit setting. | FLOAT32 | ABCD | Read |
Notes on this map
- Addresses are taken from the manual's PDU address column (0-based); the logical column adds 40001 for holding registers and 10001 for discrete inputs, as the manual states.
- All 32-bit values follow the Data order register (PDU 13): 1 = most significant word first (factory default), 2 = least significant word first. The map shows the default, ABCD.
- Left out: the 32-bit float/integer test-value registers (PDU 82-95), which only exist to check word order; the 16-bit test values are kept.
- Input states are also readable as discrete inputs PDU 1-4 (logical 10002-10005), as the table prints them.
- Debounce delays (0-65535 x 10 ms) only work while that input's counter is in polling mode.
- A missing float returns NaN and a missing 32-bit integer -2147483648.
Check it against the live device. A register map tells you what the controller can expose; the unit in front of you may differ by firmware or options. Read a few registers and compare them with the unit’s own display; for a 32-bit value the float and byte-order decoder shows all four word orders at once, so a wrong word order or scale is obvious. New to this? Read what a register map is and why addresses are off by one.
Questions about the Teracom TDI340 4-channel S0 pulse counter with Modbus RTU
What Modbus registers does the Teracom TDI340 4-channel S0 pulse counter with Modbus RTU have?
This map lists 50 registers: 4 discrete inputs, 46 holding registers. 32 of them can be written. Registers vary with firmware, options and configuration, so confirm against the device.
Are the Teracom TDI340 4-channel S0 pulse counter with Modbus RTU Modbus addresses 0-based or 1-based?
The manufacturer's document numbers registers Modicon 3xxxx/4xxxx (drop the prefix, subtract 1). Every address on this page is the 0-based wire address you put in the request; the documented number is shown under it where it differs. The register table prints both a PDU (wire) address and a logical address (PDU + 40001 for holding registers). 'documented' holds the logical number; the PDU number is what goes in the request, e.g. logical 40101 = PDU 100.
What byte order does the Teracom TDI340 4-channel S0 pulse counter with Modbus RTU use for 32-bit values?
Multi-register values in this map use ABCD (high word first (big-endian)). Set your client to this order for every 32/64-bit value in the table.
What are the minimum Modbus registers to integrate the Teracom TDI340 4-channel S0 pulse counter with Modbus RTU?
Start with HR 210 Counter Input1 (32-bit) (Counter input 1); HR 212 Counter Input2 (32-bit) (Counter input 2); HR 230 Counter Input1 real value (Real value input 1); HR 200 All digital inputs (bitmask) (All input states); HR 110 Counter mode Input1 (Counter mode input 1); DI 1 Input1 (Input 1 state).
How do I enable Modbus control of the Teracom TDI340 4-channel S0 pulse counter with Modbus RTU?
Modbus RTU is the only interface and is always active; there is nothing to switch on. Factory settings are address 1, 19200 baud, 8E1.
Where is the official Teracom TDI340 4-channel S0 pulse counter with Modbus RTU Modbus documentation?
The source is TDI340 User manual (Revision R1.11), revision 2026-10, published free by Teracom at https://www.teracomsystems.com/download/s0-pulse-counter-with-modbus-rtu-interface-tdi340-user-manual/.
More Teracom Modbus register maps
- Sensor (temperature / humidity data logger)
Teracom TCW210-TH temperature and humidity data logger
TCW210-TH per the Teracom TCW210-TH user manual Revision R1.26, firmware V2.012 or later.
Also known as: TCW210-TH, TCW210 - Sensor (Ethernet data logger / I/O module)
Teracom TCW220 Ethernet data logger
TCW220 per the Teracom TCW220 user manual Revision R4.24, firmware V2.012 or later.
Also known as: TCW220 - Sensor (Ethernet I/O module)
Teracom TCW241 Ethernet I/O module
TCW241 per the Teracom TCW241 user manual Revision R4.30, firmware v2.012 or later.
Also known as: TCW241 - Energy meter (Ethernet energy monitoring / data logger)
Teracom TCW260 Ethernet energy monitoring module
TCW260 per the Teracom TCW260 user manual Revision R1.19, firmware V3.009 or later.
Also known as: TCW260 - Sensor (Ethernet analog / digital output module)
Teracom TCW280 Ethernet analog output module
TCW280 per the Teracom TCW280 user manual TCW280_R1.8.
Also known as: TCW280 - Sensor (1-Wire to Modbus gateway)
Teracom TCW320x-WMG 1-Wire to Modbus gateway
TCW320E-WMG (Ethernet) and TCW320W-WMG (Wi-Fi) per the user manual Revision R1.0; both share one fixed register map.
Also known as: TCW320E-WMG, TCW320W-WMG - Sensor (relay output module)
Teracom TDO340 4-channel Modbus RTU relay output module
TDO340 per the Teracom TDO340 user manual Revision R1.2, firmware V1.03 or later.
Also known as: TDO340 - Sensor (water leak detector)
Teracom TSF400-4 water-leak detector with Modbus RTU
TSF400-4 per the Teracom TSF400-4 user manual Revision R1.2.
Also known as: TSF400-4 - Sensor (humidity / temperature)
Teracom TSH300v3 RS-485 humidity and temperature sensor
TSH300v3 per the Teracom TSH300v3 user manual Revision R1.17.
Also known as: TSH300, TSH300v3 - Sensor (humidity / temperature)
Teracom TSH331 IP54 Modbus RTU humidity and temperature sensor
TSH331 per the Teracom TSH331 user manual Rev. 1.5, firmware v1.08 or later.
Also known as: TSH331 - Sensor (CO2 / pressure)
Teracom TSM400-4-CP Modbus CO2 and barometric pressure sensor
TSM400-4-CP per the Teracom TSM400-4-CP user manual TSM400-4-CP-R1.9.
Also known as: TSM400-4-CP - Sensor (CO2 / humidity / temperature / pressure)
Teracom TSM400-4-CPTH Modbus CO2, humidity, temperature and pressure multi-sensor
TSM400-4-CPTH per the Teracom TSM400-4-CPTH user manual TSM400-4-CPTH-R1.9.
Also known as: TSM400-4-CPTH - Sensor (humidity / temperature)
Teracom TSM400-4-TH Modbus humidity and temperature sensor
TSM400-4-TH per the Teracom TSM400-4-TH user manual TSM400-4-TH-R1.10.
Also known as: TSM400-4-TH - Sensor (temperature)
Teracom TST300v3 / TST300v4 RS-485 precision temperature sensor
TST300v3/v4 per the Teracom TST300v3/v4 user manual Revision R1.19.
Also known as: TST300, TST300v3, TST300v4 - Sensor (thermocouple input module)
Teracom TST320 2-channel thermocouple module with Modbus RTU
TST320 per the Teracom TST320 user manual Revision R1.6.
Also known as: TST320 - Sensor (AC/DC voltage transducer)
Teracom TSV300 AC/DC voltage transducer with Modbus RTU
TSV300 per the Teracom TSV300 user manual Revision R1.4, firmware V1.06 or later.
Also known as: TSV300
Other power & energy meters register maps
- Energy meter
ABB EQ meter B23 / B24 (Modbus RTU)
ABB EQ B23 (direct, 65 A) and B24 (CT-connected) three-phase DIN meters fitted with the RS485 interface set to Modbus.
Also known as: B23, B24, EQ B23, EQ B24 - Power meter
Accuenergy Acuvim-L Series
Accuenergy Acuvim-L series multifunction power and energy meters, user manual V4 (V 4.1.12, revised March 2026).
Also known as: Acuvim-CL, Acuvim-EL - Energy meter (DC)
Carlo Gavazzi DCT1 DC energy meter (Modbus RTU)
DCT1 300 A and 600 A / 1000 V DC meters, with and without signed data (S1/S2/S3), protocol version 1.1.
Also known as: DCT1A60V10LS1X, DCT1A60V10LS2EC, DCT1A60V10LS3EC, DCT1A30V10LS1X, DCT1A30V10LS2EC, DCT1A30V10LS3EC - Energy meter
Carlo Gavazzi EM271 dual three-phase energy meter with TCD current sensors
EM271 (firmware r.d0+, PF values from r.d2) on RS485 Modbus RTU, per communication protocol version 1 revision 2 (2018-01-29).
Also known as: EM271, EM27172DMV53X2SX, EM27172DMV63X2SX - Power meter (power analyzer)
Carlo Gavazzi WM20 / WM30 / WM40 power analyzers
WM20, WM30 and WM40 modular power analyzers with an RS485 (or Ethernet) Modbus module, protocol internal version rev. 4.0 (2018-03-28); WM30 = firmware letter X, WM40 = Y, WM20 = Z.
Also known as: WM20, WM30, WM40, WM20-96, WM30-96, WM40-96 - Power meter (earth leakage breaker with reclosing and metering)
Circutor RECmax-CVM
Circutor RECmax-CVM earth-leakage circuit breaker with automatic reclosing and built-in analyzer, manual M175B01-03-22A.
All power & energy meters Modbus register maps →
Source: TDI340 User manual · Revision R1.11 · rev. 2026-10. Register numbers, types, scaling and units are reproduced as published; descriptions are our own.