Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the KGW3204 and is the answer not in the manual?

Questions and answers

Summary of Contents for KYLAND KGW3204

  • Page 1 KGW3204 Modbus Gateway User Manual Edition, August 2017 www.kyland.com...
  • Page 2 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...
  • Page 3: Table Of Contents

    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 ....................
  • Page 4 5.2 Transparent-B ............................31 5.3 Agent-A ..............................33 5.4 Agent-B ..............................37...
  • Page 5: Introduction

    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: ❒...
  • Page 6: Overview

    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.
  • Page 7 • Certificates: CE, FCC, UL61010, ULC1D2 and RoHS(Ongoing)...
  • Page 8: Getting Started

    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 ❒ IndicatersIndicators ❒ Dimension Figures ❒ Pin Assignments ➢ Ethernet Ports (RJ45) ➢...
  • Page 9: Connecting Power

    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.
  • Page 10: Led Indicators

    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.
  • Page 11: Dimension Figures

    Unused 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.
  • Page 12: Power Input Ports

    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. Powe Function PWR1 connects to +/L PWR1 2.6 Specifications PWR1 connects to -/N...
  • Page 13 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℃...
  • Page 14 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...
  • Page 15: Typical Applications

    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...
  • Page 16: Ethernet Masters With Multiple Serial Slaves

    3.1 Ethernet Masters with Multiple Serial Slaves 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.
  • Page 17: Serial Masters With Multiple Ethernet Slaves

    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.
  • Page 18 should be in Modbus RTU/ASCII Slave mode.
  • Page 19: Web Console Configuration

    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: ❒...
  • Page 21: Log In

    4.1 Log In Firstly open your browser. 192.168.0.249 (default for E1) in the address input box and press “Login”. Then,inputThen, input 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.
  • Page 22: Operating Settings

    4.4 Operating Settings 4.4.1 Operation Mode Switch The KGW3204 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 23 Transparent-A Parameters: • Operating Mode: RTU/slave, ASCII/slave • 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 •...
  • Page 24: Agent Mode

    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 KGW3204 Modbus. One is the Modbus RTU/ASCII Slave, and the other is Modbus RTU/ASCII Master. In Slave mode, you will need to...
  • Page 25 Agent-A Parameters: • Operating mode: RTU Master, 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 ethernetEthernet side is to be Modbus TCP Master mode, and the serial side is...
  • Page 26: Serial Settings

    4.6 Agent settings (Agent Mode) Only in Agent mode some agent settings should be carried out for the serial port in KGW3204, such as gateway settings, slave list, and data query. Click “Save” to save the current changes to the device. There is...
  • Page 27: Gateway Settings

    For certain conditions, it may cause the entire system suffering from repeated exceptions during the initial boot-up. You can force KGW3204 to waiting for booting up before sending the first request with the initial delay setting •...
  • Page 28 • COM: the serial port of device (S1-S4) • Device ID: the ID of the terminal device with up to128 devices for each serial port • Alias: the name of the terminal device • Function Code: the function ID of the terminal device •...
  • Page 29: Data Query

    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 KGW3204. The device name, networks, the serial parameters and operating mode in imported file can be modified.
  • Page 30: Upgrade Firmware

    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.
  • Page 31: Save/Reboot

    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”...
  • Page 32: Case Studies

    5. Case Studies The following topics are covered in this chapter: ❒ Transparent-A ❒ Transparent-B ❒ Agent-A ❒ Agent-B...
  • Page 33: Transparent-A

    Master to PC by DB9 cable. A. Web Configuration Power on KGW3204 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 34 Mode: RTU And then click “OK” into the application page. Now run “Modbus Poll” on PC and set the parameters as shown in the following figure. Configure PC which was connected to E1 to 192.168.0.249. And then click “OK” to enter the application page. Finally, input number in address 1 and address 2 respectively in “Modbus Slave”...
  • Page 35 A. Web Configuration Power on KGW3204 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 36 Please note that the Slave ID should be same with the ID in “Operating Mode”. And then click “OK” into the application page. Then run the “Modbus Slave” software on PC and set the parameters as it is shown in the following figure, click “OK”...
  • Page 37 Master to PC by DB9 female cable. A. Web Configuration Power on KGW3204 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...
  • Page 38 Then, click “Serial Settings” in navigation bar to set the parameters of each serial port, click “Save” to save the change. Then, click “Agent Settings” in navigation bar and select “Gateway Settings” to set the parameters of the device, and click “Save” to save the change. Enter into the “Device List”...
  • Page 39 And then click “OK” to enter into the application page. After configuration, click “OK” into the application page, add a Modbus RTU slave that be same as Modbus Slave terminal device. 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...
  • Page 40 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. 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”...
  • Page 41 Slave to PC by DB9 female cable. A. Web Configuration Power on KGW3204 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 change.
  • Page 42 Finally click “Device List” in navigation bar and click “Add New Slave” to add a new slave device. B. PC Configuration Run “Modbus Poll” software on PC. The “Modbus Poll” parameters should be configured as shown in the following figure. And then click “OK” to enter into the application page. 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.
  • Page 43 Connection: Serial Port Mode: RTU And then click “OK” to enter into the application page. In the application page, add a Modbus TCP slave in corresspondedcorresponded 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”...

Table of Contents