KYLAND Technology KGW3101 User manual

KGW3101 Modbus Gateway
User Manual
1st Edition, August 2017
www.kyland.com

KGW3101 Modbus Gateway
User Manual
The software described in the manual is furnished under a license agreement and may be used only in
accordance with the terms of that agreement.
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. Kyland reserves
the only right to modify the description of products and programs in the manual without notice to the users.
Anyone is not to be allowed to copy, reproduce and business use.
Please note the infringement. Copyright © 2017 Kyland Technology Co., Ltd.
Technical Support Contact Information
www.kyland.com/support
Kyland China Kyland Americas
Tel: +86-10-88796676 Tel: +1-303-447-6882
Fax: +86-10-88796678
Kyland EMEA Kyland Asia Pacific
Tel: +49 (0) 711 997606-200 Tel: +65 3157 9226
Fax: +49 (0) 711 997606-211
Kyland India & SEA
Tel: +91-9008358660

Table of Contents
1. Introduction..................................................................................................................................................1
1.1 Overview..................................................................................................................................................2
1.2 Package Checklist...................................................................................................................................2
1.3 Product Features.....................................................................................................................................2
2. Getting Started.............................................................................................................................................3
2.1 Connecting Power ...................................................................................................................................4
2.2 Connecting Serial Devices ......................................................................................................................4
2.2.1 Setting RS-485 Terminal Resistors ..................................................................................................4
2.2.2 Connecting to a Host or the Network................................................................................................4
2.3 LED Indicators .........................................................................................................................................5
2.4 Dimension Figures...................................................................................................................................6
2.5 Pin Assignments......................................................................................................................................6
2.5.1 Ethernet Ports (RJ45).......................................................................................................................6
2.5.2 Serial Ports (DB9 Male)....................................................................................................................6
2.5.3 Power Input Ports .............................................................................................................................7
2.6 Specifications...........................................................................................................................................7
3. Typical Applications..................................................................................................................................10
3.1 Ethernet Masters with Multiple Serial Slaves ........................................................................................11
3.2 Serial Masters with Multiple Ethernet Slaves ........................................................................................12
4. Web Console Configuration.....................................................................................................................14
4.1 Log In.....................................................................................................................................................15
4.2 Device Information.................................................................................................................................15
4.3 Network Settings....................................................................................................................................15
4.4 Operating Settings.................................................................................................................................16
4.4.1 Operation Mode Switch ..................................................................................................................16
4.4.2 Transparent Mode...........................................................................................................................16
4.4.3 Agent Mode.....................................................................................................................................18
4.5 Serial Settings........................................................................................................................................20
4.6 Agent settings (Agent Mode).................................................................................................................20
4.6.1 Gateway settings ............................................................................................................................21
4.6.2 Slave List ........................................................................................................................................21
4.6.3 Data Query......................................................................................................................................23
4.7 Import/Export .........................................................................................................................................23
4.8 Upgrade Firmware.................................................................................................................................24
4.9 Change Password .................................................................................................................................24
4.11 Save/Reboot........................................................................................................................................25
4.12 Help .....................................................................................................................................................25
4.13 Logout..................................................................................................................................................25
5. Case Studies..............................................................................................................................................26

5.1 Transparent-A........................................................................................................................................27
5.2 Transparent-B........................................................................................................................................29
5.3 Agent-A..................................................................................................................................................32
5.4 Agent-B..................................................................................................................................................35

1
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
❒Package Checklist
❒Product Features

2
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. All serial ports of gateways provide 2KV isolation protection. Each RS-232/RS-
422/RS-485 serial port can be configured individually for Modbus RTU or Modbus ASCII, allowing both types
of networks to be integrated with Modbus TCP through one Modbus gateway.
KGW3101 Modbus gateway supports both Transparent mode and Agent mode. In Transparent mode, the
gateway will bypass and translate Modbus commands between Modbus TCP/RTU/ASCII. In Agent mode, the
gateway will actively poll the Modbus slave devices and store data’s in the Modbus’s memory. The Modbus
master can retrieve Modbus slave devices’ data via the gateway’s memory.
1.2 Package Checklist
The KGW3101 Modbus gateway is shipped with the following items:
•KGW3101 Modbus Gateway
•Installation Guide
•Documentation CD
•Product Warranty Statement
NOTE: Notify your sales representative if any of the above items is missing or damaged.
1.3 Product Features
•Convert between Modbus TCP and Modbus RTU/ASCII
•1 auto detectable 10/100Mbps ethernet port and 1 RS-232/RS-422/RS-485 serial port
•Up to 16 TCP Master/Client devices, or connect to up to 16 TCP Slave/Server devices for ethernet ports
•Up to 128 Master/Slave nodes for each serial port
•15KV ESD protection for the serial port
•2KV isolation protection for the serial port
•Support HTTPS, SSH2 security configuration protocol
•Support redundant 12-48V DC power supply
•Support "Reset to Factory Default Settings"
•Support IP40 protection level
•Certificates: CE, FCC, UL61010, C1D2 and RoHS

