Basic information
A device connect to T3-Controller’s RS485 port working at modbus protocol ,
We can get correct data when set right data display format .
Build a program to read the register 72& regiater73 value of device (Tstat10) and convert to float format data.
T3-Controller Panel Number: 92
Device : Tstat10 Modbus ID 250
Four float data conversion command
MB_REG_FLOAT_ABCD;
MB_REG_FLOAT_CDAB;
MB_REG_FLOAT_BADC;
MB_REG_FLOAT_DCBA;
10 VAR1 = 92.250.MB_REG72 // read TSTAT10 reg72 unsigned integer
30 VAR2 = 92.250.MB_REG73 // read TSTAT10 reg73 unsigned integer
20 VAR3 = 92.250.MB_REG_FLOAT_DCBA72 // The command is to read the specified 16-bit register and its next register and then converted to float data in the specified format , here read from register 72 and 73 .