0% found this document useful (0 votes)
77 views

MODBUS Server (Modbus RTU Slave) : HMI Setting

This document provides guidelines for connecting an HMI to a PLC using MODBUS RTU or TCP/IP protocols. Key settings include selecting the PLC type as MODBUS Server, setting the communication interface and port number, and configuring the device addresses that map PLC registers to function codes for reading and writing data. Wiring diagrams are also included for RS232, RS485, and Ethernet connections between the HMI and PLC.

Uploaded by

bryan stivn
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views

MODBUS Server (Modbus RTU Slave) : HMI Setting

This document provides guidelines for connecting an HMI to a PLC using MODBUS RTU or TCP/IP protocols. Key settings include selecting the PLC type as MODBUS Server, setting the communication interface and port number, and configuring the device addresses that map PLC registers to function codes for reading and writing data. Wiring diagrams are also included for RS232, RS485, and Ethernet connections between the HMI and PLC.

Uploaded by

bryan stivn
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

PLC Connection Guide

MODBUS Server (Modbus RTU Slave)

HMI Setting:
Parameters Recommend Option Notes
PLC type MODBUS Server
PLC I/F RS232 RS232, RS485
9600~115200 Ethernet supports UDP or TCP/IP
Baud rate 9600
Ethernet protocol
Even, Odd,
Parity Even
None
Data bits 8 8
Stop bits 1 1
PLC st. no. 1 1-31 HMI Modbus Station No.
Port no. 502

Online simulator YES Extend address mode NO


Broadcast command NO

PLC Setting:
Communication mode Modbus RTU protocol

Modbus Server UDP Protocol Setting:


MODBUS Server (Ethernet) supports UDP communication protocol. To use UDP mode,
go to [System Parameter Settings] in editing software, in [Device list] click [New], for [PLC
type] select “Modbus Server”, [PLC I/F] set to [Ethernet], and select [Use UDP (User
Datagram Protocol)] to finish setting.

2
PLC Connection Guide

Modbus Server Port No. can be changed by clicking [Settings].

Modbus Server Port No. can not be set identically to HMI Port No. When doing so, the
warning message below will be shown requesting users to change setting.

„ A maximum of 64 Clients can be connected simultaneously.


„ Modbus Server Port No. can’t be identical to HMI Port No.

3
PLC Connection Guide

Modbus Server TCP/IP Protocol Setting:


MODBUS Server (Ethernet) supports TCP/IP communication protocol. Go to [System
Parameter Settings] in editing software, in [Device list] click [New], for [PLC type] select
“Modbus Server”, [PLC I/F] set to [Ethernet] to finish setting.

For Modbus Server TCP/IP, HMI Port No. is the same as Modbus Server Port No. To
change Prot No. go to [System Parameter Settings] / [Model], the default Port No. is
“8000”, and it is allowed to change Modbus Server Port No. here.

4
PLC Connection Guide

Device Address:
Bit/Word Device type Format Range Memo
B LB dddd 0~9998 Mapping to 0x/1x 1~9999
W LW dddd 0~9998 Mapping to 3x/4x 1~9999
W RW ddddd 0~55536 Mapping to 3x/4x 10000~65536

LB0 = 0x0001, LB1 = 0x0002, LW0 = 3x0001, LW1 = 3x0002


Modbus RTU Server doesn’t support function code 06(preset single register), please use
function code 16(0x10, preset multiple registers).

Modbus Server Function Code:


0x 0x01 Read coil 0x05 write single coil
0x_multi_coils 0x01 Read coil 0x0f write multiple coils
1x 0x02 Read discrete input N/A for write operation
3x 0x04 Read input register N/A for write operation
4x 0x03 Read holding register 0x10 write multiple registers

Wiring Diagram:
9P D-Sub to 9P D-Sub:
HMI COM1 HMI COM2 HMI COM3 Modbus RTU Controller RS232
RS232 9P RS232 9P RS232 9P 9P D-Sub
D-Sub Male D-Sub Male D-Sub Female
2 RX 6 RX 8 RX TXD
3 TX 4 TX 7 TX RXD
5 GND 5 GND 5 GND GND
RTS
circuit
CTS

5
PLC Connection Guide
9P D-Sub to 9P D-Sub:
HMI COM1 Modbus RTU Controller RS422
RS485 4W 9P 9P D-Sub
D-Sub Female
1 RX- TX-
2 RX+ TX+
3 TX- RX-
4 TX+ RX+
5 GND GND

9P D-Sub to 9P D-Sub:
HMI COM1 HMI COM3 Modbus RTU Controller RS485
RS485 2W 9P RS485 2W 9P 9P D-Sub
D-Sub Female D-Sub Female
1 RX- 6 Data- D-
2 RX+ 9 Data+ D+
5 GND 5 GND GND

Direct connect (crossover cable):


HMI RJ45 Female Wire Color PLC RJ45 Female
1 TX+ White/Orange 3 RX+
2 TX- Orange 6 RX-
3 RX+ White/Green 1 TX+
4 BD4+ Blue 4 BD4+
5 BD4- White/Blue 5 BD4-
6 RX- Green 2 TX-
7 BD3+ White/Brown 7 BD3+
8 BD3- Brown 8 BD3-

6
PLC Connection Guide
Through a hub:
HMI RJ45 Female Wire Color PLC RJ45 Female
1 TX+ White/Orange 1 TX+
2 TX- Orange 2 TX-
3 RX+ White/Green 3 RX+
4 BD4+ Blue 4 BD4+
5 BD4- White/Blue 5 BD4-
6 RX- Green 6 RX-
7 BD3+ White/Brown 7 BD3+
8 BD3- Brown 8 BD3-

Note: Setting more than one Modbus Server in HMI Device List is of no effect.

Driver Version:
Version Date Description
V1.00 Dec/30/2008 Driver released

You might also like