KYLAND KGW3204 User manual

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

5.2 Transparent-B........................................................................................................................................31
5.3 Agent-A..................................................................................................................................................33
5.4 Agent-B..................................................................................................................................................37

1
1. Introduction
KGW3204 Modbus Gateway converts between Modbus TCP and Modbus RTU/ASCII protocols. The
KGW3204 Modbus Gateway with dual power supply and dual IP address support 2KV electromagnetic
isolation protection in serial ports.
The following topics are covered in this chapter:
❒Overview
❒Package Checklist
❒Product Features

2
1.1Overview
KGW3204 Modbus gateway is a redundant power supply Modbus gateway which converts between Modbus
TCP and Modbus RTU/ASCII protocols. For ethernetEthernet 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.
KGW3204 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 activeltactively poll the Modbus slave devices and store datasdata in the Modbus’s memory. The
Modbus master can retrieve Modbus slave devices’ datasdata via the gateway’s memory.
1.2 Package Checklist
The KGW3204 Modbus gateway is shipped with the following items:
•KGW3204 Modbus Gateway
•Installation Guide
•SoftwareDcocument 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/ASCIIIntegration of Modbus RTU/ASCII Master/Slave
mode
•2 auto detectable 10/100Mbps ethernetEthernet ports and 4 RS-232/RS-422/RS-485 serial ports
•Up to 16 TCP Master/client devices, or connect to up to 16 TCP Slave/Server devices for Ethernet port
•Up to 128 Master/Slave nodes for each serial port
•15KV ESD protection for the serial side
•2KV Electromagnetic isolation protection for the serial side
•Support HTTPS, SSH2 security configuration protocol
•Support redundant 12-48V DC power supply
•Support surge protection for each interface and power line
•Support “Reset to Factory Default Settings”
•Support IP40 protection level

3
•Certificates: CE, FCC, UL61010, ULC1D2 and RoHS(Ongoing)

4
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 IndicatersIndicators
❒Dimension Figures
❒Pin Assignments
➢Ethernet Ports (RJ45)
➢Serial Ports (DB9 Male)
➢Power Input Ports
❒Specifications

5
2.1 Connecting Power
The KGW3204 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: KGW3204 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 ports are on the front panel. If you connect the RS-422/RS-485 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 port :Pin Assignments.
2.2.1 Setting RS-485 Terminal Resistors
When build up the RS-485 network in bad conditions, you may need to add terminal resistors to prevent the
reflection of serial signals. There is a default built-in 120KΩterminal resistor in KGW3204. For serial ports, the
DIP switch on the top panel is used to enable/disable the terminal resistor.
SetingSetting the 120 Ωtermination resistor: the switch 1/2/3/4 corresponds to the serial port S1/S2/S3/S4.
When switch 1/2/3/4 is set to “ON”, it enables the terminal resister, and when switch 1/2/3/4 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 two 10/100M ethernetEthernet ports on the front panel are used to connect a host or Ethernet network.
The gateway can be connected to other hosts or networks by using this ethernetEthernet ports. In normal
operation, you can use the standard ethernetEthernet 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 two LED light in the port will light up for checking whether it is connected to the
network.
Two ethernetEthernet ports and two corresponded MAC addresses are provided by KGW3204. The IP
addresses are editable but the MAC addresses can not be changed.

6
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/E2 (Link/ACT)
YellowGreen
Steady on: Ethernet connection.
Blinking: Ethernet port is receiving/transmitting data.
Off: Ethernet cable has disconnected.
E1/E2 (10/100M)
GreenYellow
Steady on: 100Mbps connection.(100Base-TX)
Off: 10Mbps connection or ethernetEthernet cable has disconnected.
Sn-T
Green
Blinking: The serial port n is transmitting data.
Off: No data is being transmitted or received through the serial port.
Sn-R
Green
Blinking: The serial port n is receiving data.
Off: No data is being transmitted or received through the serial port.

