HIWIN Modbus TCP User Guide Functions Of HIMC Modbus TCP
HIWIN MIKROSYSTEM Corp. 3-2
MH02UE01-1804
3.1 Data storage
Data in standard Modbus are stored in four different tables. Register assignment of HIMC is as below.
Table 3.1.1
Table Name
Coil/Register Address
Data Size
Attribute
Coils
0x00000 - 0x65535
1 bit
Read/Write
Discrete Inputs
1x00000 - 1x65535
1 bit
Read-only
Input Registers
3x00000 - 3x65535
16 bits
Read-only
Holding Registers
4x00000 - 4x65535
16 bits
Read/Write
3.2 Function codes
Supported function codes in HIMC are as below.
Table 3.2.1
Function Code
Description
01 (01 hex)
Reads coils.
02 (02 hex)
Reads discrete inputs.
03 (03 hex)
Reads input registers.
04 (04 hex)
Reads holding registers.
05 (05 hex)
Writes single coil.
06 (06 hex)
Writes single holding register.
15 (0F hex)
Writes multiple coils.
16 (10 hex)
Writes multiple holding registers.