한국어 English Chinese Russian
Support

FAQ


No.484 How can I configure Sollae Systems' Modbus Gateway? 05-09-2019

Sollae Systems' Modbus Gateway is designed to provide protocol conversion between Modbus Serial (RTU/ASCII) and Modbus TCP. Modbus Gateway products can be configured by spFinder, a free-of-charge software provided by Sollae Systems.



Compared with other ezTCP products, besides basic network setting (IP Address, Wireless LAN), there are some advanced working parameters for Modbus Gateway:


Parameters Description
Transmission Mode Set Modbus transmission mode as Modbus RTU or Modbus ASCII. The default is Modbus RTU.
Baudrate (unit: bps) Set a baud rate of serial port. The default is 9,600bps.
Serial Parameter
Data Bits Set number of data bits of serial connection. The default is 8.
Stop Bits Set number of stop bits of serial connection. The default is 1.
Parity Set parity bit of serial connection. The default is None.
Flow Control Set flow control of serial connection. The default is None.
TCP
Communication Mode Set communication mode for TCP. TCP Server and TCP Client are available. The default is TCP Server.
Peer Address Set IP address of TCP server to be connected. This setting is valid only if the Communication Mode is set to TCP Client.
Port Set port number for TCP connection. The default is 502.
Connection Timeout (Unit: sec) Set expiration time for TCP connection in idle state. The idle state means there is no sent or received data on TCP. The default is 60 (seconds).
Advanced
Query Flow Set direction of Modbus query. You can select TCP to Serial or Serial to TCP. The default is TCP to Serial.
Slave ID Set slave address of Modbus RTU/ASCII device or unit ID of Modbus TCP device.
Response Timeout (Unit: ms) Set expiration time for a Modbus query. The default is 500 (milliseconds).
Send Gateway Exception Select to send gateway’s exception data or not. When this value is Enable, gateway sends exception data. The default is Enable.



Example working cases


1) Connect Modbus Master (TCP) to Modbus Slave (RTU/ASCII)




Configuration note for Modbus Gateway:
- Transmission Mode, Baud rate, Serial: Customer-defined
- TCP: TCP Server
- Query Flow: TCP to Serial
- Slave ID: The same as slave ID of the Modbus Slave

Example for setting Modbus Gateway:

Parameters Modbus Gateway
IP address 10.1.0.1
TCP
Communication Mode TCP Server
Peer Address -
Port 502
Connection Timeout (Unit: sec) 60
Advanced
Query Flow TCP to Serial
Slave ID 1
Response Timeout (Unit: ms) 500
Send Gateway Exception Enable



2) Connect Modbus Master (RTU/ASCII) to Modbus Slave (TCP)




Configuration note for Modbus Gateway:
- Transmission Mode, Baud rate, Serial: Customer-defined
- TCP: TCP Client
- Query Flow: Serial to TCP
- Slave ID: The same as unit ID of the Modbus Slave (TCP)

Example for setting Modbus Gateway:

Parameters Modbus Gateway
IP address 10.1.0.1
TCP
Communication Mode TCP Client
Peer Address 10.1.0.200
Port 502
Connection Timeout (Unit: sec) 60
Advanced
Query Flow Serial to TCP
Slave ID 2
Response Timeout (Unit: ms) 500
Send Gateway Exception Enable



3) Serial Tunneling - Connect two Modbus RTU/ASCII devices via network




Configuration note for Modbus Gateway:
- Transmission Mode, Baud rate, Serial: Customer-defined
- TCP: One Modbus Gateway as a TCP Server and the other as a TCP Client
- Query Flow:
+ Modbus Gateway on the Master side: Serial to TCP
+ Modbus Gateway on the Slave side: TCP to Serial
- Slave ID: The same as slave ID of the Modbus Slave (RTU/ASCII)

Example for setting Modbus Gateway:

Parameters Modbus Gateway #1
IP address 10.1.0.1
Modbus Gateway #2
IP address 10.1.0.2
TCP
Communication Mode TCP Client TCP Server
Peer Address 10.1.0.2 -
Port 502 502
Connection Timeout (Unit: sec) 60 60
Advanced
Query Flow Serial to TCP TCP to Serial
Slave ID 1 1
Response Timeout (Unit: ms) 500 500
Send Gateway Exception Enable Enable





- See also

- Related Products


[ Modbus Gateway ] SMG-5400, SMG-5410, SMG-5420