KGW3101 Modbus Gateway User Manual Edition, August 2017 www.kyland.com...
Page 2
Copyright Notice Kyland Technology Co., Ltd. All rights reserved. Trademarks The Kyland logo is a registered trademark of Kyland Technology Co., Ltd. All other trademarks or registered marks in this manual belong to their respective manufacturers. Disclaimer The information provided in this manual is intended to be accurate and reliable. However, Kyland can not guarantee that there is not any error including the technical error or the typographical error.
1. Introduction KGW3101 Modbus Gateway converts protocols between Modbus TCP and Modbus RTU/ASCII. The KGW3101 Modbus Gateway supports redundant power supply and 2KV electromagnetic isolation protection in serial ports. The following topics are covered in this chapter: ❒ Overview ❒...
1.1 Overview KGW3101 Modbus gateway is a redundant power supply Modbus gateway which converts between Modbus TCP and Modbus RTU/ASCII protocols. For ethernet ports, it can be accessed up to 16 TCP Master/Client devices, or connects to 16 TCP Slave/Server devices. For each serial port, it can physically manage up to 128 serial Master/Slave nodes.
2. Getting Started This chapter will include the contents as follows. ❒ Connecting Power ❒ Connecting Serial Devices ➢ RS-485 Termination Resistors ➢ Connecting to a Host or the Network ❒ LED Indicators ❒ Dimension Figures ❒ Pin Assignments ➢ Ethernet Ports (RJ45) ➢...
When build up the RS485 network in bad conditions, you may need to add terminal resistors to prevent the reflection of serial signals. There is a built-in 120KΩ terminal resistor in KGW3101. For the serial port, the DIP switch on the top panel is used to enable/disable the terminal resistor.
2.3 LED Indicators Item Function Reset Button Press this button at least 5 seconds to reset the device to factory settings. LED indicators Steady on: Power is on. PWR1/PWR2 Green Off: Power is off, or power error. Blinking with 1Hz: Indicates the device is functioning normally. Green Steady on: Power is on and device is booting up.
Unused 2.5.2 Serial Ports (DB9 Male) The KGW3101 Modbus gateway uses DB9 (male) serial ports to connect Modbus RTU or ASCII devices. The port supports three serial interfaces: RS- 232, RS-422, and RS-485, and all interface types can be configured by the software.
– – – – – 2.5.3 Power Input Ports The KGW3101 Modbus gateway is equipped with a phoenix terminal block whose space is 5.08mm,it has dual power inputs PWR1 and PWR2 for redundancy. Powe Funciton PWR1 connects to +/L PWR1 2.6 Specifications...
Page 13
System Consumption: 1.8W Surge Protection: Support Reverse Connect Protection: Support Redundancy Power: Support Standards and Certifications Certifications: CE, FCC, UL61010, C1D2, RoHS EMI: EN 55022 Class A FCC Part 15 Subpart B Class A EN 55024 EMS: IEC61000-4-2(ESD): ± 6kV(contact),± 8kV(air) IEC61000-4-3(RS): 10V/m (80MHz–2GHz) IEC61000-4-4(EFT): Power Port:±...
3. Typical Applications Some typical applications of KGW3101 are covered in this chapter as following topics: ❒ Ethernet Masters with Multiple Serial Slaves ❒ Serial Masters with Multiple Ethernet Slaves...
3.1 Ethernet Masters with Multiple Serial Slaves The ethernet Master can connect multiple Serial Slaves. The KGW3101 supports Modbus TCP Master with up to 16 Modbus TCP Master simultaneous connections. The serial interface supports RS-232, RS-422 and RS- 485 modes through software settings. Each serial port can manage 128 Slave nodes.
3.2 Serial Masters with Multiple Ethernet Slaves The serial port Masters can connect to more than one ethernet Slaves. The KGW3101 Modbus gateway supports Modbus TCP Slave with up to 16 simultaneous connections. The serial interface supports RS-232, RS422 and RS-485 through software settings.
4. Web Console Configuration The KGW3101 Modbus gateway can be configured by built-in Web page, and you can access the home page of KGW3101 through browsers like Mozilla Firefox browser, Microsoft IE browser. The following topics are covered in this chapter: ❒...
4.1 Log In Firstly open your browser. Then, input 192.168.0.249 (default for E1) in the address input box and click “Login”. The default username is admin, and the password is admin. You can also select the operation language (English or Chinese) as your convenience. 4.2 Device Information You can see the basic information of the device in this page, such as the device name, module type, IP address, current working mode, SN number, firmware version, MAC address and change to mode.
4.4 Operating Settings 4.4.1 Operation Mode Switch The KGW3101 Modbus gateway supports two operation mode: Transparent mode and Agent mode. You can see current operation mode in overview page. When powered on, the device’s default operation mode is Transparent mode, and it can be switched to Agent mode.
Page 21
Transparent-A Parameters: • Operating Mode: RTU Master, ASCII Master • Filter Function: enable/disable the Modbus ID filter function • Filter ID Start: starting filtered Modbus ID in range of 1-247 • Filter ID End: ending filtered Modbus ID in range of 1-247 •...
Modbus TCP requests and use the internal memory as the Slave register to respond. There are two work modes used as the serial side of the KGW3101 Modbus. One is the Modbus RTU/ASCII Slave, and the other is Modbus RTU/ASCII Master. In Slave mode, you will need to specify the ID, remote IP and other parameters of the slave device.
Page 23
Agent-A Parameters: • Operating mode: RTU Master or ASCII Master • Filter Function: enable/disable the Modbus ID filter function • Filter Start ID: the range is 1-247 • Filter End ID: the range is 1-247 Agent-B: Modbus TCP Slave - Modbus RTU/ASCII Master In Agent-B mode, the device ethernet side is to be Modbus TCP Master mode, and the serial side is to be Modbus RTU/ASCII Slave mode.
4.6 Agent settings (Agent Mode) Only in Agent mode some agent settings should be carried out for the serial port in KGW3101, such as gateway settings, slave list, and data query. Click “Save” to save the current changes to the device. There is...
For certain conditions, it may cause the entire system suffering from repeated exceptions during the initial boot-up. You can force KGW3101 to waiting for booting up before sending the first request with the initial delay setting •...
Page 26
• Searching: search current Modbus slave device by some key words • COM: the serial port of device (S1) • Device ID: the ID of the terminal device with 128 terminal devices for the serial port • Alias: the name of the terminal device •...
Value (hexadecimal): displaying the data in the register in hexadecimal form 4.7 Import/Export The page is to import or export the configuration file for KGW3101. The device name, networks, the serial parameters and operating mode in imported file can be modified.
Import/Export Parameters: • Export Config File: to export the configuration file of the device • Import Config File: to import the modified configuration file of the device • Upload Status: the progress bar of uploading file 4.8 Upgrade Firmware The Upgrade Firmware page is where the gateway’s firmware can be upgraded, and the “Upload Status” is the progress bar of upgrading firmware.
Note: all parameters of the device will be reset to the factory setting, so please do not use the function unless you confirm. 4.11 Save/Reboot All changes will effect by clicking the “Save” without restarting the gateway. If you need to restart the device, click "reboot"...
A. Web Configuration Power on KGW3101 and log in web server of the device, set the operation mode of device to Transparent mode in “Overview” page. Then, click “Operating Settings” in navigation bar to set Port S1 to RTU Master mode, and click “Save” to save the change.
Page 32
B. PC Configuration Connect PC and the gateway serial port (S1) by DB9 female cable to configure for PC. Run “Modbus Slave” software on PC. The “Modbus Slave” parameters must be configured as shown in the following figure. Connection: Serial Port Mode: RTU And then click “OK”...
A. Web Configuration Power on KGW3101 and log in web server of the device, set the operation mode of device to Transparent Mode in “Overview” page. Then, click “Operating Settings” in navigation bar to set S1 to RTU Slave mode, click “Save” to save the change.
Page 34
B. PC Configuration Connect PC and the gateway serial port (S1) by DB9 female cable to configure for PC. Run “Modbus Poll” software on PC. The “Modbus Poll” parameters must be configured as shown in the following figure. Connection: Serial Port Mode: RTU Port: 8001 Please note that the Slave ID should be same with the ID in “Operating Mode”.
Page 35
Then run the “Modbus Slave” software on PC and set the parameters as it is shown in the following figure, click “OK” to into the application page. In Setup—>Slave Definition, the Slave ID should be same as the ID in “Operating Mode”.
A. Web Configuration Power on KGW3101 and log in web server of the device, set the operation mode of device to Agent Mode in “Overview” page. Next click “Operating Settings” in navigation bar to set S1 to RTU Master mode, and click “Save” to save the change.
Page 37
Enter into the “Device List” in navigation bar and click “Add New Slave” to add a new slave device. B. PC Configuration Run “Modbus Slave” software on PC. The “Modbus Slave” parameters must be configured as shown in the following figure. And then click “OK” to enter into the application page. After configuration, click “OK”...
Page 38
Then, run “Modbus Poll” on PC and set the parameters as shown in the following figure. Connection: TCP/IP Mode: RTU IP: 192.168.0.249 Port: 502 And then click “OK” to enter into the application page. In the application page, set the Slave ID in Setup—>Read/Write Definition be same with the Modbus ID in “Gateway Settings”, then add a Modbus TCP device in corresponded to the Modbus Slave terminal device.
A. Web Configuration Power on KGW3101 and log in web server of the device, set the operation mode of device to Agent Mode in “Overview” page. Then, click “Operating Settings” in navigation bar to set S1 to RTU Slave mode, and click “Save” to save the...
Page 40
Then, click “Serial Settings” in navigation bar to set the parameters of the serial port. At last, click the “Save” to save the change. Next click “Agent Settings” in navigation bar and select “Gateway Settings” to set the parameters of the device.
Page 41
In the application page, make the Slave ID in Setup—>Read/Write Definition be same with the Modbus ID in “Gateway Settings”, and then add Modbus RTU device in corresponded to the terminal device. Then, run “Modbus Slave” on PC and set the parameters as shown in the following figure. Connection: TCP/IP Mode: RTU Port: 8001...
Page 42
In the application page, add a Modbus TCP slave device in corressponded to the Modbus Slave terminal device. Finally, input number in address 1 and address 2 respectively in “Modbus Slave” software, and you can see the numbers in corresponding address in “Modbus Poll” software.
Need help?
Do you have a question about the KGW3101 and is the answer not in the manual?
Questions and answers