16.4 Examples
16.4.1 Introduction
In all the following examples, assumption will be made that T2S ETH controller Modbus RTU slave address is 1 (0x01).
16.4.1.1 Reading simple variables:
Ex 1: Reading output voltage of module #5
Field Value Description
Function 4 (0x04) Read input register
Address 128 (0x0080) 31*(5-1) + 4 = 128 (see module table, page 79)
Number of registers 1 (0x01) Vout value is 16-bit wide
Master frame: 0x01 0x04 0x00 0x80 0x00 0x01 0x71 0xE3
T2S ETH frame: 0x01 0x04 0x02 0x09 0x1B 0xFF 0x6B
Received value: 0x091B = 2331 Output voltage is 233.1V (see module table, page 79)
Ex 2: Reading T2S ETH serial number
Field Value Description
Function 4 (0x04) Read input register
Address 128 (0x0080) 31*(5-1) + 4 = 128 (see module table, page 79)
Number of registers 1 (0x01) Vout value is 16-bit wide
Master frame: 0x01 0x04 0x07 0xC5 0x00 0x02 0x60 0x82
T2S ETH frame: 0x01 0x04 0x04 0x00 0x01 0x00 0x07 0xEB 0x86
Received value: 0x0001 and 0x0007 T2S ETH revision is Vs1.7
16.4.1.2 Reading alarm and history log:
Reading entry #1
Field Value Description
Function 4 (0x04) Read input register
Address 2010 (0x07D4) 2010 + 2*(1-1) = 2010 (see alarm table, page 83)
Number of registers 2 (0x02) Alarm entry is 2 registers wide
Master frame: 0x01 0x04 0x07 0xDA 0x00 0x02 0x51 0x44
T2S ETH frame: 0x01 0x04 0x04 0x21 0x01 0x00 0xB3 0xE1 0xCD
Alarm entry #1 is a minor (0x01) alarm generated by the system (0x21) and this alarm has the ID 179 (0x00B3)
86 – Monitoring T2S - ETH User Manual – v1.4
Annex 3: Modbus