Modbus device driver


Terminal of HMI is DB9F. Definitions of Modbus device pins depend on particular Modbus device.
RS422
|
Modbus device |
|||
|
6 |
RX- |
User-defined pins |
TX- |
|
7 |
RX+ |
User-defined pins |
TX+ |
|
8 |
TX- |
User-defined pins |
RX- |
|
9 |
TX+ |
User-defined pins |
RX+ |


Terminal of HMI is DB9F. Definitions of Modbus device pins depend on particular Modbus device.
RS485
|
Modbus device |
|||
|
8 |
D- |
User-defined pins |
B |
|
9 |
D+ |
User-defined pins |
A |


Terminal of HMI is a 9P trapezoidal female connector. Definitions of Modbus device pins depend on particular AIBUS device.
TCP/IP (RJ45 direct connection)
|
Modbus device |
|||
|
1 |
TX+ |
3 |
RX+ |
|
2 |
TX- |
6 |
RX- |
|
3 |
RX+ |
1 |
TX+ |
|
4 |
BD4+ |
4 |
BD4+ |
|
5 |
BD4- |
5 |
BD4- |
|
6 |
RX- |
2 |
TX- |
|
7 |
BD3+ |
7 |
BD3+ |
|
8 |
BD3- |
8 |
BD3- |
Terminal of HMI is RJ45, and that of Modbus device is RJ45.
TCP/IP (RJ45 connection via router)
|
SK HMI COM1/COM2 |
Modbus device |
||
|
1 |
TX+ |
3 |
RX+ |
|
2 |
TX- |
6 |
RX- |
|
3 |
RX+ |
1 |
TX+ |
|
4 |
BD4+ |
4 |
BD4+ |
|
5 |
BD4- |
5 |
BD4- |
|
6 |
RX- |
2 |
TX- |
|
7 |
BD3+ |
7 |
BD3+ |
|
8 |
BD3- |
8 |
BD3- |

![]()
Terminal of HMI is RJ45, and that of Modbus device is RJ45.
2. Software settings
Select Modbus in connection device service.
Select the corresponding item in connection device service according to the connected PLC model or supported protocol.
Ensure that the communication parameters in touch screen connection parameters and PLC station number are consistent with the PLC connected.
For settings of the PLC connected, refer to the technical documents of the Modbus device.
Default connection parameters of SK HMI
|
Setting item |
Default parameter value |
Setting scope |
|
PLC type |
RTU Master |
RTU/RTU_S/ASCII/ASCII_S Master |
|
Communication port type |
RS232 |
RS232/RS422/RS485 |
|
Baud rate |
9600 |
1200/2400/4800/9600/19200/38400/57600/115200 |
|
Data bit length |
8 |
7/8 |
|
Parity bit |
NONE |
EVEN/ODD/NONE |
|
Stop bit length |
1 |
1/2 |
|
PLC station number |
1 |
0~255 |
|
HMI station number |
0 |
0~255 |
|
Supporting function |
Whether it is supported |
|
Off-line simulation |
Yes |
|
On-line simulation |
Yes |
|
Extended mode |
Yes |
![]()
Note: The function code used in RTU_S and ASCII_S for data writing is 0x10 (regardless of length of the data written);
·If 0 is chosen for PLC station number, then the system is in broadcasting mode.
3. Operational register and address range
|
Register name |
Address format |
Input range |
Remarks |
|
0x |
ddddd |
0~65535 |
Bit: input coil |
|
1x |
ddddd |
0~65536 |
Bit: input coil, read only |
|
3x_Bit |
ddddd.DD |
0.00~65535.15 |
Bit: bit of 16-bit input register, read only |
|
4x_Bit |
ddddd.DD |
0.00~65535.15 |
Bit: bit of 16-bit output register |
|
3x |
ddddd |
0~65535 |
Word: 16-bit input register, read only |
|
4x |
ddddd |
0~65535 |
Word: 16-bit output register |
|
3x_D |
ddddd |
0~65535 |
Double word: input register, reversing the higher and lower 16 bits of 3x double word, read only |
|
4x_D |
ddddd |
0~65535 |
Double word: output register, reversing the higher and lower 16 bits of 4x double word |
![]()
Note:
d represents decimal system, input range is 0-9;
DD represents 16 bits, input range is 0-15;
Word in the remarks: represents the register can only be used as word;
Double-word in the remarks: represents that the data type of the register in configuration must be 32-bit;
Bit in the remarks: represents the register can only be used as bit;
Read only in the remarks represents that the register can only be read but not be written;
The names of the registers supported by different equipment models may be different, and the scopes may also be different.
For detailed name and scope, please consult related technical document of the connected device
![]()
Note:
Modbus rtu MCU is used to support standard modbus, such as single chip, converter, and other devices that require special processing. When the PLC address interval is set to 1, the register does not do any integration, and the data type length is read according to the control. When the width of the PLC address is greater than 2, the length of the read is the maximum amount of the actual PLC address interval. The bits address is in the position of j

