This document is only used to assist readers for using products. The company is not responsible for loss or mistake because of using this document. The text and product described in this document is constantly developing and improving. Sichuan ODOT Automation System Co., Ltd. has the right to modify this document without notifying users.
1. Product Overview 1.1 Product Functions ODOT-S4E2, developed by Sichuan ODOT Automation System Co., Ltd., is a Modbus RTU to Modbus TCP/IP protocol converter based on market demand and years of experience. By applying ODOT-S4E2, all the Modbus RTU/ASCII slave devices with RS485/RS422/RS232 port could connect to Modbus TCP/IP network and communicate with TCP clients.
◆Built-in terminal resistance and bias circuit, strong stability. ◆The data packet sending interval could be adjusted freely, and the use is more flexible. ◆The device carries with powerful diagnostic function to monitor the communication status of the slave device in real time. ◆Support one key reset function to restore factory Settings.
Page 6
Ethernet parameter Working mode Transparent transmission mode and address mapping mode is optional 2RJ45,10M/100M auto-adaption with Number of ethernet router function terminal ETHERNET, ARP, IP, TCP and ICMP Networking protocols Number of TCP connection Max. 5 Serial parameter Number of serial port 4*RS485/RS232 or 2*RS422 Serial Communication RTU mode &...
2. Hardware description 2.1 Product appearance 2.2 LED indicator description There are total 6 LED status indicators. The symbol definition and status description are shown in “Table 2”.
& receiving indicator Series port 4 is not sending & receiving data Note: * ——In normal communication, the status of the ODOT-S4E2 gateway indicator 2.3 Terminal definition 1. The equipment wiring adopts 16Pin 3.81mm pitch plug-in terminal. The terminal definition of...
Page 9
Table 3 Terminal definition RS485 RS232 RS422 Wiring Symbol Wiring Definition Definition Wiring Definition Serial Port1 Serial Port1 RS422 Sending 1RT- RS485- RS232_RX Negative Terminal Serial Port1 Serial Port1 RS422 Sending 1TT+ RS485+ RS232_TX Positive Terminal SGND Signal Grounded Signal Grounded Signal Grounded Shield Earthing Shield Earthing...
2.4 Reset button The device has a system RESET button (RESET). When the user forgets the IP address and configured port number of the device and cannot connect to the gateway, the RESET button can be triggered. System parameters will be restored to factory Settings and the device will be restarted.
Page 11
Gateway work mode Transparent transmission Mode Gateway station Number Serial port mode Master station mode Protocol type of Modbus RTU Modbus Serial port baud rate 9600bps Check digit No check Data bits 8bit Serial port Stop bit 1bit side Receive character 3.5t interval Message sent?
2.5 External terminal resistance According to the site situation, the gateway serial port side needs an external 120 Ω terminal resistance. The RS485 bus supports a maximum of 32 nodes without relay, The "daisy chain" connection is used between nodes, and terminal resistors are required at both ends of the communication cable, and their resistance is required to be approximately equal to the characteristic impedance of the transmission cable.
3. HOW TO USE THE PROTOCOL CONVERTER 3.1.The description of protocol converter Serial working mode 3.1.1. There are two types of working modes: Master mode and slave mode. When the serial port works in master mode, the serial port can connect up to 31 Modbus RTU/ASCII slave devices without relaying.
Page 14
it back to the TCP clients after receiving Modbus TCP/IP clients instructions. This method can greatly reduce the waiting time for the client to access to the station and improves the refresh rate. 3.1.3. Data storage area Data storage is divided into five parts. Part 1.
Page 15
3.1.4 System diagnostic area The diagnosis system is divided into two parts. For the first part: The address 0x2000-0x200F is in total of 16 words that is 256 bits as the "slave error indicator area". The number 1-247 are respectively corresponding to slave 1-247and 248-256 are reserved. When the error occurs from the station communication, the corresponding bit of the station address is set to 1.
Page 17
The second part :Address 0x2010-0x2106 Word ,total 247 words, as " the slave status indicator" area. Reading the area could obtain the slave current working status, the data encoding format is as shown in Table 3.3. Table 3.3 Slave status indicating area encoding format Byte1 Byte0 Slave 1...
Page 18
length exceeds maximum allowable value of 125 (Word) or 2000 (Bit), it needs to modify the length 0x04 Data processing error Check whether the data value range meets the requirements of the slave Application layer length does Increase receiving character 0x05 not match interval...
3.2. Default parameters The default factory configuration of the gateway is as follows: Table 3.5 The default factory configuration Parameter name Defaults Protocol converter IP 192.168.1.254 Subnet mask 253.253.253.0 LAN gateway IP 192.168.1.1 Modbus TCP data port Configure the port 1024 Modbus-TCP watchdog time...
Page 20
Serial operating Master mode mode Modbus protocol Modbus RTU/ASCII type Serial baud rate 9600bps Check digit No check Data bits 8bit Stop bit 1bit Receive character 3.5t interval Message sent Timeout processing Data retention Slave response timeout 500ms...
Note: The gateway is factory-set to work in transparent transmission mode and can be used without configuration. At this time, all request data of the TCP client is sent to the serial port 1. To configure the parameters of the gateway, please use the software "ODOT MGCC Config" for configuration.
Page 22
Modify the gateway IP address of the configuration software interface to: 192.168.10.12 (cross-network segment), and the LAN gateway IP to: 192.168.10.1. After the modification is completed, click to download the gateway configuration directly, and a warning box will pop up to confirm whether to modify the IP address. Click OK, you can see the download is successful in the lower right corner.
Page 23
After the IP address is successfully modified, you need to change the computer's IP address to: 192.168.10.* network segment. Click Upload Gateway Configuration on the configuration software MGCC Config interface. After the upload is successful, you can see the upload success in the lower right...
corner. 3.4 Typical application description 3.4.1 Realize communication between Modbus TCP client and Modbus RTU/ASCII slave...
Page 25
3.4.1.1Application topology 3.4.1.2 Transparent transmission mode configuration 3.4.1.2.1. Open the software configuration software "odot MGCC Config", right-click the slave configuration page and select "Add Device", and add "ODOT-S4E2".
Page 26
3.4.1.2.2.Double-click "ODOT-S4E2" or right-click "ODOT-S4E2", Select “common device attributes”, Set the gateway working mode to Transparent in the popup page. 3.4.1.2.3.Double-click "COM1" , "COM2" ,"COM3" , "COM4"or right-click "COM1" , "COM2" ,"COM3" , "COM4" and click "Serial Properties", then "Serial Settings" window is popped up. After setting the communication parameters, click the "OK"...
Page 27
Check Digit: It could select none, odd, even parity, and none is set as default. Please set this parameter to be consistent with the device to which the serial port is connected. Stop bit: It could choose stop bit 1 or stop bit 2. And default is stop bit 1. Please set this parameter to be consistent with the device to which the serial port is connected.
Page 28
3.4.1.2.4.Select "COM1" , "COM2" ,"COM3" , "COM4".Take COM1 as an example . Right click to select Add Slave, input "Slave Name", fill in "Slave Number" and slave "Response Timeout" time, click "Confirm" to return. The station number of the slave cannot be the same with each other and the device itself too.
Page 29
3.4.1.2.5.Configure the Ethernet parameters of the gateway by configuring the "Ethernet Configuration" on the left half of the software. Some of the parameters are as follows: Modbus gateway IP:The gateway IP address; ?设备还是网关? Subnet mask:Subnet mask of the gateway; LAN gateway IP:Gateway IP address of the network where the device resides;...
Page 30
3.4.1.2.6.Set the target gateway address that you want to download. And it could set the download communication port number through “Communication”→“Configure communication channel” too. The gateway factory default IP is 192.168.1.254 and port number is 1024. 3.4.1.2.7.Click the button “Download Gateway Configuration ” to. download configuration parameters to the gateway.
Page 31
16DI which the station number is 1 though the gateway IP address 192.168.1.254, the Modbus data communication port 502 and the slave number 3.4.1.3 Mapping mode configuration 3.4.1.3.1. Open the configuration software "ODOT MGCC Config". Right-click on the configuration page of slave and select "Add Device" ,then add "ODOT-S4E2".
Page 32
3.4.1.3.2.Double-click "ODOT-S4E2", or right-click "ODOT-S4E2", and select "Common attribute". It could set the gateway working mode to "Mapping Mode" in the popup setting page.
Page 33
3.4.1.3.3.Double-click "COM1", "COM2" , "COM3" "COM4"or right-click "COM1", "COM2", "COM3" "COM4" . And click "Serial Properties" to bring up the "Configure serial" window. Set up the communication parameters, then click the "OK" to save and return. The meaning of each parameter is as follows: Operating mode:...
Page 34
rate). In general, there is no need to change this parameter. Packet transmission interval: Interval time for sending Modbus commands (Delayed time from receiving the slave response message to sending the next command) can be set from 0ms-65535ms. Default is 0ms.
Page 35
serial port, the station number of the slave cannot be the same with each other and the device itself too. Range of the slave station address is between 1 and 247. Under the same serial port the slave name cannot be the same. After completing the settings, click "Save Current Mapping Table Edit".
Page 36
LAN gateway IP:Gateway IP address of the network where the device resides; Modbus-TCP data communication port:Generally it is 502; Configure the port:The configuration software could be used for downloading the configuration to the device through this port of the device; Modbus-TCP watchdog time:The time interval from when the gateway receives the last Modbus TCP packet to the automatic restart.
Page 37
3.4.1.3.7.Click the button “Download Gateway Configuration ” to. download configuration parameters to the gateway. After the download is successful, the "Download successful" prompt appears in the Status Bar at the lower right. After the download is successful, the gateway restarts automatically and then the it goes into running state.
Page 38
IP address 192.168.1.254, the Modbus data communication port 502 and the slave number X(0<X<248 and X cannot be the device station number of the gateway). 3.4.2 Simple configuration 3.4.2 .1.Open the configuration software "ODOT MGCC Config". Right-click on the configuration page of slave and select "Add Device" ,then add "ODOT-S4E2".
Page 39
3.4.2 .2.Double-click "ODOT-S4E2" or right-click "ODOT-S4E2", Select “Common attribute”. It could set the gateway working mode to "Mapping Mode" in the popup setting page. 3.4.2.3.Double-click "COM1", "COM2" , or right-click "COM1", "COM2". And click "Serial Properties" to bring up the "Configure serial" window. Set up the communication parameters, then click the "OK"...
Page 40
Baud rate: Serial port baud rate: optional range is 1200~115200bps and default is 9600bps. Please set this parameter to be consistent with the device to which the serial port is connected. Check Digit: It could choose none, odd, even and default is set as none. Please set this parameter to be consistent with the device to which the serial port is connected.
Page 41
??需要重新截图 为映射 3.4.2.4.Select "COM1" or "COM2" (In this example, it is COM1), and right-click to select “Add Slave”. It could then input "Slave name" and fill in "slave station number". Then it could configure Modbus function code, start address of slave data, number of data, start address of gateway mapping area and response timeout time and if “event output”(only when the data changes, the gateway will execute this command once, this parameter is only valid for write commands) according to the communication manual of slave equipment.
Page 42
3.4.2.5.Double-click "COM2" , or right-click "COM2". And click "Serial Properties" to bring up the "Configure serial" window. Set up the communication parameters. And it sets the serial port working mode as slave mode, then click the "OK" to save and return. (For this example, it selects COM2). The meaning of each parameter is as follows:...
Page 43
Baud rate: Serial port baud rate: optional range is 1200~115200bps and default is 9600bps. Please set this parameter to be consistent with the device to which the serial port is connected. Check Digit: It could choose none, odd, even and default is set as none. Please set this parameter to be consistent with the device to which the serial port is connected.
Page 44
3.4.2.6.Configuring the Ethernet parameters of the gateway by the "Ethernet Configuration" on the left of the software. Some of the parameters are as follows: ??网关还是设备的 IP? Modbus gateway IP:The gateway IP address; Subnet mask:Subnet mask of the device; LAN gateway IP:Gateway IP address of the network where the device resides; Modbus-TCP data communication port:Generally it is 502;...
Page 45
If the download fails, please check out whether the computer IP address and gateway IP address are in the same network segment. Then check whether the gateway IP address is set correctly. If the gateway IP address is lost, please reset the gateway through the reset button.
Need help?
Do you have a question about the ODOT-S4E2 and is the answer not in the manual?
Questions and answers