Kinseal HMI as Master
The Modbus protocol uses different address types for specific read/write operations. These address types include 0x, 1x, 3x, 4x, 6x, 10x, 3x_Bit, 4x_Bit, and others. Below is a detailed explanation of each address type and the function codes they support.
Address Types and Function Codes:
- 0x (0-65535):
- This is a read-write address type used to control the output points of a device.
- Read Bit Status Function Code:
01H - Write Bit Status Function Code:
05H - Write Multiple Bit Registers Function Code:
0FH
- 1x (0-65535):
- This is a read-only address type used to read the input points of a device.
- Read Bit Status Function Code:
02H
- 4x (0-65535):
- This is a read-write address type used to control the data registers of a device.
- Read Data Function Code:
03H - Write Single Data Function Code:
06H - Write Multiple Data Function Code:
10H
- 3x (0-65535):
- This is a read-only address type used to read the data registers of a device.
- Read Data Function Code:
04H
- 3x_dw (0-65535):
- This address type functions the same as
3x, with the difference being that3x_dwreads double words. - If data is in the
32_bit unsignedformat, the high and low bytes are reversed. For example, if3xreads0x1234, then3x_dwwould read0x3412.
- This address type functions the same as
- 4x_dw (0-65535):
- This is similar to
4x, but it reads double words. - For data in
32_bit unsignedformat, the high and low bytes are swapped. If4xreads0x1234, then4x_dwwould read0x3412.
- This is similar to
- 3x_Bit (0-65535):
- This is a read-only address type, similar to
3x, but it reads the state of a specific bit in the data. - Function Code: Same as
3x, but used for reading bit-level data.
- This is a read-only address type, similar to
- 4x_Bit (0-65535):
- This is a read-write address type, similar to
4x, but it reads the state of a specific bit in the data. - Function Code: Same as
4x, but used for reading/writing bit-level data.
- This is a read-write address type, similar to
- 6x (0-65535):
- This is a read-write address type used to control the data registers of a device.
- Read Data Function Code:
03H - Write Single or Multiple Data Function Code:
06H
- 10x (0-65535):
- This is a read-write address type used to control the data registers of a device.
- Read Data Function Code:
03H - Write Single or Multiple Data Function Code:
10H
Kinseal HMI as Slave)
When the HMI is used as a Modbus RTU slave, specific address types correspond to certain function codes in the Modbus protocol.
Address Types and Corresponding Modbus RTU Function Codes:
- LB (HMI Bit Register 0-65535):
- This corresponds to Modbus RTU addresses
0xand1x. - Supported Modbus RTU Function Codes:
01H(Read Coil)02H(Read Discrete Input)05H(Write Single Coil)0FH(Write Multiple Coils)
- This corresponds to Modbus RTU addresses
- LW (HMI Word Register 0-65535):
- This corresponds to Modbus RTU addresses
4x,4x_dw, and4x_Bit. - Supported Modbus RTU Function Codes:
03H(Read Holding Registers)06H(Write Single Register)10H(Write Multiple Registers)
- This corresponds to Modbus RTU addresses
- RWI (HMI Recipe Register 0-2999, Recipe Name 3000-3999):
- This corresponds to the Modbus RTU address
3x. - Supported Modbus RTU Function Code:
04H(Read Input Registers)
- This corresponds to the Modbus RTU address