1-3447881216 - SOP - EKI-1200-CE Series - How To Configure Modbus Server Mode - 20230410
1-3447881216 - SOP - EKI-1200-CE Series - How To Configure Modbus Server Mode - 20230410
1
Overview
Modbus protocol is common industrial protocol. When we talk
about how to communicate with Modbus serial data to Ethernet,
the Modbus gateway is good solution to solve this problem.
In Modbus gateway, there are two operation mode.
SCADA (Data Center) polls data through Modbus TCP. The EKI
translates the data from TCP to RTU, and send to end device. Then
end device responses data to Data center.
Configure Modbus Server Mode(1/4)
Server ID = 2
Server ID = 2
1st.
Choose the COM Port of “Port
Configuration” to set up the Basic
part first, then “Save” it.
Configure Modbus Server Mode(3/4)
2 : Operation Page Setting
2nd. 2nd.
Mode: Modbus Server Mode;
Protocol: RTU (Modbus/RTU);
Server Timeout: Modbus GW
waiting time for response.
4th.
Configure Modbus Server Mode(4/4)
3. After modified the configuration, EKI need to reboot to
actually apply the new settings.
1. Click “Tools”
2. Click “Reboot”
Direct Access Port (EKI-122x-CE v1.07 or Later)
Designated COM port to direct access port which separate each serial port into different
TCP service port, instead of combined all into Port 502.
Default:
Port1: 6000
Port2: 6001
Port3: 6002
Port4: 6003
Set ModScan connection detail to TCP service port from port 6000~6003, according to
the target COM port.
Difference between System Port and
Direct Access Port Modbus Query
ModScan
Modbus/TCP
192.168.1.4/24
502 (Control PC)
Modscan/
Modsim tool
Why use Modsim and Modscan?
➢ Simulate both side works as Ethernet or COM port, and be able to send out
the Modbus data which is Modbus TCP or Modbus RTU/ASCII
➢ It’s compatible with Windows XP and 7 (Working as Administrator)
RS-485
Modbus RTU/ASCII
Modscan Server ID = 5
Address = 40001 Modsim
Weakness:Modsim only simulate the quantity of COM Ports up to 9
Set-up Modsim tool
If you want to simulate the end device to send out the data
with Modbus RTU/ASCII
1st. Click “File” and “New”
2nd. Click “Connection”, and select the “COM Port” (Up to 9)
3rd. Select the protocol of Modbus “RTU” or “ASCII”
1st.
3rd.
2nd.
Send out Modbus RTU/ASCII by Modsim
Server ID, Function Code, Address and Data Length as below:
Slave ID=2
Modscan
Set-up Modscan tool
• If you want to simulate the data center to send out the
polling with Modbus TCP
1st. Click “Connection” and “Connect”
2nd. To select “Remote TCP/IP Server” =>IP Address: Fill in the IP
of Modbus gateway
3rd. Service Port: 502 (Default setting of Modbus Listen Port)
4th. Click “Protocol Selections” to select the protocol of Modbus
1st.
2nd. 4th.
3rd.
Polling Modbus TCP data by Modscan
Received Data
How to Test
Modbus Server Mode
How to Test the Modbus Server Mode
Server ID= 2
2nd. Click “Connection” and “Connect”
3rd. To select “Remote TCP/IP Server” =>IP Address: Fill in the IP of Modbus gateway
4th. Service Port: 502 (Default setting of Modbus)
5th. Click “Protocol Selections” to select the protocol of Modbus
Address length:
Device ID = Node of end device 40001~40008
Function Code, Address and Data Length *The value must be same with end device
Function Code:
The counter for Polling data and valid data
03
How to Test the Modbus Server
PC EKI-1222 Modbus Server
IP 192.168.1.2
ADAM-4019+
Ethernet
Modbus TCP
RS-485
Data Center
IP 192.168.1.31 Modbus RTU/ASCII
End Device
Modbus RTU/ASCII
Polling the data from Modbus gateway Server Mode success
40001
Address
http://www.win-tech.com/html/modbus1.htm