ICP DAS USA tGW-700 Series User Manual

ICP DAS USA tGW-700 Series User Manual

Hide thumbs Also See for tGW-700 Series:
Table of Contents

Advertisement

tGW-700 Series
User Manual
Tiny Modbus/TCP to RTU/ASCII Gateway
W
ARRANTY
All products manufactured by ICP DAS are warranted
against defective materials for a period of one year
from the date of delivery to the original purchaser.
W
ARNING
ICP DAS assumes no liability for damages consequent
to the use of this product. ICP DAS reserves the right to
change this manual at any time without notice. The
information furnished by ICP DAS is believed to be
accurate and reliable. However, no responsibility is
assumed by ICP DAS for its use, nor for any
infringements of patents or other rights of third parties
resulting from its use.
C
OPYRIGHT
Copyright © 2017 by ICP DAS. All rights are reserved.
T
RADEMARKS
Names are used for identification purposes only and
may be registered trademarks of their respective
companies.
C
U
ONTACT
S
If you have any questions, please feel free to contact
us via email at:
service@icpdas.com, service.icpdas@gmail.com
Ver. 2.2, Nov. 2017
S
UPPORT
This manual relates to the following modules:
tGW-712, tGW-722, tGW-732
tGW-715, tGW-725, tGW735
tGW-718, tGW-724, tGW-734
tGW-712i, tGW-722i, tGW-732i
tGW-715i, tGW-725i, tGW735i
tGW-718i, tGW-724i, tGW-734i
tGW-718-D

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the tGW-700 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for ICP DAS USA tGW-700 Series

  • Page 1 Series User Manual Tiny Modbus/TCP to RTU/ASCII Gateway Ver. 2.2, Nov. 2017 ARRANTY UPPORT All products manufactured by ICP DAS are warranted against defective materials for a period of one year This manual relates to the following modules: from the date of delivery to the original purchaser.
  • Page 2: Table Of Contents

    Serial COM Ports ......................- 14 - DIN-Rail Mounting ......................- 14 - Dimensions ........................- 15 - tGW-700 Series Module ....................- 15 - CA-002 Cable ........................- 16 - Pin Assignments ......................- 17 - tGW-712/tGW-712i ......................- 17 - tGW-722/tGW-722i ......................
  • Page 3 Tiny Modbus/TCP to RTU/ASCII Gateway Connecting the Power and Host PC ................- 24 - Configuring Network Settings ..................- 25 - Connecting the Modbus Devices ................- 27 - Configuring the Serial Port ..................- 28 - Self-Test ........................- 30 - Web Configuration ........................
  • Page 4 Tiny Modbus/TCP to RTU/ASCII Gateway Appendix B: Glossary ........................- 80 - ARP (Address Resolution Protocol) ................. - 80 - Clients and Servers ......................- 80 - Ethernet .......................... - 81 - Firmware ......................... - 81 - Gateway .......................... - 81 - ICMP (Internet Control Message Protocol) ..............
  • Page 5: Packing List

    Tiny Modbus/TCP to RTU/ASCII Gateway Packing List The shipping package includes the following items: Quick Start CA-002 Cable tGW-700/700i Series Note If any of these items are missing or damaged, please contact the local distributor for more information. Save the shipping materials and cartons in case you need to ship the module in the future.
  • Page 6: Introduction

    Tiny Modbus/TCP to RTU/ASCII Gateway 1. Introduction Modbus has become the de facto standard protocol for industrial communication, and is now the most commonly available means of connecting industrial electronic devices. Modbus allows for communication between many devices connected to the same RS-485 network, for example, a system that measures temperature and humidity and communicates the results to a computer.
  • Page 7 Tiny Modbus/TCP to RTU/ASCII Gateway In harsh industrial environments, the tGW-700 series (for i version) also adds 3000 V and +/- 4 kV ESD protection component that diverts the potentially damaging charge away from sensitive circuit to protects the module and equipment from the sudden and momentary electric current.
  • Page 8: Features

    Tiny Modbus/TCP to RTU/ASCII Gateway 1.1 Features Supports Modbus TCP/UDP master and slave  Supports Modbus RTU/ASCII master and slave  Max. connections (masters) per serial port: 32 (tGW-71x), 16 (tGW-72x) or 10 (tGW-73x)  Read-cache ensures faster Modbus TCP/UDP response ...
  • Page 9: Ethernet Solutions

    Tiny Modbus/TCP to RTU/ASCII Gateway 1.3 Ethernet Solutions Nowadays, the Ethernet protocol has become the foremost standard for local area networks. Connectivity via the Internet snow common in many of the latest applications from home appliances, to vending machines, to testing equipment, to UPS, etc. An Ethernet network can link office automation and industrial control networks, access remote systems and share data and information between machines from multiple vendors, and also provides a cost-effective solution for industrial control networks.
  • Page 10: Web Server Technology

    Tiny Modbus/TCP to RTU/ASCII Gateway 1.4 Web Server Technology Web server technology enables the tGW-700 to be configured via a standard web browser interface, e.g., Google Chrome, Internet Explorer, or Firefox, etc. This means that it is easy to check the configuration of the tGW-700 via an Ethernet network without needing to install any other software tools, thereby reducing the learning curve required for maintaining the device.
  • Page 11: Hardware Information

    Tiny Modbus/TCP to RTU/ASCII Gateway 2. Hardware Information This chapter provides a detailed description of the front panel, the hardware specifications, the pin assignments, the wiring notes and the dimensions for the tGW-700 series modules. 2.1 Specifications tGW-718 tGW-712 tGW-722...
  • Page 12: Appearance

    Tiny Modbus/TCP to RTU/ASCII Gateway 2.2 Appearance 5. Serial COM Ports 4. LED indicator 6. DIN-Rail Mounting 3. Operating Mode 1. PoE and Ethernet Switch RJ-45 Jack 2. +12 to +48 V Jack PoE and Ethernet RJ-45 Jack The tGW-700 module is equipped with an RJ-45 jack that is used as the 10/100 Base-TX Ethernet port and features networking capabilities.
  • Page 13: Operating Mode Switch

    Run Mode: Firmware operation Init Mode: Configuration mode For tGW-700 series modules, the operating mode switch is set to the Run position by default. In order to update the firmware for the tGW-700 series module, the switch must be moved from the Run position to the Init position.
  • Page 14: Serial Com Ports

    Section 2.4 Pin Assignments. DIN-Rail Mounting The tGW-700 series modules include simple rail clips on the bottom of the chassis that allow them to be reliably mounted on a DIN-Rail or a wall. For more detailed information regarding DIN-Rail Mounting, refer to the illustration in figure below.
  • Page 15: Dimensions

    Tiny Modbus/TCP to RTU/ASCII Gateway 2.3 Dimensions The following diagrams provide the dimensions of the tGW-700 series module and CA-002 cable that can be used as a reference when defining the specifications and the DC power supply plug for any custom enclosures. All dimensions are in millimeters.
  • Page 16 Tiny Modbus/TCP to RTU/ASCII Gateway CA-002 Cable Note: Cable color: BLACK Pin Assignment DESCRIPTION UNIT UL2464 18AWG 2C(RED/BLACK) OPEN 0D5.0 COLOR BLACK BLACK OPEN DC PLUG 5.5*2.1 PVC:45/P BLACK Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved. - 16 -...
  • Page 17: Pin Assignments

    Tiny Modbus/TCP to RTU/ASCII Gateway 2.4 Pin Assignments tGW-712/tGW-712i tGW-712 tGW-712i Terminal No. Pin Assignment COM1 CTS1 CTS1 RTS1 RTS1 ISO.GND TxD1 TxD1 RxD1 RxD1 Note: The CTS and RTS pins are reserved and have no function. tGW-722/tGW-722i tGW-722 tGW-722i Terminal No.
  • Page 18: Tgw-732/Tgw-732I

    Tiny Modbus/TCP to RTU/ASCII Gateway tGW-732/tGW-732i tGW-732 tGW-732i Terminal No. Pin Assignment F.G. F.G. ISO.GND COM3 RxD3 RxD3 TxD3 TxD3 ISO.GND COM2 RxD2 RxD2 TxD2 TxD2 ISO.GND COM1 RxD1 RxD1 TxD1 TxD1 tGW-715/tGW-715i tGW-715 tGW-715i Terminal No. Pin Assignment F.G. F.G.
  • Page 19: Tgw-725/Tgw-725I

    Tiny Modbus/TCP to RTU/ASCII Gateway tGW-725/tGW-725i tGW-725 tGW-725i Terminal No. Pin Assignment F.G. F.G. ISO.GND COM2 ISO.GND COM1 tGW-735/tGW-735i tGW-735 tGW-735i Terminal No. Pin Assignment F.G. F.G. ISO.GND COM3 ISO.GND COM2 ISO.GND COM1 Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved. - 19 -...
  • Page 20: Tgw-718/Tgw-718I

    Tiny Modbus/TCP to RTU/ASCII Gateway tGW-718/tGW-718i tGW-718 tGW-718i Terminal No. Pin Assignment F.G. F.G. ISO.GND RS-232 RxD1 RxD1 TxD1 TxD1 ISO.GND RxD1- RxD1- RS-485/RS-422 RxD1+ RxD1+ TxD1-/D1- TxD1-/D1- TxD1/D1+ TxD1/D1+ tGW-718-D RS-232 RS-422 RS-485 Terminal No. Pin Assignment COM1 RxD- RxD+ TxD+ Data+...
  • Page 21: Tgw-724/Tgw-724I

    Tiny Modbus/TCP to RTU/ASCII Gateway tGW-724/tGW-724i tGW-724 tGW-724i Terminal No. Pin Assignment F.G. F.G. ISO.GND CTS2 CTS2 RTS2 RTS2 COM2 ISO.GND RxD2 RxD2 TxD2 TxD2 ISO.GND COM1 tGW-734/tGW-734i tGW-734 tGW-734i Terminal No. Pin Assignment F.G. F.G. ISO.GND COM3 RxD3 RxD3 TxD3 TxD3 ISO.GND...
  • Page 22: Wiring Notes For Rs-232/485/422 Interfaces

    Tiny Modbus/TCP to RTU/ASCII Gateway 2.5 Wiring Notes for RS-232/485/422 Interfaces RS-232 Wiring 3-wire RS-232 Connection 5-wire RS-232 Connection Note: FGND is the frame ground that is soldered to the metal shield on the DB-9 cable. Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved. - 22 -...
  • Page 23: Rs-422 Wiring

    Tiny Modbus/TCP to RTU/ASCII Gateway RS-422 Wiring RS-485 Wiring Notes: 1. Usually, you have to connect all signal grounds of RS-422/485 devices together to reduce common-mode voltage between devices. 2. Twisted-pair cable must be used for the DATA+/- wires. 3. Both two ends of the cable may require a termination resistor connected across the two wires (DATA+ and DATA-).
  • Page 24: Getting Started

    3. Getting Started This chapter provides detailed information about the “Self-Test” process, which is used to confirm that the tGW-700 series module is operating correctly. Before beginning the “Self-Test” process, the wiring test, Ethernet configuration and search/Modbus utility driver installation procedures must first be fully completed.
  • Page 25: Configuring Network Settings

    Tiny Modbus/TCP to RTU/ASCII Gateway +12 to +48 V Jack Power Supply (Non-PoE) 4. Verify that the System (S1) LED indicator is flashing. Red, OK 3.2 Configuring Network Settings 1. Downloaded the eSearch Utility and installed according to the installation instructions.
  • Page 26 3. Click the “Search Servers” button to search your tGW-700. 4. Once the search process is complete, double-click the name of the tGW-700 to open the “Configure Server” dialog box.    Factory Default Settings of tGW-700 Series Module: IP Address 192.168.255.1 Subnet Mask 255.255.0.0 Gateway 192.168.0.1...
  • Page 27: Connecting The Modbus Devices

    Tiny Modbus/TCP to RTU/ASCII Gateway 6. Wait 2 seconds and click “Search Servers” button again to ensure the tGW-718-D is working well with new configuration.  3.3 Connecting the Modbus Devices Note: The wiring and supply power method depends on your Modbus device. Here, the M-7022 module is used as an example.
  • Page 28: Configuring The Serial Port

    Tiny Modbus/TCP to RTU/ASCII Gateway 3.4 Configuring the Serial Port 1. Open a web browser, such as Google Chrome, Internet Explorer, or Firefox, and enter the URL for the tGW-700 module in the address bar of the browser, or click the “Web” button in the eSearch Utility.
  • Page 29 Tiny Modbus/TCP to RTU/ASCII Gateway 4. Set interface mode for the “Interface” drop down options. Note: The interface settings depend on wiring method of your Modbus device. (For the tGW-718-D module only, other tGW-700 module please skit this step)  5.
  • Page 30: Self-Test

    Tiny Modbus/TCP to RTU/ASCII Gateway 3.5 Self-Test 1. In the eSearch Utility, select the “Modbus TCP Master” item from the “Tools” menu to open the Modbus TCP Master Utility.  2. In the Modbus TCP Master Utility, enter the IP address of tGW-700 in the “Modbus TCP” section, and then click the “Connect”...
  • Page 31: Web Configuration

    4.1 Logging in to the tGW-700 Web Server The embedded tGW-700 series web server can be accessed from any computer that has an Internet connection. Step 1: Open a new browser window...
  • Page 32 Tiny Modbus/TCP to RTU/ASCII Gateway Step 3: Enter the Password After the main login page is displayed, enter a password (the factory default password is “admin”), and then click the “Submit” button to continue. Use the default password: admin Step 4: Log in to the tGW-700 Web Server After logging into the tGW-700 web server, the main page will be displayed.
  • Page 33: Home Page

    Tiny Modbus/TCP to RTU/ASCII Gateway 4.2 Home Page The Home link connects to the main page, which contains two parts. The first part of this page provides basic information about the tGW-700 hardware and software. The software and hardware information section includes information related to the Model Name, the current Firmware version, the IP Address, the current position of the Initial Switch, the Alias, the MAC Address, and the TCP Port, and the System Timeout values.
  • Page 34: Network Page

    Tiny Modbus/TCP to RTU/ASCII Gateway 4.3 Network Page After clicking the Network tab, the Network page will be displayed, allowing you to verify the current settings, configure the IP Address, and the general parameters, and restore the default settings for the tGW-700 module, each of which will be described in more detail below. 4.3.1 IP Address Selection The Address Type, Static IP Address, Subnet Mask and Default Gateway values are the most important network settings and should always correspond to the LAN configuration.
  • Page 35 Tiny Modbus/TCP to RTU/ASCII Gateway The following is an overview of the parameters contained in the IP Address Selection section: Item Description Static IP: If no DHCP server is installed on the network, the network settings can be configured manually. Refer to Section “Manual Configuration”...
  • Page 36 Tiny Modbus/TCP to RTU/ASCII Gateway Manual Configuration When using manual configuration, the network settings should be assigned in the following manner: Step 1: Select the “Static IP” option from the “Address Type” drop-down menu. Step 2: Enter the relevant details in the respective network settings fields. Step 3: Click the “Update Settings”...
  • Page 37: General Settings

    Tiny Modbus/TCP to RTU/ASCII Gateway 4.3.2 General Settings The following is an overview of the parameters contained in the General Settings section: Item Description Default This parameter is used to set the Ethernet speed. The default value is Auto Ethernet Speed Auto (Auto = 10/100 Mbps Auto-negotiation).
  • Page 38: Modbus Settings

    Tiny Modbus/TCP to RTU/ASCII Gateway 4.3.3 Modbus Settings The following is an overview of the parameters contained in the Modbus Settings section: Item Description Default Gateway Net ID This is reserved for gateway. (Not used to set the slave device) This parameter is used to enable or disable whether the slave response is checked for compatibility with the Modbus RTU format.
  • Page 39 Tiny Modbus/TCP to RTU/ASCII Gateway This parameter is used to enable or disable whether a slave/data timeout exception error is reported by the Gateway. If There is no response from a slave device, a 0x0B exception error will be reported. If serial data is being Timeout Exception received, a 0x4B exception will be reported.
  • Page 40: Restore Factory Defaults

    Tiny Modbus/TCP to RTU/ASCII Gateway 4.3.4 Restore Factory Defaults Use the following procedure to reset all parameters to their original factory default settings: Step 1: Click the “Restore Defaults” button to reset the configuration. Step 2: Click the “OK” button in the message dialog box. Step 3: Check whether the module has been reset to the original factory default settings for use with the eSearch Utility.
  • Page 41 Tiny Modbus/TCP to RTU/ASCII Gateway The Forced Reboot function: can be used to force the tGW-700 to reboot or to remotely reboot the device. After the tGW-700 module has rebooted, the original login screen will be displayed requesting that you enter your Login Password before continuing. ...
  • Page 42: Update By Ethernet

    Tiny Modbus/TCP to RTU/ASCII Gateway 4.3.5 Update by Ethernet Firmware update requires initialization and local network operations. Traditional firmware update requires adjusting the Init/Run Switch and reboots the module manually for the initialization of firmware update, while new firmware allows user to initialize the module via web interface without adjusting the hardware switch.
  • Page 43: Serial Port Page

    Tiny Modbus/TCP to RTU/ASCII Gateway 4.4 Serial Port Page After clicking the Port1 tab, the serial port settings page will be displayed, allowing you to configure the settings for the tGW-700, including the Baud Rate, Data Format, Slave Timeout, Char Timeout, Silent Time, Read Cache, TCP Timeout, Modbus Protocol and Pair-connection parameters, etc., each of which will be described in more detail below.
  • Page 44 Tiny Modbus/TCP to RTU/ASCII Gateway The following is an overview of the parameters contained in the Settings– Port1 Settings section: Item Description Default Interface Settings This parameter is used to set the interface mode (Loopback, RS-232, RS-422 or RS-485) of serial port for the tGW-718-D only.
  • Page 45 Tiny Modbus/TCP to RTU/ASCII Gateway Item Description Default Modbus RTU requires 3.5 char time between messages. This parameter is used to set the waiting time (based on bytes) that should elapse after last byte of data of the response is received from the slave device is activated.
  • Page 46: Settings (Pair-Connection Settings)

    Tiny Modbus/TCP to RTU/ASCII Gateway 4.4.2 Settings (Pair-Connection Settings) The following is an overview of the parameters contained in the Settings – Pair-Connection Settings (Master/Slave Mode) section: Item Description Pair-Connection Settings (Master/Slave Mode) Application Mode Server (default) Client Select the Modbus protocol (Modbus TCP or UDP) for Network Protocol the remote device Remote Server IP...
  • Page 47: Filter Page

    Tiny Modbus/TCP to RTU/ASCII Gateway 4.5 Filter Page The Accessible IP (filter is disabled when all zero) Settings page is used to query or edit the IP Filter List. The IP Filter List restricts the access of packets based on the IP header. If one or more IP address are saved to the IP Filter table, only clients whose IP is specified in the IP Filter List can access the tGW-700.
  • Page 48: Monitor Page

    Tiny Modbus/TCP to RTU/ASCII Gateway 4.6 Monitor Page After clicking the Monitor tab, the Current Connection Status page will be displayed showing detailed information regarding the current status of the serial port connection settings for the tGW-700. Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved. - 48 -...
  • Page 49: Password Page

    Tiny Modbus/TCP to RTU/ASCII Gateway 4.7 Password Page After clicking the Password tab, the Change Password page will be displayed. To change a password, first enter the old password in the “Current password” field (use the default password “admin”) and then enter a new password in the “New password” field. Re-enter the new password in the “Confirm new password”...
  • Page 50: Logout Page

    Tiny Modbus/TCP to RTU/ASCII Gateway 4.8 Logout Page After clicking the Logout tab, you will be immediately logged out from the system and be returned to the login page. Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved. - 50 -...
  • Page 51: Typical Applications

    Tiny Modbus/TCP to RTU/ASCII Gateway 5. Typical Applications This chapter provides some examples of typical scenarios for the tGW-700 series module, including applications focused on the Modbus Gateway, Modbus Net ID, Pair-connection and TCP Client Mode, etc... Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved.
  • Page 52: Modbus Gateway

    Tiny Modbus/TCP to RTU/ASCII Gateway 5.1 Modbus Gateway The tGW-700 series module is a Modbus TCP/UDP to RTU/ASCII gateway that enables a Modbus TCP/UDP host to communicate with serial Modbus RTU/ASCII devices through an Ethernet network, and eliminates the inherent cable length limitations of legacy serial communication devices.
  • Page 53: Modbus Net Id

    Tiny Modbus/TCP to RTU/ASCII Gateway 5.2 Modbus Net ID The tGW-700 series module is a gateway that can be used to convert between the Modbus TCP/UDP protocol and the Modbus RTU/ASCII protocol. Consequently, SCADA/HMI applications is able to access each Modbus RTU/ASCII slave device via the tGW-700 gateway by specifying correct NetID of the intended slave device in each Modbus TCP request.
  • Page 54: Pair-Connection Applications

    Tiny Modbus/TCP to RTU/ASCII Gateway 5.3 Pair-connection Applications The tGW-700 Modbus gateway can be used to create a pair-connection applications (as well as serial-bridge or serial-tunnel), and then route Modbus messages between two serial devices via TCP/IP, which is useful when connecting Modbus RTU/ASCII devices that do not themselves have Ethernet capability.
  • Page 55 Step 1: Connecting to a network, PC and Power 1. Confirm that the tGW-700 modules are functioning correctly. For detailed information regarding how to install, configure and operate your tGW-700 series module, refer to Chapter 3 “Getting Started”.
  • Page 56 Tiny Modbus/TCP to RTU/ASCII Gateway The image below shows an example of the setup for a pair-connection test: Figure 5-1 Step 2: Configuring the Ethernet Settings Contact your Network Administrator to obtain the correct and functioning network configuration for the tGW-700 modules (including the IP Address, Mask and Gateway details). Also refer to Chapter 3 “Getting Started”...
  • Page 57 Tiny Modbus/TCP to RTU/ASCII Gateway Step 3: Configuring the Pair-connection (Client Mode) on the Web Server for tGW-700#1 1. Open the eSearch Utility to search for the tGW-700 modules connected to the network. Click the name of the first tGW-715 module (tGW-700#1) to select it, and then click the “Web” button to launch a browser window to connect to the web server on the tGW-700 #1 module.
  • Page 58 Tiny Modbus/TCP to RTU/ASCII Gateway 4. Select the appropriate Baud Rate, Data Format and Modbus Protocol settings from the relevant drop down options. The following is an example: Baud Rate (bps) “115200”, Data Bits (bits) “8”, Parity “None”, Stop Bits (bits) “1” and Modbus Protocol “Modbus RTU”. Figure 5-5 5.
  • Page 59 Tiny Modbus/TCP to RTU/ASCII Gateway Step 4: Configuring the Pair-connection (Server Mode) on the Web Server for tGW-700#2 1. In the eSearch Utility, click the name of the second tGW-715 module (tGW-700 #2) to select it, and then click the “Web” button to launch a browser window to connect to the web server on the tGW-700 #2module.
  • Page 60 Tiny Modbus/TCP to RTU/ASCII Gateway Step 5: Testing the Pair-connection Functions 1. In the eSearch Utility, select the “Modbus RTU Master” item from the “Tools” menu to open the Modbus TCP Master Utility. Figure 5-8 2. Select the appropriate COM port, Baud Rate and Data Format (e.g., COM1, 115200, N, 8, 1) settings for the tGW-700, and then click the “Open”...
  • Page 61 Tiny Modbus/TCP to RTU/ASCII Gateway 3. Refer to the "Protocol Description” field in the top right-hand section of the Modbus Utility window. You can send a request command and confirm the response is correct. Step 1: Enter the Modbus command in the “Command” field Step 2: Click the “Send Command”...
  • Page 62: Tcp Client Mode Applications

    Tiny Modbus/TCP to RTU/ASCII Gateway 5.4 TCP Client Mode Applications In TCP Client Mode, the tGW-700 can actively establish a TCP connection to a specific Modbus TCP slave device. An example of how the complete system should operate is shown below: Figure 5-11 The following are examples of pair-connection tests: ...
  • Page 63 Step 1: Connecting to a network, a PC and a Power Supply 1. Confirm that the tGW-700 device is functioning correctly. For detailed information regarding how to install, configure and operate your tGW-700 series module, refer to Chapter 3 “Getting Started”.
  • Page 64 Tiny Modbus/TCP to RTU/ASCII Gateway Step 2: Configuring the Ethernet Settings Contact your Network Administrator to obtain a correct and functioning network configuration (including the IP Address, Mask and Gateway details) for the tGW-700 module. Also refer to Chapter 3 “Getting Started”...
  • Page 65 Tiny Modbus/TCP to RTU/ASCII Gateway 3. Click the “Port1” tab to display the Port1 Settings page. Figure 5-15 4. Select the appropriate Baud Rate, Data Format and Modbus Protocol settings from the relevant drop down options. The following is an example: Baud Rate (bps) “115200”, Data Bits (bits) “8”, Parity “None”, Stop Bits (bits) “1”...
  • Page 66 Tiny Modbus/TCP to RTU/ASCII Gateway 5. In the Pair-connection Settings area of the Port1 Settings page, check that the configuration details are the same as those shown below. Server Modbus Remote Remote TCP Slave ID RTU Slave ID Field Mode Protocol Server IP TCP Port...
  • Page 67: Modbus Information

    Tiny Modbus/TCP to RTU/ASCII Gateway 6. Modbus Information What is Modbus TCP/IP? Modbus is a communication protocol developed by Modicon in 1979. You can also visit http://www.modbus.org to find more valuable information. The Different versions of Modbus used today include Modbus RTU (based on serial communication interfaces such as RS485 and RS232), Modbus ASCII and Modbus TCP, which is the Modbus RTU protocol embedded into TCP packets.
  • Page 68 Tiny Modbus/TCP to RTU/ASCII Gateway Leading 6 bytes of Modbus/TCP protocol: Byte 00 Byte 01 Byte 02 Byte 03 Byte 04 Byte 05 Length field Length field Transaction identifier Protocol identifier (upper byte ) (lower byte) Transaction identifier: Assigned by Modbus/TCP master (client) Protocol identifier: 0 Length field (upper byte): 0 (since all messages are smaller than 256) Length field (lower byte): Number of following RTU data bytes...
  • Page 69 Tiny Modbus/TCP to RTU/ASCII Gateway Code Function Reference (Address) 01 (0x01) Read the Status of the Coils (Readback DOs) 0xxxx 02 (0x02) Read the Status of the Input(Reads DIs) 1xxxx 03 (0x03) Read the Holding Registers (Readback AOs) 4xxxx 04 (0x04) Read the Input Registers (Reads AIs) 3xxxx 05 (0x05)
  • Page 70: 0X01) Read The Status Of The Coils (Readback Dos)

    Tiny Modbus/TCP to RTU/ASCII Gateway 01(0x01) Read the Status of the Coils (Readback DOs) This function code is used to read either the current status of the coils or the current digital output readback value. [Request] Byte Description Size Value Net ID (Station Number) 1 Byte 1 to 247...
  • Page 71: 0X02) Read The Status Of The Input (Read Dis)

    Tiny Modbus/TCP to RTU/ASCII Gateway 02(0x02) Read the Status of the Input (Read DIs) This function code is used to read the current digital input value. [Request] Byte Description Size Value Net ID (Station Number) 1 Byte 1 to 247 Function Code 1 Byte 0x02...
  • Page 72: 0X03) Read The Holding Registers (Readback Aos)

    Tiny Modbus/TCP to RTU/ASCII Gateway 03(0x03) Read the Holding Registers (Readback AOs) This function code is used to readback either the current values in the holding registers or the analog output value. [Request] Byte Description Size Value Net ID (Station Number) 1 Byte 1 to 247 Function Code...
  • Page 73: 0X04) Read The Input Registers (Read Ais)

    Tiny Modbus/TCP to RTU/ASCII Gateway 04(0x04) Read the Input Registers (Read AIs) This function code is used to read either the input registers or the current analog input value. [Request] Byte Description Size Value Net ID (Station Number) 1 Byte 1 to 247 Function Code 1 Byte...
  • Page 74: 0X05) Force A Single Coil (Write Do)

    Tiny Modbus/TCP to RTU/ASCII Gateway 05(0x05) Force a Single Coil (Write DO) This function code is used to set the status of a single coil or a single digital output value. [Request] Byte Description Size Value Net ID (Station Number) 1 Byte 1 to 247 Function Code...
  • Page 75: 0X06) Preset A Single Register (Write Ao)

    Tiny Modbus/TCP to RTU/ASCII Gateway 06(0x06) Preset a Single Register (Write AO) This function code is used to set a specific holding register to store the configuration values. [Request] Byte Description Size Value Net ID (Station Number) 1 Byte 1 to 247 Function Code 1 Byte 0x06...
  • Page 76: 0X0F) Force Multiple Coils (Write Dos)

    Tiny Modbus/TCP to RTU/ASCII Gateway 15(0x0F) Force Multiple Coils (Write DOs) This function code is used to set multiple coils status or write multiple digital output values. [Request] Byte Description Size Value Net ID (Station Number) 1 Byte 1 to 247 Function Code 1 Byte 0x0F...
  • Page 77: 0X10) Preset Multiple Registers (Write Aos)

    Tiny Modbus/TCP to RTU/ASCII Gateway 16(0x10) Preset Multiple Registers (Write AOs) This function code is used to set multiple holding registers that are used to store the configuration values. [Request] Byte Description Size Value Net ID (Station Number) 1 Byte 1 to 247 Function Code 1 Byte...
  • Page 78: Appendix A: Troubleshooting

    Tiny Modbus/TCP to RTU/ASCII Gateway Appendix A: Troubleshooting A1. How do I restore the web password for the module to the factory default password? The instructions below outline the procedure for resetting the web password to the factory default Note: Be aware that ALL settings will be restored to the factory default values after the module is reset. value.
  • Page 79 Tiny Modbus/TCP to RTU/ASCII Gateway Step 3 Double-click the name of the module to open the Configure Server (UDP) dialog box, and modify the basic settings as necessary, e.g., the IP, Mask and Gateway addresses, and then click the "OK" button to save the new settings. Step 4 Reset the Init/Run switch on the tGW-700 module to the "Run"...
  • Page 80: Appendix B: Glossary

    Tiny Modbus/TCP to RTU/ASCII Gateway Appendix B: Glossary 1. ARP (Address Resolution Protocol) The Address Resolution Protocol (ARP) is a telecommunication protocol that is used to convert an IP address to a physical address, such as an Ethernet address. Consider two machines A and B that share the same physical network. Each has an assigned IP address IP and IP , and a MAC address, MAC...
  • Page 81: Ethernet

    Tiny Modbus/TCP to RTU/ASCII Gateway 3. Ethernet The term Ethernet generally refers to a standard published in 1982 by Digital Equipment Corp., Intel Corp. and Xerox Corp. Ethernet is the most popular physical layer Local Area Network (LAN) technology in use today. 4.
  • Page 82: Ip (Internet Protocol) Address

    Tiny Modbus/TCP to RTU/ASCII Gateway 8. IP (Internet Protocol) Address Each interface on the Internet must have a unique IP address (also called an Internet address). These addresses are 32-bit numbers, and are normally written as four decimal numbers, one for each byte of the address for example “192.168.41.1”.
  • Page 83: Socket

    Tiny Modbus/TCP to RTU/ASCII Gateway 13. Socket Each TCP segment contains a source and destination port number that can be used to identify the sending and receiving application. These two values, along with the source and destination IP addresses in the IP header, uniquely identify each connection. The combination of an IP address and a port number is called a socket.
  • Page 84: Appendix C: Actual Baud Rate Measurement

    Tiny Modbus/TCP to RTU/ASCII Gateway Appendix C: Actual Baud Rate Measurement Ideal Baud Rate (bps) Actual Baud Rate (bps) Error 0.00% 109.92 0.07% 298.48 0.51% 597.04 0.49% 1200 1197.6 0.20% 2400 2395.2 0.20% 4800 4790.4 0.20% 9600 9568.0 0.33% 14400 14392 0.05% 19200...
  • Page 85: Appendix D: Exception Codes

    Tiny Modbus/TCP to RTU/ASCII Gateway Appendix D: Exception Codes If an exception occurs during Modbus communication, the slave device will return an Exception Code in the response message. The following is an explanation of the Exception Codes:  Exception Codes: Code Name and Description ILLEGALFUNCTION...
  • Page 86 Tiny Modbus/TCP to RTU/ASCII Gateway  Defined Exception Codes for tGW-700: Code Name and Description GATEWAYTARGETDEVICEFAILEDTORESPOND 0x0B Timeout. The slave device does not respond within the timeout value, the tGW-700 will return this code. GATEWAYTARGETDATAFAILEDTORESPOND 0x4B Timeout. The slave device is still sending data when timed out, the tGW-700 will return this code. Please use larger Slave Timeout value for the serial port of the tGW-700 module.
  • Page 87: Appendix E: Revision History

    Tiny Modbus/TCP to RTU/ASCII Gateway Appendix E: Revision History This chapter provides revision history information to this document. The table below shows the revision history. Revision Date Description Oct. 2010 Initial issue Added the software and hardware information about the Dec.

Table of Contents