IMU User Guide revision 3.1 SMC Ship Motion Control www.shipmotion.eu
4.6.4 DATA TYPES FOR MODBUS PROTOCOL
Unsigned Value (16 bit)
Example: 12345 = 3039(16)
Signed Value (16 bit)
Example: -12345 = CFC7(16)
Signed Long Value (32 bit) 6 decimals
Example:
12.345678 = 00 BC 61 4E
-12.345678 = FF 43 9E B2
T3 occupies 2 registers
T3 value = ((reg1 << 16) + reg2) / 1000000
Unsigned Value (16 bit), 2 decimal places
Example: 123.45 = 3039(16)
Signed Value (16 bit), 2 decimal places
Example: -123.45 = CFC7(16)
Unsigned integer value (32 bit)
T6 occupies 2 registers
T6 value = (reg1 << 16) + reg2
Example: 1234567890 = 49 96 02 D2
Signed Value (16 bit), 3 decimal places
Example:
12.345 = 30 39(16)
-12.345 = CF C7(16)
Two ASCII character 16 bit (8 bit each)