Easy Modbus
  1. Home
  2. Modbus register maps
  3. Teracom
  4. 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

Short answer

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
Download CSV all columns JSON Manufacturer PDF ↗

Integration notes: Teracom TDI340 4-channel S0 pulse counter with Modbus RTU

Integration in brief

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.

RegisterNameTypeWhyAccess
HR 210Counter Input1 (32-bit)UINT32 ABCDCounter input 1Read/write
HR 212Counter Input2 (32-bit)UINT32 ABCDCounter input 2Read/write
HR 230Counter Input1 real valueFLOAT32 ABCDReal value input 1Read
HR 200All digital inputs (bitmask)BITMAP16All input statesRead
HR 110Counter mode Input1UINT16Counter mode input 1Read/write
DI 1Input1BITInput 1 stateRead

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

Network setup

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.

50 of 50 shown
Teracom TDI340 4-channel S0 pulse counter with Modbus RTU Modbus register map
TableAddressNameDescriptionTypeOrderScaleUnitsAccessValues / bits
DI1doc 10002Input1BITRead
DI2doc 10003Input2BITRead
DI3doc 10004Input3BITRead
DI4doc 10005Input4BITRead
HR10doc 40011RS-485 addressModbus slave address of the device.UINT16Read/write
HR11doc 40012Baud rateSerial baud rate; takes effect after a power cycle.UINT16Read/write
HR12doc 40013Parity, data, stop bitsParity/data/stop framing; takes effect after a power cycle.UINT16Read/write1 = 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)
HR13doc 40014Data orderWord order used for all 32-bit values.UINT16Read/write1 = MSWF - most significant word first; 2 = LSWF - least significant word first
HR14doc 40015Device codeFixed product identification code.UINT16Read
HR15doc 40016FW versionFirmware version number.UINT16Read
HR18doc 40019Vendor URLMaker URL as UTF-8 text (64 bytes).STRING[64]Read
HR86doc 40087Signed integer test valueINT16Read
HR91doc 40092Unsigned integer test valueUINT16Read
HR110doc 40111Counter mode Input1Counting method: polling of the input or edge detection.UINT16Read/write1 = Polling; 2 = Edge
HR111doc 40112Counter edge Input1Which edge increments the counter in edge mode.UINT16Read/write1 = Rising; 2 = Falling; 3 = Both
HR112doc 40113Pulses per real unit Input1Pulses per engineering unit for the real-value register.UINT16Read/write
HR113doc 40114Delay Low-to-High Input1 (x10 ms)Debounce delay for low-to-high, in 10 ms steps (polling mode).UINT16× 10msRead/write
HR114doc 40115Delay High-to-Low Input1 (x10 ms)Debounce delay for high-to-low, in 10 ms steps (polling mode).UINT16× 10msRead/write
HR120doc 40121Counter mode Input2Counting method: polling of the input or edge detection.UINT16Read/write1 = Polling; 2 = Edge
HR121doc 40122Counter edge Input2Which edge increments the counter in edge mode.UINT16Read/write1 = Rising; 2 = Falling; 3 = Both
HR122doc 40123Pulses per real unit Input2Pulses per engineering unit for the real-value register.UINT16Read/write
HR123doc 40124Delay Low-to-High Input2 (x10mS)Debounce delay for low-to-high, in 10 ms steps (polling mode).UINT16× 10msRead/write
HR124doc 40125Delay High-to-Low Input2 (x10mS)Debounce delay for high-to-low, in 10 ms steps (polling mode).UINT16× 10msRead/write
HR130doc 40131Counter mode Input3Counting method: polling of the input or edge detection.UINT16Read/write1 = Polling; 2 = Edge
HR131doc 40132Counter edge Input3Which edge increments the counter in edge mode.UINT16Read/write1 = Rising; 2 = Falling; 3 = Both
HR132doc 40133Pulses per real unit Input3Pulses per engineering unit for the real-value register.UINT16Read/write
HR133doc 40134Delay Low-to-High Input3 (x10 mS)Debounce delay for low-to-high, in 10 ms steps (polling mode).UINT16× 10msRead/write
HR134doc 40135Delay High-to-Low Input3 (x10 mS)Debounce delay for high-to-low, in 10 ms steps (polling mode).UINT16× 10msRead/write
HR140doc 40141Counter mode Input4Counting method: polling of the input or edge detection.UINT16Read/write1 = Polling; 2 = Edge
HR141doc 40142Counter edge Input4Which edge increments the counter in edge mode.UINT16Read/write1 = Rising; 2 = Falling; 3 = Both
HR142doc 40143Pulses per real unit Input4Pulses per engineering unit for the real-value register.UINT16Read/write
HR143doc 40144Delay Low-to-High Input4 (x10 mS)Debounce delay for low-to-high, in 10 ms steps (polling mode).UINT16× 10msRead/write
HR144doc 40145Delay High-to-Low Input4 (x10 mS)Debounce delay for high-to-low, in 10 ms steps (polling mode).UINT16× 10msRead/write
HR200doc 40201All digital inputs (bitmask)All four input states packed in bits 0-3.BITMAP16Readbit 0 = Digital input 1; bit 1 = Digital input 2; bit 2 = Digital input 3; bit 3 = Digital input 4
HR201doc 40202Digital Input1 stateUINT16Read0 = Input closed; 1 = Input open
HR202doc 40203Digital Input2 stateUINT16Read0 = Input closed; 1 = Input open
HR203doc 40204Digital Input3 stateUINT16Read0 = Input closed; 1 = Input open
HR204doc 40205Digital Input4 stateUINT16Read0 = Input closed; 1 = Input open
HR210doc 40211Counter Input1 (32-bit)Pulse count, 32-bit; writable to preset.UINT32ABCDRead/write
HR212doc 40213Counter Input2 (32-bit)Pulse count, 32-bit; writable to preset.UINT32ABCDRead/write
HR214doc 40215Counter Input3 (32-bit)Pulse count, 32-bit; writable to preset.UINT32ABCDRead/write
HR216doc 40217Counter Input4 (32-bit)Pulse count, 32-bit; writable to preset.UINT32ABCDRead/write
HR220doc 40221Counter Input1 LOW (16-bit)Low 16 bits of the counter; a write also clears the upper 16 bits.UINT16Read/write
HR221doc 40222Counter Input2 LOW (16-bit)Low 16 bits of the counter; a write also clears the upper 16 bits.UINT16Read/write
HR222doc 40223Counter Input3 LOW (16-bit)Low 16 bits of the counter; a write also clears the upper 16 bits.UINT16Read/write
HR223doc 40224Counter Input4 LOW (16-bit)Low 16 bits of the counter; a write also clears the upper 16 bits.UINT16Read/write
HR230doc 40231Counter Input1 real valueCounter divided by the pulses-per-unit setting.FLOAT32ABCDRead
HR232doc 40233Counter Input2 real valueCounter divided by the pulses-per-unit setting.FLOAT32ABCDRead
HR234doc 40235Counter Input3 real valueCounter divided by the pulses-per-unit setting.FLOAT32ABCDRead
HR236doc 40237Counter Input4 real valueCounter divided by the pulses-per-unit setting.FLOAT32ABCDRead

Notes on this map

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

Other power & energy meters register maps

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.