HIWIN Modbus TCP User Guide Functions Of HIMC Modbus TCP
HIWIN MIKROSYSTEM Corp. 3-4
MH02UE01-1804
int8_t, uint8_t, int16_t and uint16_t
Parameters of data types int8_t, uint8_t, int16_t and uint16_t are used for digital inputs or outputs
and controller status. The parameter data are stored as below.
Value
Register N
17 (0x0011)
( 00000000 00010001 )
0x0011
( 00000000 00010001 )
int32_t and uint32_t
Parameters of data types int32_t and uint32_t are used for digital inputs or outputs and controller
status. The parameter data are stored as below.
Value
Register N (Start)
Register N+1 (End)
2097169 (0x00200011)
( 00000000 00100000 00000000 00010001 )
0x0011
( 00000000 00010001 )
0x0020
( 00000000 00100000 )
float
If parameter data types are float, the parameter data are stored as below.
Value
Register N (Start)
Register N+1 (End)
0.85
(0x3F59999A)
0x999A
0x3F59
double
If parameter data types are double, the parameter data are stored as below.
Value
Register N (Start)
Register N+1
Register N+2
Register N+3 (End)
0.85
(0x3FEB333333333333)
0x3333
0x3333
0x3333
0x3FEB