3
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)
➢Serial Ports (DB9 Male)
➢Power Input Ports
❒Specifications

4
2.1 Connecting Power
The KGW3101 Modbus gateway can be powered by connecting the power source to the terminal block, and
the instruction is as follows.
1. Loosen or remove the screws on the terminal block.
2. Connect the 12~48 VDC power cable to the terminal block.
3. Tighten the connections using the screws on the terminal block.
Note:KGW3101 Modbus gateway does not have the On/Off switch. It automatically runs when it is powered
on. The PWR LED on the top panel will glow to indicate that the device is powered on. The device supports
two redundant DC power supply.
2.2 Connecting Serial Devices
The serial port is on the front panel. If you connect to the network with multiple devices, please note the
following:
1. All devices that are connected to a single serial port must use the same protocol (i.e., either Modbus RTU
or Modbus ASCII).
2. Each master device must get its own port on the device.
Please refer to the 2.5 section for the guide of serial ports :Pin Assignments.
2.2.1 Setting RS-485 Terminal Resistors
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.
Setting the 120 Ωtermination resistor: the switch 1 corresponds to the serial port S1. When switch 1 is set to
“ON”, it enables the terminal resister, and when switch 1 is set to “OFF”, it disables the terminal resistor. The
gateway device disable terminal resistors by default.
2.2.2 Connecting to a Host or the Network
The 10/100M ethernet port on the front panel is used to connect a host or Ethernet network. The gateway can
be connected to other hosts or networks by using this ethernet port. In normal operation, you can use the
standard ethernet cable to connect the device to Modbus TCP network. For initial configuration or
troubleshooting purposes, you may connect the device directly to a PC. When the Modbus gateway runs, the
LED light in the port will light up for checking whether it is connected to the network.
One ethernet port and one corresponded MAC address are provided by KGW3101. The IP address is editable
but the MAC address can not be changed.

5
2.3 LED Indicators
Item
Function
Reset Button
Press this button at least 5 seconds to reset the device to factory settings.
LED indicators
PWR1/PWR2
Green
Steady on: Power is on.
Off: Power is off, or power error.
Run
Green
Blinking with 1Hz: Indicates the device is functioning normally.
Steady on: Power is on and device is booting up.
E1 (Link/ACT)
Green
Steady on: Ethernet connection.
Blinking: Ethernet port is receiving/transmitting data.
Off: Ethernet cable has disconnected.
E1 (10/100M)
Yellow
Steady on: 100Mbps connection.(100Base-TX)
Off: 10Mbps connection or ethernet cable has disconnected.
S1-T
Green
Blinking: The serial port 1 is transmitting data.
Off: No data is being transmitted or received through the serial port.
S1-R
Green
Blinking: The serial port 1 is receiving data.
Off: No data is being transmitted or received through the serial port.

6
2.4 Dimension Figures
KGW3101 (unit: mm)
2.5 Pin Assignments
2.5.1 Ethernet Ports (RJ45)
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.
Pin
MDI-X Signal
MDI Signal
1
Rx+
Tx+
2
Rx-
Tx-
3
Tx+
Rx+
6
Tx-
Rx-
4,5,7,8
Unused
Unused
Pin
RS-232
RS-422
RS-485
1
CTS
RxD-(B)
-

7
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.
2.6 Specifications
Ethernet Interface
Number of Ports: 1
Speed: 10/100 Mbps, Auto MDI/MDIX
Connector: RJ45 ×1
Protocols: Modbus TCP
Magnetic Isolation Protection: 1.5 KV (built-in)
Serial Interface
Number of Ports: 1
Serial Standards: RS-232/RS-422/RS-485, software option supported
Connector: DB9 Male
ESD Protection: 15KV ESD
Magnetic Isolation Protection: 2KV (built-in)
DIP Switch: Enable/Disable RS-485 terminal resistance
Protocols: Modbus RTU/ASCII Master/Slave
Serial Communication Parameters
Data Bits: 7, 8
Stop Bits: 1, 2
2
RxD
RxD+(A)
-
3
TxD
TxD-(Z)
Data-(B)
4
RTS
TxD+(Y)
Data+(A)
5
GND
GND
GND
6
–
–
7
–
–
8
–
–
9
–
–
–
Powe
r
Pin
Funciton
PWR1
+/L
PWR1 connects to +/L
-/N
PWR1 connects to -/N
PWR2
+/L
PWR2 connects to +/L
-/N
PWR2 connects to -/N

