3onedata GW11 Series User Manual

Modbus gateway

Advertisement

Quick Links

(I)GW11XX Series
Modbus Gateway
User Manual
Document Version: 03
Publication Date: Oct 24, 2017
Industrial Ethernet communication solutions experts
Shenzhen 3onedata Technology Co., Ltd.

Advertisement

Table of Contents
loading

Summary of Contents for 3onedata GW11 Series

  • Page 1 (I)GW11XX Series Modbus Gateway User Manual Document Version: 03 Publication Date: Oct 24, 2017 Industrial Ethernet communication solutions experts Shenzhen 3onedata Technology Co., Ltd.
  • Page 2 Copyright © 2017 3onedata Technology Co., Ltd. All rights reserved. For this manual, all rights reserved by 3onedata Technology Co., Ltd. No company or individual is allowed to duplicate or translate this manual in any forms without written permission issued by 3onedata Technology Co., Ltd.
  • Page 3 Shenzhen 3onedata Technology Co., Ltd. Address: 3/B, Zone 1, Baiwangxin High Technology Industrial park, Nanshan District, Shenzhen, 518108 China Tel: +86-755-26702668 E-mail: sales@3onedata.com Fax: +86-755-26703485 Website: http://www.3onedata.com...
  • Page 4 About This Chapter The section ‘about this chapter’ provides links to various sections of this chapter, as well as links to the Principles Operations Section of this chapter. Symbols Format Description 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 5 The tips of configuration and operation. Revision History Version No. Date Revision note August 14, 2017 Layout Adjustment August 16, 2017 Manual Maintenance October 24,2017 Add dual network ports function 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 6: Table Of Contents

    ACCESS CONTROL ......................19 ......................19 BOUT HAPTER ....................19 EVICE ECURITY IP F ......................20 ILTERING MAC F ......................22 ILTERING ....................23 ANAGEMENT SYSTEM MANAGEMENT ....................25 ......................25 BOUT HAPTER .....................25 YSTEM NFORMATION 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 7 ODBUS COMMUNICATION PRINCIPLE 11.4 ....................61 RANSMISSION MODE 11.5 ..............64 ODBUS BASIC ARCHITECTURE DIAGRAM MODBUS SETTINGS ......................66 ......................66 BOUT HAPTER 12.1 ................66 ODBUS PARAMETER SETTINGS 12.2 ID M ....................68 LAVE APPING 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 8  Support cross-gateway and cross-router communication  Provide Windows configuration tools for easy to use, easy to bath install.  No fan, low consumption design, IP30 protection grade  3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 9: Preface

    System requirements Pentium 586 Memory 128M above Resolution 1024x768 or above Color 256 color or above Browser Internet Explorer 6.0 or above Windows XP Operating system  Windows 7  3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 10: Set The Ip Address Of The Computer

    Step 1 Open “Control panel > Network connection > Local area connection > Properties > Internet protocol version (TCP/IPv4) Properties”. Step 2 Change the "5" selected by the red frame in the figure to "1". 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 11: Login The Web Configuration Interface

    Step 2 Enter the address of the switch "http://192.168.1.254" in the address bar of the browser. Step 3 Click the Enter key. Step 4 Pop-up dialog box as shown below, enter the user name and password in the login window. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 12: Web Timeout Processing

    Keep the configuration of this login;  Logout this login.  Note: After the system times out, if you need to continue operate in the WEB interface, please re-login. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 13: Overview

    The current hardware version information, please note the Hardware version limit of software version to hardware version The current software’s version information, upgrade Firmware version software version will have more function 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 14 IP Address Display the IP Address of the Gateway device. Gateway Display the Gateway address of the Gateway device. DNS server Display the DNS server address of the gateway device. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 15: Network Setting

    Operation Path Main Menu > Network settings Interface Description Network settings interface screenshot The dual-port device displays the "Lan1" and "Lan2" columns. The single-port device displays only the "Lan1" column. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 16 The way to get  address, subnet mask, and default gateway address. the IP address Obtain an IP address automatically: Obtain an IP address,  subnet mask, and default gateway address automatically. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 17 IP address changes, the Modbus gateway reports its own IP address to the user by intermittently, so that the user knows the new IP address of the Modbus gateway in time. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 18: Serial Settings

    DTR control and Packing length and other advanced parameter information. Operation Path Open “Main Menu > Serial Settings > COM Settings” in sequence Interface Description COM settings interface screenshot 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 19 1 bits  2 bits  Parity Bits Select the parity bit for the corresponding serial number. The options are: None   Even  Mark  Space  3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 20: Com Information

    On the "COM Information" page, you can view parameter information such as serial number, alias, baud rate, data bit, stop bit, parity bit and flow control. Operation Path Open "Main Menu > Serial Settings> COM Information" in sequence 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 21 Flow Control Display whether the serial port flow control function is enabled. FIFO Display whether the serial port FIFO function is enabled. Work Mode Display serial port work mode. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 22: Modbus Settings

    On the “Modbus Parameters” page, you can configure Initial delay, Response timeout and Interval Timeout to Modbus device. Operation Path Open “Main Menu > Modbus Settings > Modbus Parameters” in sequence Interface Description Modbus Parameters interface screenshot 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 23: Slave Id

    Such as the operating mode of the Modbus gateway, the slave start ID, the slave end ID, and the slave offset ID. Operation Path Open “Main Menu > Modbus Settings > Slave ID” in sequence Interface Description Slave ID interface screenshot 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 24 Modify or delete the master and slave mapping information Operate that you configured. Click “Add” to configure the “Remote IP Address”, “TCP Port”, “Slave Start ID”, “Slave End ID”, and “Slave Offset ID” respectively. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 25: State Monitoring

    On the “COM State” page, you can view the data transceiver status and pin status of the corresponding serial port of the Modbus gateway. Operation Path Open “Main Menu >State Monitoring > COM State” in sequence Interface Description COM State interface screenshot 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 26 Displays the data reception and transmission status of the RX Total serial port corresponding to the Modbus gateway. CTS, DSR, RI, DCD, Displays the pin status of the serial port to the modbus DTR, RTS gateway corresponding. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 27: Access Control

    Telnet remote control, BlueEyes/VSP software search device, and firmware upgrade to the device through the Web interface or command line. Operation Path Open “Main Menu >Access Control > Device Security” in sequence Interface Description Device Security interface screenshot 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 28: Ip Filtering

    7.2 IP Filtering Function Description On the “IP Filtering” page, you can restrict access to host IP addresses and subnet masks to be accessed or connected by setting access rules. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 29 IP Address Set the IP address in dotted decimal format in the filter rule, such as "192.168.1.61". Subnet Mask Set the subnet mask in dotted decimal format in the filter 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 30: Mac Filtering

    Displays the MAC address filtering rule number. State Enable or disable filtering rules. Access Permission Set the access permission, the options are: Allowed: the MAC address allowed to access device.  3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 31: User Management

    Displays the user name of the login WEB configuration interface. Password The hidden text displays the user password for logging in to the WEB configuration interface. Permission Click the "permission" drop-down list box to select the login 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 32 Please remember the revised user name and password, if accidentally forgotten, please restore the factory settings in the WEB interface, the default login WEB configuration interface user name and password are "admin". 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 33: System Management

    On the “System Information” page, you can configure the device module, name, description, serial number, and contact information. Operation Path Open in sequence: "Main Menu > System Management > System Information ". Interface Description System information interface screenshot 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 34: System File

    On the “System File” page, you can restore the factory settings, upload and download the configuration file, and make a firmware upgrade. Operation Path Open in sequence: "Main Menu > System Management> System File". Interface Description System file interface screenshot 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 35 Modbus gateway system crash and so on. Restoring the factory settings will cause all states of the device to be in the factory  state. The default IP address is "192.168.1.254". 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 36: Logout & Reboot

    Click "Start" and the system will log out and jump to the initial login screen. Reboot System Click "reboot" in the pop-up dialog box, click "OK" to complete the system reboot. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 37: Working Mode Configuration

    When the user needs to implement the Modbus RTU master device to communicate with the Modbus TCP slave device, use the Modbus gateway device and set the device's operating mode to RTU Master. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 38 Connect the COM serial port of the computer and the COM1 serial port of the Modbus gateway using a cable or a converter. Step 2 Configure the IP address of the Modbus gateway. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 39 Step 4 Configure the working mode of the Modbus gateway. 1. Log in to the Web configuration interface and select " Main Menu > Modbus Settings > SlaveID ". 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 40 Run "mbpoll" and “mbslave” software to simulate master and slave configuration. 1. Run the “mbslave.exe” software, click "Setup> Slave Definition". 2. Enter "1" in the "Slave ID" text box. 3. Other parameters remain the default, click “OK”. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 41 Server" area. 8. Other parameters remain the default, click "OK". 9. Run the “mbpoll.exe” software, click "Setup> Read / Write Definition". 10. Enter "1" in the "Slave ID" text box. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 42 15. Select the "RTU" mode in the "Mode" option. 16. Other parameters remain the default, click “OK”. Step 6 Check the normal communication between the RTU master and the TCP slave. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 43: Rtu Slave Mode

    Modbus RTU slave device, use the Modbus gateway device and set the device's operating mode to RTU Slave. In RTU Slave Mode, the TCP master device accesses the RTU slave device through the gateway. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 44 Connect the COM serial port of the computer and the COM2 serial port of the Modbus gateway using a cable or a converter. Step 2 Configure the IP address of the Modbus gateway. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 45 1. Log in to the Web configuration interface and select " Main Menu > Modbus Settings > SlaveID ". 2. In the “Channel NO.” is 2, click the "channel Type" drop-down list box and select "RTU Slave". 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 46 5. Click the "Connection" drop-down list box and select "serial port". 6. In the "Serial Settings" option box, configure serial port information such as serial number, baud rate, data bit, parity bit and stop bit. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 47 11. Other parameters remain the default, click “OK”. 12. Click " Connection > Connection Setup ". 13. Click the "Connection" drop-down list box and select "Modbus TCP / IP". 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 48 15. Other parameters remain the default, click "OK". Step 6 Check the normal communication between the TCP master and the RTU slave. Step 7 End. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 49: Ascii Master Mode

    ASCII master device sends request to gateway; ○ Gateway forwarding request to TCP slave device; ○ TCP slave device returns a response; ○ The gateway sends back the response. ○ 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 50 3. Other parameters remain the default, click "submit". Step 3 Configure the serial port parameter information. 1. Log in to the Web configuration interface and select "Main Menu > Serial Settings> COM Settings ". 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 51 5. Enter "3" in the "Slave ID Start" and "Slave ID End" text boxes. 6. Enter "0" in the "Slave ID Offset" text box. 7. Click "OK". 8. Save the configuration, click "Submit". 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 52 5. Click the "Connection" drop-down list box and select "Modbus TCP / IP". 6. Enter the TCP slave IP address "192.168.1.80" in the "IP Address" text box of the "TCP / IP Server" area. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 53 14. In the "Serial Settings" option box, configure serial port information such as serial number, baud rate, data bit, parity bit and stop bit. 15. Select the "ASCII" mode in the "Mode" option. 16. Other parameters remain the default, click “OK”. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 54: Ascii Slave Mode

    When the user needs to implement the Modbus TCP master device to communicate with the Modbus ASCII slave device, use the Modbus gateway device and set the device's operating mode to ASCII Slave. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 55 The parameters of the ASCII slave are as follows: Communication port: COM 4  Baud rate: 115200  Parity bit: None  Data bit: 7  Stop bit: 2  3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 56 3. Other parameters remain the default, click "submit". Step 3 Configure the serial port parameter information. 1. Log in to the Web configuration interface and select "Main Menu > Serial Settings> COM Settings". 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 57 5. Enter "0" in the "Slave ID Offset" text box. 6. Click "OK". 7. Save the configuration, click "Submit". Step 5 Run "mbpoll" and “mbslave” software to simulate master and slave configuration. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 58 6. In the "Serial Settings" option box, configure serial port information such as serial number, baud rate, data bit, parity bit and stop bit. 7. Select the "ASCII" mode in the "Mode" option. 8. Other parameters remain the default, click “OK”. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 59 14. In the “Remote Server” check box, configure the Modbus gateway IP address, port number, and connection timeout. 15. Other parameters remain the default, click "OK". Step 6 Check the normal communication between the TCP master and the ASCII slave. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 60 (I)GW11XX Modbus User Manual Step 7 End. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 61: Customer Case

    Use TCP Master instead of serial port Master, in this case, the customer's old control system contains multiple subsystems that are based on the serial port. Each subsystem, a serial Master station directly controls the serial Slave device, such as below: 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 62 In the previous case, some devices use a fixed ID that can not be changed. The access network requires a multi-port Modbus gateway and uses the Virtual Slave ID. The new system is easy to use. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 63 In this case, the serial port Master requires the direct control device, and the waiting time is short, it is unable to be replaced. Simultaneous integration Modbus RTU, Modbus ACSII, Modbus TCP 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 64 Modbus gateway equipment has a powerful function, allowing the integration of a variety of different Modbus systems, supporting a variety of communication methods and protocols. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 65: Part Two: Principle

    The master node issues a MODBUS request to the slave nodes in two modes: Unicast modeBroadcast mode  The serial link diagram of master and slave is as follows: 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 66: Master And Slave Working State Diagram

    Multipoint structure diagrams in unicast mode are as follow: Multipoint structure diagrams in broadcast mode are as follow: 11.2 Master and slave working state diagram Master working state diagram is as follow: 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 67: Modbus Communication Principle

    If there is no error associated with requesting the Modbus function in a correctly received Modbus ADU, the response data sent by the server to 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 68 After the host sends the data request, the slave receives the request and verifies that the check code fails, indicating that the sending has an error. The slave returns the exception function code and the exception code. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 69: Transmission Mode

    Advantages: The time interval for sending characters can be up to 1 second  without error. Disadvantages: Since one byte requires two characters, this mode is less  efficient than RTU. ASCII message frame is shown below. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 70 General Modbus frame: The Modbus application data unit is built by the client that initiates a Modbus transaction. The function indicates to the server what kind of action to perform. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 71 MODBUS request replicated from the response transaction received request Protocol 2 bytes 0 = MODBUS protocol start up server identifier replicated from the 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 72: Modbus Basic Architecture Diagram

    TCP-IP network and a Modbus serial link. The Modbus client sets this field in the request, and the server must return the domain with the same value in the response. 11.5 Modbus basic architecture diagram Modbus Basic Architecture Figure is shown below: 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 73 (I)GW11XX Modbus User Manual Modbus Basic Architecture Figure is shown below: 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 74: Modbus Settings

    ②, ③ between the steps. After the gateway forwards the request to the slave device, if the response of the slave device is not received within the 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 75 0ms. This function is to prevent the slave device from not being able to quickly process the RTU request and set the time interval for the RTU slave device to have sufficient time to process the request. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 76: Slave Id Mapping

    The slave device uses the real ID to send back the response;  Gateway will be real ID converted into a virtual ID and then sent back to the  response. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 77 Slave ID mapping formula is as follows: “Virtual ID + ID Offset = Real ID” The ranges of the Virtual ID and Real ID in the formula are 1 to 247. 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.
  • Page 78 User Manual Shenzhen 3onedata Technology Co., Ltd. Address: 3/B, Zone 1, Baiwangxin High Technology Industrial park, Nanshan District, Shenzhen, 518108 China Tel: +86-755-26702668 E-mail: sales@3onedata.com Fax: +86-755-26703485 Website: http://www.3onedata.com 3onedata proprietary and confidential Copyright © Shenzhen 3onedata Technology Co., Ltd.

This manual is also suitable for:

Igw11 series

Table of Contents