Ethernet to Modbus Data Gateway User’s Manual Preface and Table of Contents
ADAM-4572 User's Manual
Copyright Notice This document is copyrighted, 2000, by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd., reserves the right to make improvements to the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd. Information provided in this manual is intended to be accurate and reliable. However, Advantech Co., Ltd.
A Message to the Customer... Advantech Customer Services Each and every Advantech product is built to the most exacting specifications to ensure reliable performance in the unusual and demanding conditions typical of industrial environments. Whether your new Advantech equipment is destined for the laboratory or the factory floor, you can be assured that your product will provide the reliability and ease of operation for which the name Advantech has come to be known.
Product Warranty Advantech warrants to you, the original purchaser, that each of its products will be free from defects in materials and workmanship for two years from the date of purchase. This warranty does not apply to any products which have been repaired or altered by other than repair personnel authorized by Advantech, or which have been subject to misuse, abuse, accident or improper installation. Advantech assumes no liability as a consequence of such events under the terms of this Warranty.
product returned without dated proof of purchase is not eligible for warranty service. 5. Write the RMA number visibly on the outside of the package and ship it prepaid to your dealer.
Contents 1. Introduction ......................................................................... 1 1.1 ADAM Data Gateway Series .............................................................. 2 1.2 Protocol .............................................................................................. 2 1.2.1 1.2.2 1.2.3 1.2.4 Overview ............................................................................................ 3 Modbus/RTU ...................................................................
Appendix A Configuration Example .................................... 35 A.1 OPC Server ..................................................................................... 36 A.2 FIX ................................................................................................... 37 Appendix B Application ........................................................ 41 Appendix C Technical Diagrams ......................................C-45 C.1 ADAM Dimensions ...............................................
Tables Table 1-1: Comparison of Modbus RTU and ASCII mode .......................... 5 Table 2-1: Functional Status of LED .......................................................... 14 Table 3-1: Table 3-2: Settings of Modbus/ASCII ........................................................ 24 Settings of Modbus/RTU ..........................................................
Figures Figure 1-1: Modbus System Architecture ................................................... 4 Figure 2-1: The ADAM-4572 Module Front View .......................................... 8 Figure 2-2: Pin assignment of 3P to DB 9 cable .......................................... 9 Figure 2-3: Wiring of RS-232 Connection .................................................. 10 Figure 2-4: Wiring of RS-485 Connection .................................................. 10 Figure 2-5: Wiring of RS-422 Connection ..
Figure C-1: Figure C-2: Figure C-3: Figure C-4: Figure C-5: Figure C-6: ADAM Modules Dimensions ................................................ C-46 DIN-Rail Adapter ................................................................... C-47 DIN-Rail Mounting ................................................................. C-48 Panel Mounting Bracket Dimensions ................................. C-49 Panel Mounting ..................................................................... C-50 Piggyback Stack ...
ADAM-4572 User's Manual
CHAPTER 1 Introduction
1.1 ADAM Data Gateway Series Networks have become increasingly vital for industrial automation applications. Many control devices today do not have a network port and can only communicate with a dedicated local PC or control panel. Advantech’s revolutionary network-enabling technology is now allowing control devices with serial ports to connect to the Ethernet and share networks quickly and cost-effectively.
1.2.1 Overview The Modbus/RTU and Modbus/ASCII protocols define how a “master” device polls one or more “slave” devices to read and write real-time data over RS-232, RS-422, or RS-485 serial data communication. The simplicity of Modbus/RTU not only allows rapid implementation, but can also remain flexible enough to be applied in virtually all industrial situations.
PC PC PC Ethernet Modbus/TCP Ethernet ADAM Ethernet ADAM-4572 RS-232/485/422 ADAM ADAM-4572 RS-232/485/422 Modbus/RTU Modbus/ASCII ADAM-5511 PLC ADAM-5000/MOD 3rd party device (RTU) Figure 1-1: Modbus System Architecture 1.2.2 Modbus/RTU The Modbus/RTU protocol defines how a “master” device polls one or more “slave” devices to read and write data in real-time over RS-232, RS-422, or RS-485 serial data communication.
1.2.3 Modbus/ASCII When using ASCII mode, each 8-bit byte in a message is sent as two ACSII characters. The primary advantage of this ASCII mode is that it allows time intervals of up to one second to occur between characters without causing an error. Mode RTU ASCII Coding System 8-bit binary. Two hexadecimal character contained in each ASCII character of the message Hexadecimal.
1.2.4 Modbus/TCP As a new extension of Modbus/RTU, the Modbus/TCP protocol defines how Modbus/RTU messages are encoded within and transported over TCP/IP-based networks. Modbus/TCP is just as simple to implement and flexible to apply as the original Modbus/RTU. The Modbus/TCP protocol is defined by its form of encapsulation for a Modbus request or response. That means the Modbus request or response data is encapsulated in TCP frame that has a six-byte header in Modbus/TCP protocol.
CHAPTER 2 Installation Guidelines
2.1 System Requirement 2.1.1 Host computer 1. IBM PC compatible computer with Ethernet network interface card (Pentium CPU is strongly recommended). 2. Microsoft Windows NT 4.0 (with Service Pack 3 or above). 3. HMI software with Modbus/TCP protocol or OPC Modbus/TCP Server (e.g. Advantech GeniDAQ 4.0; In Touch 7.0; FIX 7.0, ICONICS 5.0 or above) installed. 2.1.2 ADAM-4572 Ethernet to Modbus Data Gateway 1. One ADAM-4572 user’s manual. 2. One ADAM-4572 configuration utility diskette. 3.
• 1 SHIELD WHITE • 2 Rx RED • 3 Tx • 4 DTR BLACK • 5 GROUND • 6 DSR • 7 RTS • 8 CTS • 9 NC TX: Transmitted Data DTR: Data Terminal Ready RX: Received Data CTS: clear to Send RTS: Request to Send N/C:No Connection DSR: Data Set Ready CD: Carrier Detect Figure 2-2: Pin assignment of 3P to DB 9 cable 2.2 Communication Wiring 2.2.
Wiring for RS-232 Connection TX+ (DATA+) TX(DATA-) RX+ RXRX TX GND + 10 ~ 30 VDC - +Vs GND Figure 2-3: Wiring of RS-232 Connection Wiring of RS-485 Connection Figure 2-4: Wiring of RS-485 Connection Wiring of RS-422 Connection Figure 2-5: Wiring of RS-422 Connection 10 ADAM-4572 User's Manual
2.2.2 Third Party Modbus Serial Device Wiring Wiring of RS-232 connection When connecting RS-232 interface of ADAM-4572 to a third party device with DB-9 interface for data transmission, please follow the illustration below to short pin 4 and pin 6, pin 7 and pin 8 respectively at the DB9 end. Figure 2-6: Connecting to Modbus Serial Devices (RS-232) Wiring of RS-485 and RS-422 connection If you are using RS-485 or RS-422 interface for data transmission, follow standard connection.
ADAM-4572 TX+ (DATA+) TX(DATA-) Modbus Serial Device • Rx + • Rx - RX+ • Tx + RX- • Tx - RX TX GND +Vs GND TX: Transmitted Data RX: Received Data Figure 2-8: Connecting to Modbus Serial Devices (RS-422) 2.2.3 Ethernet Port Wiring The ADAM-4572 uses a RJ-45 connector to interface with the Ethernet, and supports 10/100 Mbps transmission speed. The ADAM-4572 configuration utility will auto-detect the current transmission speed on the network and configure itself accordingly.
Cabling requirements for the Ethernet side Use the RJ-45 connector to connect the Ethernet port of the ADAM4572 to the Hub. The cable for connection should be Category 3 (for 10Mbps data rate) or Category 5 (for 100 Mbps data rate) UTP/STP cable, which is compliant with EIA/TIA 586 specifications. Maximum length between the Hub and any ADAM-4572 is up to 100 meters (ca. 300 ft).
2.4 LED Indicator The ADAM-4572 has 4 LED indicators for users to monitor its functional status.
2.5 Network Cabling The following illustration is a quick reference of network cabling for you to set up network in your factory.
16 ADAM-4572 User's Manual
CHAPTER 3 Utility Software
3.1 Installation of Utility Software Before you use the ADAM-4572, you have to install the ADAM-4572 configuration utility. Please follow the steps as described below: 1. Insert the ADAM-4572 configuration utility diskette into the floppy drive (e.g. a:\) on the host PC. Change the host computer’s default drive from C: to A: 2. Use your Windows Explorer or the Windows Run command to execute the Setup Program. (The path for the Setup program on diskette should be A:\setup.
Figure 3-2: Choosing the Destination Directory Figure 3-3: Installation Complete 4. After Setup has copied all program files to your computer, click the Finish button to finish the installation. Configuration utility will then search the ADAM-4572 device on your local area network automatically.
Figure 3-4: Configuration Utility 3.2 Configuration The ADAM-4572 provides easy configuration by Windows utility through Ethernet connection. This Windows utility searches all the ADAM-4572 devices on the network automatically and you can configure various parameters for TCP/IP configuration easily. For secure administration, it can also restrict the access right for configuration to only one host PC to enhance network security.
Figure 3-5: System Setting Window ADAM Data Gateway In this column, you will see all the found ADAM-4572 devices are listed when you use the configuration utility to auto-search ADAM-4572 devices. The specific number following each ADAM-4572 device is its Ethernet Address. The Ethernet Address is what helps the local system to identify and locate each ADAM device. This Ethernet Address is already set before delivery from factory, hence no need for further configuration.
3.2.2 Network Configuration Figure 3-6: Network Setting Window MAC Address This is also called Ethernet address and needs no further configuration. Link Speed This function will show the current linking speed to be either 10Mbps or 100Mbps. However, the utility will auto-detect the current transmission speed on the network segment and set the transmission speed for the device accordingly without your further efforts.
3.2.3 Serial Port Configuration Figure 3-7: Port Setting Window Name To specify which port on the ADAM-4572 is to be connected to the Modbus serial device. Since the ADAM-4572 has only one serial port, the only available port name is Port 1. Description You can give more detailed description of the function of the port for easy management and maintenance. Descriptions longer than 128 characters cannot be used. Type Each ADAM-4572 offers 3 kinds of serial interfaces, RS-232, RS-485 and RS-422.
3kinds of serial interfaces can be connected to ADAM-4572. Every Modbus device connected to any of the 3 serial buses must have a unique Modbus ID, and can be accessed from host PC through ADAM-4572. RS-422 - When configuring the ADAM-4572 serial port to RS-422, RS422 and RS-232 type of serial interfaces can be connected to ADAM4572. All devices connected to these 2 serial buses can be accessed from host PC through ADAM-4572.
3.2.4 Modbus Configuration Figure 3-8: Modbus Configuration Window Lock the Configuration of Host This option is enabled in order to protect all configuration settings from being changed inadvertently. When this option is enabled, only the PC with specified IP address (e.g. 172.20.20.2) is allowed to set the configuration whereas other PCs will not be given the access right for configuration and the option will be grayed out accordingly. Modbus/TCP port number The default port number of Modbus/TCP is 502.
ASCII Frame Inter Char. Timeout This option specifies the time interval in milliseconds between characters within the Modbus/ASCII message. If a greater interval occurs, the receiving device assumes an error has occurred. Modbus Serial Frame Type This option specifies whether to Retain the original encapsulated frame type or to Convert to Modbus/ASCII frame anyway. When finished the configuration of the settings, please follow the steps to make these settings effective on the ADAM-4572.
Ready The configuration utility has found the ADAM-4572 and it is ready for use. Searching ADAM-4572 The configuration utility is searching the ADAM-4572. Querying DATA from ADAM-4572 The configuration utility is getting data from the ADAM-4572. Device Ready The ADAM-4572 is ready to be configured and is now waiting for acknowledgement from the device. Lost Connection from the Device Due to device shut down or network failure, the configuration utility has lost connection after 5 seconds.
28 ADAM-4572 User's Manual
CHAPTER 4 Features and Specifications
The ADAM-4572 is designed to be a Modbus data gateway, which serves as an interface between Modbus serial devices and computer hosts running Modbus/TCP on Ethernet. Fully compliant with Modbus/TCP, it is ideal for customers who are looking for an easy way to connect their existing devices or controllers running Modbus serial protocols (Modbus/ASCII or Modbus/ RTU) to Ethernet network. It functions as a bridge between Modbus serial devices or controllers over TCP/IP Ethernet.
Support popular HMI software with Modbus/TCP driver or OPC server ADAM-4572 is designed to be fully compatible with most popular HMI software, which supports Modbus/TCP protocol with Modbus/TCP driver or OPC server (e.g. Advantech GeniDAQ 4.0, In Touch 7.0, FIX 7.0, ICONICS 5.0 and above). Free limitation of OS platform Any PC host running Modbus/TCP protocol, no matter what OS platform it is running on, can connect to and access data through ADAM4572.
Surge protection for RS-485 line and power supply The ADAM-4572 provides surge protection for the power input and some vital part of the internal circuitry. For the power input, the surge protection is up to 34V, and when the instantaneous power output rises up to 200 Watts, the circuit will break to protect the device from being damaged.
• Power Consumption: 3 watts • Case: ABS with captive mounting hardware • Accessories: Nylon DIN-rail mounting adapter SECC panel mounting bracket • Operating Temperature: 0 to 60° C • Storage Temperature: -20 to 80° C • Operating Humidity: 20 to 95% (non-condensing) • Storage Humidity: 0 to 95% (non-condensing) • Dimension Figure 4-1: ADAM-4572 Module Dimension • Weight: Total Weight (only ADAM-4572) = 150 g Chapter 4 Features and Specifications 33
34 ADAM-4572 User's Manual
Appendix A Configuration Example
A.1 OPC Server When you want to use the OPC Server with Modbus/TCP protocol, please refer to the following. Since OPC servers from different vendors could vary, we will use the Advantech Modbus/TCP OPC Sever as an example. For further details, please refer to each manual. Device Setting Enter the proper settings for your ADAM-4572 device. Figure A-1: Device Property Setting IP Address You should enter the proper IP address for the ADAM-4572; otherwise it will not be located on the network.
A.2 FIX When you are using Intellution FIX 6.X or above, which is a specific HMI software, and get connected to the ADAM-4572, please follow the steps below to carry on with its configuration: 1. Access the Hosts file on your system disk. The path is C:\WINNT\system32\drivers\etc\Hosts. Or you can use Windows Find to locate the Hosts file more quickly. Figure A-2: Searching File 2. Double-click the Hosts file. Since there is no program association for this file type, an Open With dialog box will appear.
3. Add the IP address of ADAM-4572 into your Hosts file. For your proper IP address, please ensure that it is identical with that which is found on your configuration utility.
4. Access Start menu/Intellution FIX/System Configuration. Figure A-5: Select System Configuration of FIX 5.
6. Add the IP address of ADAM-4572 into MBE item Figure A-7: Add the IP address of ADAM-4572 into MBE 7. Execution When you finish all the settings, it is now ready to run your HMI software.
Appendix B Application
The followings are the application examples for the ADAM-4572. ERP, MES, Plant Historian, Third-party Application/System Remote Stations GeniDAQ Operator Stations -NT/95/98 ADAM Utility Engineer Stations -Windows NT Internet or Modem Access Link TCP/IP Network (Ethernet) Eth ern et Eth ern et ADAM 4572 ADAM 4572 ...
architecture much more flexible, engineer can use configuration utility to add or remove the ADAM-4572 for the network at anytime. It provides not only configuration function, but also monitoring and auto-detecting function of the ADAM-4572 status. In addition, if there is any problem occurring on job site, engineers can also maintain this system via Internet or modem thousands of miles away.
44 ADAM-4572 User's Manual
Appendix C Technical Diagrams
C.
C.2 Installation C.2.
Figure C-3: DIN-Rail Mounting 48 ADAM-4572 User's Manual
C.2.
Figure C-5: Panel Mounting 50 ADAM-4572 User's Manual
C.2.
52 ADAM-4572 User's Manual
Appendix D RS-485 Network Appendix D RS-485 Network 53
EIA RS-485 is the industry’s most widely used bidirectional, balanced transmission line standard. It is specifically developed for industrial multidrop systems that should be able to transmit and receive data at high rates or over long distances.
D.1 Basic Network Layout Multi-drop RS-485 implies that there are two main wires in a segment. The connected systems tap from these two lines with so called drop cables. Thus all connections are parallel and connecting or disconnecting of a node doesn’t affect the network as a whole. Since ADAM-5000 systems use the RS-485 standard and an ASCII-based commands set, they can connect and communicate with all ASCII-based computers and terminals.
Star Layout In this scheme the repeaters are connected to drop-down cables from the main wires of the first segment. A tree structure is the result. This scheme is not recommended when using long lines since it will cause a serious amount of signal distortion due to signal reflections in several line-endings.
Random This is a combination of daisychain and hierarchical structure.
Combination of an ADAM-4000 and an ADAM-5000 in a RS-485 Network The following figure shows how to integrate ADAM-4000 and ADAM5000 systems in a network. Coverter RS232/RS485 Repeater RS-485 2 RS-232 repeater 1 1 ADAM-5000 SYSTEM 2 3 ADAM-4000 I/O MODULES Figure D-4: ADAM-4000 and ADAM-5000 in a network ☛ Note:The speed of ADAM-4000 and ADAM-5000 in a RS-485 network should be the same.
D.2 Line Termination Each discontinuity in impedance causes reflections and distortion. When a impedance discontinuity occurs in the transmission line the immediate effect is signal reflection. This will lead to signal distortion. Specially at line ends this mismatch causes problems. To eliminate this discontinuity, terminate the line with a resistor. Figure D-5: Signal distortion The value of the resistor should be a close as possible to the characteristic impedance of the line.
Figure D-6: Termination resistor locations Because each input is biased to 2.4 V, the nominal common mode voltage of balanced RS-485 systems, the 18 kΩ on the input can be taken as being in series across the input of each individual receiver. If thirty of these receivers are put closely together at the end of the transmission line, they will tend to react as thirty 36kΩ resistors in parallel with the termination resistor.
Since this value lies within 10% of the line characteristic impedance. Thus as already stated above the line termination resistor RT will normally equal the characteristic impedance Zo. The star connection causes a multitude of these discontinuities since there are several transmission lines and is therefore not recommend.
Intelligent RS-485 Control ADAM-4510 and ADAM-4520 are both equipped with an I/O circuit which can automatically sense the direction of the data flow. No handshaking with the host (like RTS, Request to Send) is necessary to receive data and forward it in the correct direction. You can use any software written for half-duplex RS-232 with an ADAM network without modification. The RS-485 control is completely transparent to the user.