Support

What is the definition of DI and DO on TG451



Regarding the relay and DI, Bivocom TG451 support control the DI and DO (relay) ports from server following Modbus RTU protocol.
For DI, we use 02 function code to read its status, while use 06 function code for DO/Relay control. The below table shows the corresponding command and responds,
 
  Command from server Responds from TG451
Read DI 0 status 01 02 00 00 00 01 B9 CA 01 02 01 00 A1 88 (if DI0 =0)
01 02 01 01 60 48 (if DI0 =1)
Read DI 1 status 01 02 00 01 00 01 E8 0A 01 02 01 00 A1 88 (if DI1 =0)
01 02 01 01 60 48 (if DI1 =1)
Control DO/K0 as Close 01 06 00 00 00 01 48 0A 01 06 00 00 00 01 48 0A
Control DO/K0 as Open 01 06 00 00 00 00 89 CA 01 06 00 00 00 00 89 CA
Control DO/K1 as Close 01 06 00 01 00 01 19 CA 01 06 00 01 00 01 19 CA
Control DO/K1 as Open 01 06 00 01 00 00 D8 0A 01 06 00 01 00 00 D8 0A