8
Parity: None, Even, Odd, Space, Mark
Flow Control: XON/XOFF, RTS/CTS, None
Baudrate: 300bps - 460.8kbps
Serial Signals
RS-232: TxD, RxD, RTS, CTS, GND
RS-422: Tx+, Tx-, Rx+, Rx-, GND
RS-485: Data+, Data-, GND
Software
Security Protocols:HTTPS, SSH2
LEDs
System: PWR1, PWR2, RUN
Serial ports:S1-T/R
LAN: SPEED, ACT/LINK (RJ45)
Buttons
Reset: Support "Reset to Factory Default Settings"
Physical Characteristics
Housing: Aluminum
Weight: 165g
Dimension: 30×115×68 mm(1.8×5.3×7.3 in)
Protection Level: IP40
Installation: DIN-rail mounting
Environmental Limits
Operating Temperature: -40 to 75℃
Storage Temperature: -40 to 85℃
Operating Humidity: 5 to 95% RH
Power Requirements
Input Voltage:24VDC recommended (12-48VDC)
Connection Terminal: 5.08mm spacing phoenix terminal block

9
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:±2kV; Data Port: ±1kV
IEC61000-4-5(Surge): Power Port: ±1kV/DM, ±2kV/CM; Data Port:±1kV
IEC 61000-4-6 (CS): 10V(150KHz-80MHz)
Machinery:
Vibration: IEC60068-2-6
Surge: IEC60068-2-27
Free-drop: IEC60068-2-32
Warranty
Warranty Period: 5 years

10
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

11
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.
A. Transparent-A
What we define Transparent-A as the process from Modbus TCP Master to Modbus RTU/ASCII Slave in
Transparent mode. In this mode, the ethernet ports should be in Modbus TCP Slave mode, and the serial
ports should be in Modbus RTU/ASCII Master mode.
B. Agent-A
What we define Agent-A as the process from Modbus TCP Master to Modbus RTU/ASCII Slave in Agent
mode. In this mode, the ethernet port should be in Modbus TCP Slave mode, and the serial port should be in
Modbus RTU/ASCII Master mode.

12
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.
A. Transparent-B
What we define Transparent-B as the process from Modbus TCP Slave to Modbus RTU/ASCII Master in
Transparent mode. In this mode, the ethernet port should be in Modbus TCP Master mode, and the serial port
should be in Modbus RTU/ASCII Slave mode.
B. Agent-B
What we define Agent-B as the process from Modbus TCP Slave to Modbus RTU/ASCII Master in Agent
mode. In this mode, the ethernet port should be in Modbus TCP Master mode, and the serial port should be in
Modbus RTU/ASCII Slave mode.

13

14
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:
❒Log In
❒Device Information
❒Network Settings
❒Serial Port Settings
❒Operating Settings
➢Operation Mode Settings
➢Transparent Mode
➢Agent Mode
❒Agent Settings
➢Gateway Operation Settings
➢Device Listing
➢Data Query
❒Import/Export
❒Upgrade Firmware
❒Change Password
❒Load Factory Default
❒Save/Reboot
❒Help
❒Logout

15
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.
“Change to Mode” allows you to switch the device’s work mode between Transparent mode and Agent mode
by clicking. The mode will effect without restarting the device.
Note: the parameter modifications of gateway device (except firmware upgrade) is effective immediately by
clicking “Save” without restarting the device.
4.3 Network Settings
The Network Setting page is where the device’s network settings are configured. You can modify the IP
configuration, IP address, subnet address, default gateway, and the device name. Click “Save” to save the
current changes to the device and the changing is effective without reboot.

16
Network Settings:
•IP configuration: Select “Static” if you are using a fixed IP address. Select “DHCP” if the IP address is
set dynamically.
•IP address: The IP (Internet Protocol) address identifies the server on the TCP/IP network. The
default setting E1 is 192.168.0.249
•Netmask: It identifies the server as belonging to a Class A, B, or C network. The default setting is
255.255.255.0
•Gateway: It is the IP address of the router that provides network access outside the server’s LAN.
•Device Name: The default model is KGW3101
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.
4.4.2 Transparent Mode
A. Transparent-A: Modbus TCP Master- Modbus RTU/ASCII Slave
In this mode, the ethernet port should be in Modbus TCP Slave mode, and the serial port should be in
Modbus RTU/ASCII Master mode. The serial port mode should be set to RTU Master mode or ASCII Master
mode. The following is RTU Master mode.
Table of contents
Popular Gateway manuals by other brands

Winmate
Winmate EAC Mini EACFA20 quick start guide

South Carolina
South Carolina EDI Technical communications user's manual

ZyXEL Communications
ZyXEL Communications P-870HN-5xb user guide

XAVI Technologies Corp.
XAVI Technologies Corp. X8821r+ user manual

MOKO
MOKO MK106 user manual

OptConnect
OptConnect OC-250 quick start guide