7
2.4 Dimension Figures
KGW3204 (unit: mm)
2.5 Pin Assignments
2.5.1 Ethernet Ports (RJ45)
2.5.2 Serial Ports (DB9 Male)
The KGW3204 Modbus gateway uses DB9 (male) serial ports to connect Modbus RTU or ASCII devices.
Each 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)
-
2
RxD
RxD+(A)
-
3
TxD
TxD-(Z)
Data-(B)
4
RTS
TxD+(Y)
Data+(A)
5
GND
GND
GND
6
–
–
7
–
–
8
–
–
9
–
–
–

8
2.5.3 Power Input Ports
The KGW3204 Modbus gateway is equipped with 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: 2
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: 4
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: 5, 6, 7, 8
Stop Bits: 1, 2
Parity: None, Even, Odd, Space, Mark
Flow Control: XON/XOFF, RTS/CTS, None
BaudrateBaud rate: 300bps - 460.8kbps
Serial Signals
RS-232: TxD, RxD, RTS, CTS, GND
RS-422: Tx+, Tx-, Rx+, Rx-, GND
RS-485-2w: Data+, Data-, GND
Powe
r
Pin
Function
PWR1
+/L
PWR1 connects to +/L
-/N
PWR1 connects to -/N
PWR2
+/L
PWR2 connects to +/L
-/N
PWR2 connects to -/N

9
Software
Security Protocols:HTTPS, SSH2
LEDs
System: PWR1, PWR2, RUN
Serial port: S1-T/R、S2-T/R、S3-T/R、S4-T/R
LAN: SPEED, ACT/LINK (RJ 45)
Buttons
Reset: Supports “Reset to Factory Default Settings”
Physical Characteristics
Housing: Aluminum
Weight: 320g
Dimension: 54×135×106 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
System Consumption: 3.2W
Surge Protection: Support
Reverse Connect Protection: Support
Redundancy Power supply: Support
Standards and Certifications
Certifications: CE, FCC, UL61010,C1D2, RoHS
EMI:

10
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): PowerPortPower 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

11
3. Typical Applications
Some typical applications of KGW3204 are covered in this chapter as following topics:
❒Ethernet Masters with Multiple Serial Slaves
❒Serial Masters with Multiple Ethernet Slaves

12
3.1 Ethernet Masters with Multiple Serial Slaves
The ethernetEthernet Master can connect multiple Serial Slaves. The KGW3204 supports Modbus TCP
Master with up to 16 Modbus TCP Master simultaneous connections. The serial interface supports both RS-
232, RS-422 and RS-485 which is configured through software settings. Each serial port can manage up to
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 ethernetEthernet 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 ethernetEthernet ports should be in Modbus TCP Slave mode, and the serials port
should be in Modbus RTU/ASCII Master mode.

13
3.2 Serial Masters with Multiple Ethernet Slaves
The serial port Masters can connect to more than one ethernetEthernet Slaves. The KGW3204 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 ethernetEthernet 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 ethernetEthernet ports should be in Modbus TCP Master mode, and the serial ports

14
should be in Modbus RTU/ASCII Slave mode.

15
4. Web Console Configuration
The KGW3204 Modbus gateway can be configured by built-in Web page, and you can access the home page
of KGW3204 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 FirmeareFirmware
❒Change Password
❒Load Factory Default
❒Save/Reboot
❒Help
❒Logout

16
Other manuals for KGW3204
1
Table of contents
Popular Gateway manuals by other brands

SMC Sierra Monitor
SMC Sierra Monitor FieldServer FS-QS-2 10 Series Startup guide

Dinstar
Dinstar UC100-1T1S1O user manual

Hypercom
Hypercom ATMConnect C5100 installation guide

RTA
RTA 460MSBS-NNA1 Product user guide

THOMSON
THOMSON TG784 Setup and user guide

Accton Technology
Accton Technology CheetahAccess AC-IG1004 user guide