Page 2
KGW310X&320X Modbus gateway User manual Disclaimer: Kyland Technology Co., Ltd. tries to keep the content of this manual as accurate and as updated as possible. This document is not guaranteed to be error-free, and we reserve the right to amend it without notice to users.
Product Introduction 1 Product Introduction Welcome to use the Kyland KGW310X&320X Modbus gateway, which has power redundancy, and it can realize mutual conversion between Modbus TCP and Modbus RTU/ASCII protocol. The KGW310X&320X Modbus gateway has dual power input with 2KV electromagnetic isolation protection built in the serial port.
Modbus TCP and Modbus RTU/ASCII protocols. It can access up to 16 TCP Master/Client device. Each serial port can manage up to 32 nodes. KGW310X&320X Modbus gateway device provides 2KV serial port isolation protection for each serial port, each RS-...
Page 7
Product Introduction • Support HTTPS, SSH security configuration protocol • Support redundant 12~48VDC power access • Support one-click recovery function • IP40 protection class • CE, FCC, UL61010, ClD2, RoHS certifications.
Learn the ABC 2 Learn the ABC This chapter will provide basic operating instructions for the KGW310X&320X Modbus gateway installation, mainly including the following: Connect power supply Connect serial device RS-485 terminal resistance Connect to host or network LED indicator ...
Learn the ABC 2.1 Connect power supply KGW310X&320X Modbus gateway is powered by the power terminal connection to the power supply. Connect powe supply: Unscrew or remove the screws on the power terminal; Connect the 12-48VDC power cord to the power terminal;...
Learn the ABC Set 120Ω terminal resistance on the KGW3104 Modbus: Identification 1, 2, 3 and 4 of the DIP switch corresponds to the serial port S1, S2, S3 and S4. When the DIP is switched to the ON, the terminal resistance of the corresponding serial port is enabled;...
Learn the ABC 、 ON: 100M working status (100Base-TX) Yellow OFF: 10M working status (10Mbase-TX) or no connection (10/100M) Flash: The data is being transferring on the serial port n. Green Sn-T OFF: No data transmission on the serial port n. Flash: The data is being receiving on the serial port n.
Table 2.5.1 Netwrok port definition 2.5.2 Serial interface (DB9 male) KGW310X&320X Modbus gateway uses the DB9 serial port interface to connect to the Modbus RTU/ASCII device. Each serial port supports 3 serial interfaces: RS-232, RS-422, RS-485, to select the serial interface type via software.
Learn the ABC Isolation protection: Build-in 1.5KV 2.6.2 Serial interface Serial interface number: KGW3101 one; KGW3102 two; KGW3204 four Serial port type: RS-232/RS-422/RS-485, it can be selected via software Connector: DB9 male ESD protection: 15KV ESD Isolation protection: Build-in 2KV DIP switch: Enable/disable 120Ω...
Typical Application 3 Typical Application This chapter describes a typical gateway application, the home page includes the following: Masters of Ethernet and Slaves of Multiple serial ports ...
Modbus RTU Master mode. Figure 3.1.1 Transparent mode Agent Define Modbus TCP Master in Agent mode to Modbus RTU/ASCII Slave is Agent mode, so the Ethernet port of KGW310X&320X gateway is Modbus TCP Slave mode, serial port is Modbus RTU/ASCII Master mode.
Web Console Setting 4 Web Console Setting KGW310X&320X Modbus gateway has Web page, the gateway device can be set in the webpage by browser such as Firefox, IE. In this chapter, we will introduce the web Console feature groups and feature definitions.
Web Console Setting 4.1 Login Connect to KGW3204 Modbus gateway Web console: Open browser, then enter IP address of gateway. The default IP address of gateway: E1:192.168.0.249 , E2:192.168.1.249 Figure 4.1 Login page Default login username: admin, login password: admin. Enter username and password then click “login”, then enter into Web console of gateway.
Web Console Setting 4.3 System 4.3.1 Backup/upgrade The gateway firmware can be upgraded in the upgrade page. Click “select file” button to select the upgrade file, then click “upgrade” button to upgrade firmware. After the upgrade is successful, reboot the system manually and the system will start with a new firmware. Check “reserve configuration”...
Web Console Setting The password of account management can be modified, default username is admin and password is admin. Modify password: enter current password then enter new password twice, click “save” to submit the new password. Figure 4.3.3 User management 4.4 Network The network setting page displays the relevant network parameters of the gateway device, including running time, mac address, number of received/sent packets, IP address, etc.
Page 24
Web Console Setting Figure 4.4.2 Network port edit Parameter Value Description The address of the gateway device on the TCP/IP E1:192.168.0.249 IP address network. Two networks of the KGW3204 E2:192.168.1.249 Modbus gateway devices can be set to two different (or other 32 bits number) or the same IP addresses.
Web Console Setting 4.5 Data acquisition 4.5.1 Gateway device KGW3204 Modbus gateway has two working modes: Transparent transmission mode and proxy mode. Gateway device is an item configured in proxy mode, including device, IO, and variable transfer settings. Before configuring the gateway device, the advanced configuration must be configured first, add the corresponding protocol interface, See Section 4.5.2 for advanced configuration.
Page 26
Web Console Setting Serial port protocol configuation: Parameter Value Description Serial port type 0、1、2 The system fills automatically and select 232 to display 0, 485 display 1, 422 to display 2 in the advanced configuration Check bit The system fills automatically, 0 means parity check, 1 0、1、2 means odd check, and 2 means no check bit The system fills automatically, the band rate configured in the...
Page 27
Web Console Setting Data type 16-bit, 32-bit, float System end 1、0 1: Every 2 bytes, high 8-bit data high bit storage, low 8-bit data low bit storage 0: Every 2 bytes, high 8-bit data low bit storage, low 8-bit data high bit storage Table 4.5.1.2 Serial port configuration parameter Network port protocol configuration: Parameter...
Page 28
Web Console Setting 0: Every 2 bytes, high 8-bit data low bit storage, low 8-bit data high bit storage Table 4.5.1.3 Network port configuration parameter (2) IO point configuation Parameter Value Description Name User-defined User-defined name, the system automatically adds _io Description User-defined User-defined description...
Page 29
Web Console Setting Parameter Value Description Device Configuration finished Configuration finished and applied device and applied device Driver module Automatic change Drive corresponding to the selected device Register type 1 represents discrete input, 0 represents coil, 3 0、1、3、4 represents input register and 4 represents hold register Function code in Modbus protocol Function code...
Web Console Setting Parameter Value Description Register type 1 represents discrete input, 0 represents coil, 3 0、1、3、4 represents input register and 4 represents hold register Register start address in Modbus data frame Register address 0-65535 Table 4.5.1.6 mbs_tcp configuration parameter (3)...
Page 31
Web Console Setting Parameter Value Description Name User-defined User-defined name User-defined description Description User-defined Detailed configuration items are shown in Protocol interface protocol Table 4.5.2.2 parameter configuration of configuration interface Table 4.5.2.1 Advanced configuration parameter Serial port protocol parameter configuration: Parameter Value Description...
Web Console Setting master/slave mode. mbs is modbus_salve that is modbus slave mode there is three transmit mode as rtu, tcp and ascii Specifies the serial port that uses the protocol Port ttyS1、ttyS2、ttyS3、 ttyS4 Configuration of serial type Serial type RS422、RS485、RS232 Check bit Configuration of serial check bit...
Page 33
Web Console Setting Parameter Value Description Name User-defined User-defined name Description User-defined User-defined description Enable Check, uncheck Whether enable the communication link Original Serial port Detailed configuration items are shown in table configuration data 4.5.4.2 Target Network port Detailed configuration items are shown in table configuration data 4.5.4.3 Table 4.5.4.1 Transparent transmit device parameter...
Web Console Setting Band rate Serial port band rate configuration 4800、9600、14400、19200、 38400、57600、115200 Check bit Serial port check bit configuration NONE、ODD、EVEN Data bit Serial port data bit configuration 7、8 Stop bit Serial port stop bit configuration 1、2 Table 4.5.4.2 Orignal configuration data parameter Target configuration data: Parameter Value...
Web Console Setting Parameter Describe Download Click “download” button, export gateway current configuration information data. Upload Click “upload” button, import backup or modified profile to gateway. Table 4.5.5 Profile upload and download 4.6 Help Help button in the upper right corner of each setting page in the Web console, click “Help” button jump to official website.
Page 36
Web Console Setting Figure 4.7 Exit page...
Operation example 5 Operation example In this chapter, we mainly describe the operation methods and steps of the gateway devices in two working modes. This chapter includes the following: Transparent operation example Agent operation example ...
Operation example 5.1 Transparent operation example In Transparent mode, use one KGW3204 Modbus gateway and one computer, gateway interface type is RS-484. The network port of gateway as Modbus TCP Slave, USB port of computer use the USB to DB9 converter to connect serial port S1 of gateway, S1 as Modbus RTU Master. Note: This operation example is the communication mode of the RTU protocol at serial port, the RS485 connection cable, and the TCP protocol at network port.
Page 39
Operation example Configure PC parameter Serial port of PC as slave, still need to configure its relevant parameters. Connect the PC to the serial port S1 of gateway device using the USB to the DB9 female socket connection cable, then open “Modbus Slave”...
Operation example Figure 5.1.5 Receive and transmitter data successfully 5.2 Agent operation example In Agent mode, use one KGW3204 Modbus gateway and one computer, gateway interface type is RS-484. The network port of gateway as Modbus TCP Slave, USB port of computer use the USB to DB9 converter to connect serial port S1 of gateway, S1 as Modbus RTU/ASCII Master.
Page 41
Operation example Then, add Modbus TCP Slave, select protocol interface parameter mbs_tcp_cmm, click “save” to apply. Figure 5.2.2 Protocol interface parameter After completing adding protocol, add protocol to gateway device, click “gateway device”- “devcie” to add, add rtu protocol as shown in figure 5.2.3: Figure 5.2.3 Add rtu protocol Add tcp protocol is shown in figure 5.2.4:...
Page 42
Operation example Next step to add io point, for serial port server, input channel, read data from serial port, write to network port, so we need to configure a rtu read point and a tcp write point; output channel, master site send command, serial port server read data from network port, write to serial port, so we need to configure one tcp read point and one rtu write point.
Page 43
Operation example Figure 5.2.5 io point configuration parameter Variable transmission configuration, we need to configure two channels, read from rtu, write to data input channel of tcp and read from tcp, write to data output channel of rtu, the specific configuration is shown in Figure 5.2.6: Variable transmission configuration Figure 5.2.6...
Page 44
Operation example After completing configuration then click OK, enter the main interface, add the same Modbus rtu slave device as the added Modbus slave terminal device Figure 5.2.8 Add slave device Open “Modbus Poll"software on PC, configure to Modbus TCP/IP connection, IP is gateway IP, port is 503, as shown in Figure 5.2.9.
Page 45
Operation example Modbus TCP master device that matches the Modbus Slave terminal device. Figure 5.2.10 Add master device After completing configuration, enter the IP on the address 1 of Modbus Slave, enter the IP on the address1 and address 2 of Modbus Slave, it can be seen that corresponding data can be received at Modbus Poll relevant position, as shown in Figure 5.1.5.
Need help?
Do you have a question about the KGW310X and is the answer not in the manual?
Questions and answers