N-Tron ESERV-M12T User Manual

ESERV-M12T
Modbus Gateway
Table of Contents
TABL E OF C O N T E N T S
INTRODUCTION...................................................................................................................................... 1
About ESERV-M12T Modbus Gateways ................................................................................................................. 1
Modbus Gateway Manager Configuration Software .............................................................................................. 2
ESERV-M12-T MODBUS GATEWAY HARDWARE ........................................................................ 3
Package Checklist .................................................................................................................................................. 3
ESERV-M12T Modbus Gateways Enclosures and Mounting ................................................................................... 3
LED Indicators ........................................................................................................................................................ 4
Ethernet Link LED ....................................................................................................................................................... 4
Ready LED .................................................................................................................................................................. 4
Serial Port LEDs .......................................................................................................................................................... 4
Mode Switch .......................................................................................................................................................... 5
Ethernet Connector ............................................................................................................................................... 5
Serial Port Connectors ........................................................................................................................................... 6
Power Connector ................................................................................................................................................... 6
Mounting Hardware .............................................................................................................................................. 6
MODBUS GATEWAY SETUP AND CONNECTIONS ........................................................................ 8
Connecting the Power Supply ................................................................................................................................ 8
Connecting ESERV-M12T Modbus Gateways to Modbus networks ........................................................................ 8
Connecting the ESERV-M12T ..................................................................................................................................... 9
Connecting ESERV-M12T Modbus Gateways to a Network .................................................................................. 10
Network Connection (10BaseT/100BaseTX) ............................................................................................................ 10
ESERV-M12T Configuration Connections.............................................................................................................. 10
Configuring the ESERV-M12T Modbus Gateway via the Network Connection ....................................................... 10
Configuring the ESERV-M12T Modbus Gateway on Networks without a DHCP Server .......................................... 12
Configuring the ESERV-M12T Modbus Gateway via the Serial Port (Console Mode) ............................................. 15
i ESERV-M12T (Rev. 1210)
Table of Contents
ESERV-M12T Modbus Gateway Operational Connections .................................................................................... 16
Using ESERV-M12T Modbus Gateways in Direct IP Mode ....................................................................................... 16
Initiating a Hardware Reset on the Modbus Gateway .......................................................................................... 17
Reloading Factory Defaults .................................................................................................................................. 17
DESCRIPTION, MODBUS GATEWAY PROPERTIES .................................................................... 18
Attached .............................................................................................................................................................. 18
Baud Rate ............................................................................................................................................................ 18
Character Timeout ............................................................................................................................................... 18
Configuration Files ............................................................................................................................................... 18
Data/Parity/Stop ................................................................................................................................................. 18
Default Gateway .................................................................................................................................................. 19
DHCP ................................................................................................................................................................... 19
Firmware Version ................................................................................................................................................ 19
Hardware Version ................................................................................................................................................ 19
ID Routing ............................................................................................................................................................ 19
IP Address ............................................................................................................................................................ 20
Link Status ........................................................................................................................................................... 20
MAC Address ....................................................................................................................................................... 20
Modbus Priority ................................................................................................................................................... 20
Modbus Serial Retries .......................................................................................................................................... 21
Modbus ASCII ...................................................................................................................................................... 21
Modbus Message Buffering ................................................................................................................................. 21
Modbus Message Timeout ................................................................................................................................... 21
Modbus RTU Message ......................................................................................................................................... 21
ii ESERV-M12T (Rev. 1210)
Table of Contents
Modbus Serial Control ......................................................................................................................................... 21
Modbus TCP Message .......................................................................................................................................... 22
Model .................................................................................................................................................................. 22
Network Mode .................................................................................................................................................... 22
Network Protocols ............................................................................................................................................... 22
Password ............................................................................................................................................................. 23
Port# ID Remap.................................................................................................................................................... 23
Serial Interface Modes ......................................................................................................................................... 23
Modbus Gateway Name ...................................................................................................................................... 24
Gateway Serial Port Number ............................................................................................................................... 24
Subnet Mask ........................................................................................................................................................ 24
TCP (Transmission Control Protocol) .................................................................................................................... 25
UPGRADING THE MODBUS GATEWAY FIRMWARE ................................................................. 26
Downloading Firmware Files ................................................................................................................................ 26
Uploading the Firmware to the Modbus Gateway ............................................................................................... 27
DIAGNOSTICS ........................................................................................................................................ 28
Testing a Modbus Gateway Connection ............................................................................................................... 28
APPLICATION EXAMPLES ................................................................................................................. 30
Ethernet Master and Serial Slaves ....................................................................................................................... 30
Serial Masters, IP Slaves ...................................................................................................................................... 38
Identical Hard Coded Slaves ................................................................................................................................. 44
Identical Production Lines .................................................................................................................................... 45
Modbus ASCII/RTU Basics .................................................................................................................................... 46
iii ESERV-M12T (Rev. 1210)
Table of Contents
Hints and Tips ...................................................................................................................................................... 46
APPENDICES .......................................................................................................................................... 47
Appendix A: Default Gateway Settings ................................................................................................................ 48
Appendix B: Product Specifications...................................................................................................................... 50
General Specifications ............................................................................................................................................. 51
Controls, Indicators and Connector Specifications .................................................................................................. 53
Serial Interface Specifications .................................................................................................................................. 54
Fiber Interface Specifications .................................................................................................................................. 55
Network Specifications ............................................................................................................................................ 56
Appendix C: Dimensional Diagrams ..................................................................................................................... 57
Appendix D: Connector Pinout ............................................................................................................................. 58
ESERV-M12T Serial Port Pinouts .............................................................................................................................. 58
Standard Ethernet Cable RJ-45 Pin-out ................................................................................................................... 59
GLOSSARY .............................................................................................................................................. 60
N-TRON LIMITED WARRANTY ........................................................................................................ 65
iv ESERV-M12T (Rev. 1210)
Introduction ESERV-M12T Modbus Gateway
Model Number
Features
ESERV-M12T
2 PORT, TB, DIN, CU ETHERNET
ESERV-M12T-ST
2 PORT, TB, DIN, FIBER, MULTIMODE, ST
INTRODUCTI ON
Thank you for purchasing an ESERV-M12T Modbus Gateway product! This product has been manufactured to the highest standards of quality and performance to ensure your complete satisfaction.
Figure 1. An ESERV-M12T Modbus Gateway
ABOUT ESERV-M12T MODBUS GATEWAY S
ESERV-M12T Modbus Gateways connect Modbus networks (RS-232, RS-422 or RS-485) to Ethernet networks, allowing the Modbus network to become a node on the network. The serial ports can be accessed over a LAN/WAN using Direct IP Mode connections. ESERV-M12T Modbus Gateways feature 10BaseT or 100BaseTX
copper network media and fiber optic media options, depending on the model. ESERV-M12T Modbus Gateways are built for use in industrial environments, featuring an IP30 approved slim line DIN rail mountable case. They operate from a range of DC power supply voltages and feature pluggable terminal block power connectors. An external power supply, sold separately, is required.
1 ESERV-M12T (Rev. 1210)
Introduction ESERV-M12T Modbus Gateway
ESERV-M12T PRODUCT FEATURES
Two serial ports with pluggable terminal blocks, single Ethernet port) Multi-interface serial ports All ports are software selectable as RS-232, RS-422 or RS-485 2- and 4-wire Configuration can be done via network or direct serial connection Slim line DIN rail mountable case Accepts DC power over a wide voltage range 10/100 Mbps Ethernet with Auto Selection, Auto MDI/MDIX LAN and WAN Communications TCP Client or Server operation - configurable Firmware Upload for future revisions/upgrades Software Support - Windows 2000/2003 Server/XP/Vista x32 Configuration of Ethernet and serial port settings using Modbus Gateway
Manager software
MODBUS GATEWAY MANAGER CONFIGURATION SOFTWARE
The Ethernet Modbus Gateway Manager configuration software enables you to find connected Modbus gateways, configure them, upgrade Modbus gateway firmware, and save/load configuration files. It features a graphical user interface (GUI) that is convenient and easy to use.
2 ESERV-M12T (Rev. 1210)
Hardware ESERV-M12T Modbus Gateway
ESE R V- M12-T MODBUS GATEWAY HARDWARE
ESERV-M12T Modbus Gateways are enclosed in DIN rail mountable enclosures and feature LED indicators, power, Ethernet and serial connectors and a recessed Mode switch.
PACKAGE CHECKLIST
ESERV-M12T Modbus Gateways are shipped with the following items included:
ESERV-M12T Modbus Gateway Module Quick Start Guide CD with User Manual, Quick Start Guide and firmware
ESERV-M12T MODBUS GATEWAYS ENCLOSURES AND MOUNT ING
Modules are DIN rail mountable.
Figure 2. Front View of an ESERV-M12T Modbus Gateway
3 ESERV-M12T (Rev. 1210)
Hardware ESERV-M12T Modbus Gateway
LED INDICATORS
ESERV-M12T Modbus Gateways have three types of LED indicators: Ethernet Link LEDs, a Ready LED and
Serial Port LEDs.
Figure 3. Ready Ethernet Port LED
ETHERNET LINK LED
The Ethernet Link LED illuminates (green) if the Ethernet is connected. When the LED is blinking it indicates that there is data traffic on the Ethernet link.
E1 is used to connect to the network.
READY LED
The Ready LED (green) blinks if the system is operating correctly, once per second in normal operating conditions, or three times per second in reset, configuration mode, or when loading factory defaults. If the LED is off or steady, it indicates the system is not operating correctly.
SERIAL PORT LEDS
ESERV-M12T Modbus Gateways feature two serial ports. Each serial port has an associated LED. Serial Port LEDs blink (green) when data is being transmitted or received on the serial port. When the LED is On, it indicates the serial port is open.
Figure 4. Serial Port LEDs
4 ESERV-M12T (Rev. 1210)
Hardware ESERV-M12T Modbus Gateway
MODE SWITCH
A recessed momentary reset switch is located on the top of the enclosure. To activate the switch, insert a small plastic tool through the hole in the enclosure and press lightly.
Figure 5. Mode Switch
The Mode switch can be used to:
Initiate a Hardware Reset Enter Console Mode Reload factory defaults
Note: Refer to Section 3. Modbus Gateway Setup and Connections for more information on using the Mode switch.
ETHERNET CONNECTOR
Modbus gateway models using 10BaseT/100BaseTX network connections use an RJ45 receptacle. The Modbus ESERV-M12T gateway is connected to a standard Ethernet network drop using a straight-through RJ45 (male) Ethernet cable.
Fiber Optic Connectors
The ESERV-M12T-ST uses a multimode fiber optic network connection with ST style connectors.
Figure 6. ST Connector
5 ESERV-M12T (Rev. 1210)
Hardware ESERV-M12T Modbus Gateway
SERIAL PORT CONNECTO RS
The ESERV-M12T Modbus Gateway features two serial ports, both using five-position removable terminal blocks for RS-232, RS-422 and RS-485 connections.
Figure 7. Five-Position Pluggable Terminal Block
Note: Refer to Appendix D for connection pin-outs.
POWER CONNECTOR
The power connector is a 2-position pluggable terminal block.
Figure 8. Power Connection
MOUNTING HARDWARE
ESERV-M12T modules can be DIN rail mounted. The DIN mounting clip and spring is included on each module.
6 ESERV-M12T (Rev. 1210)
Hardware ESERV-M12T Modbus Gateway
Figure 9. ESERV-M12T DIN Clips
7 ESERV-M12T (Rev. 1210)
Setup and Connections ESERV-M12T Modbus Gateway
MODB US G A T EWA Y SETUP AND CONNECTIONS
This section describes how to setup and connect ESERV-M12T Modbus Gateways.
Note: In this section devices to be connected to the Modbus gateway’s serial connection are simply referred to as the “Modbus network”.
CONNECTING THE POWER SUPPLY
Connect a DC power supply to the power terminals on the top of the Modbus gateway. Polarity of the wires is indicated on the label on the side of the Modbus gateway. Acceptable voltages are between 10 VDC and 58 VDC. The power supply must be capable of supplying 4 Watts for ESERV-M12T units.
Figure 10. ESERV-M12T Power Connection
CONNECTING ESERV-M12T MODBUS GATEWAY S TO MODBUS NETWORKS
ESERV-M12T Modbus Gateway scan be configured to connect to Modbus networks using RS-232, RS-422, RS-485 2-wire and RS-485 4-wire.
RS-232 connections support eight signal lines plus Signal Ground. Signals are single ended and referenced to Ground. Default communications parameters are 9600, 8, N, 1 and no flow control implemented.
RS-422 connections support two signal pairs: RXA(-), RXB(+) and TXA(-), TXA(+), plus GND. The data lines are differential pairs (A & B) in which the B line is positive relative to the A line in the idle (mark) state. Ground provides a common mode reference.
RS-485 connections support 2-wire or 4-wire operation.
8 ESERV-M12T (Rev. 1210)
Setup and Connections ESERV-M12T Modbus Gateway
When configured for 4-wire operation the connection supports two signal pairs: RXA(-), RXB(+) and TXA(-), TXA(+), plus GND. This makes full-duplex operation possible. The data lines are differential pairs (A & B) in which the B line is positive relative to the A line in the idle (mark) state. Ground provides a common mode reference.
When configured for 2-wire operation the connection supports one signal pair: DataB(+) and DataA(-) signal channels using half-duplex operation. The data lines are differential with the Data B line positive relative to Data A in the idle (mark) state. Ground provides a common mode reference.
CONNECTING THE E SERV-M12T
The ESERV-M12T has two serial connections that support RS-232, RS-422 and RS-485 (2- and 4-wire). The unit has two connectors, both of which are 5-position terminal blocks. Make the appropriate connections to the terminal blocks to match the serial connection mode you select when configuring the Modbus gateway.
Note: Refer to Appendix D for connector pin out information.
Figure 11. ESERV-M12T Connections
9 ESERV-M12T (Rev. 1210)
Setup and Connections ESERV-M12T Modbus Gateway
CONNECTING ESERV-M12T MODBUS GATEWAYS TO A NETWORK
NETWORK CONNECTION (10BASET/100BASETX)
When connecting a Modbus gateway equipped with a 10BaseT/100BaseTX network connection (RJ45 connector) a standard network cable is connected from the Modbus gateway to a network
drop. PCs configuring and/or communicating with the Modbus gateway are also connected to the network.
ESERV-M12T CONFIGURATION CONNECTIONS
ESERV-M12T Modbus Gateways can be configured over the network or via a serial port.
CONFIGURING THE ESERV-M12T MODBUS GATEWAY VIA THE NETWORK CONN ECTION
When configuring via the network, either Modbus Gateway Manager software or the web interface can be used.
CONFIGURING WITH MODBUS GATEWAY MANAGER
ESERV-M12T Modbus Gateways can be configured over the network Modbus Gateway Manager software running on a PC.
To open theModbus Gateway Manager:
1. From the Desktop, click Start Programs N-TRON Modbus Gateway Manager Configuration Manager.
10 ESERV-M12T (Rev. 1210)
Setup and Connections ESERV-M12T Modbus Gateway
The Modbus Gateway Manager Device Discovery window appears.
Figure 12. Modbus Gateway Manager Discovery Window
2. Configure your Modbus gateway as required.
Note: For more information on configuration options refer to Section 4: Description of Modbus gateway Properties.
Configuring with the Web Interface
ESERV-M12T Modbus Gateways can be configured over the network using a standard internet browser such as Internet Explorer or Firefox.
To open the web configuration interface:
1. On a PC connected to the network, open a browser.
2. In the browser’s address bar, type the IP address of the Modbus gateway.
Note: Your Modbus gateway comes from the factory pre-configured to receive an IP address assignment from a DHCP server. If a DHCP Server is not available on your network, it will default to 169.254.102.39.
The web interface Login page appears.
11 ESERV-M12T (Rev. 1210)
Setup and Connections ESERV-M12T Modbus Gateway
Figure 13. Modbus Gateway Manager Login Screen
3. Configure your Modbus gateway as required.
Note: For more information on configuration options refer to Section 4: Description of Modbus Gateway Properties.
CONFIGURING THE ESERV-M12T MODBUS GATEWAY ON NETWORKS WITHOUT A DHCP SERVER
Your Modbus Gateway comes from the factory set up to receive an IP assignment from a DHCP Server. If there is not a DHCP server on your network, the Modbus Gateway will default to IP address 169.254.102.39. If this address does not work with your PC, there are two methods to manually configure the network information.
1. Method 1: Change your PC Network to Match the Modbus Gateway
a. Open your network connection
12 ESERV-M12T (Rev. 1210)
Setup and Connections ESERV-M12T Modbus Gateway
b. Click on Internet Protocol (TCP/IP) and click <properties>. Change the parameters to the
following:
IP Address = 169.254.102.1
Subnet Mask = 255.255.0.0
Default Gateway = 169.254.102.100
c. Use the Modbus Gateway Manager Software to search for, discover, and configure the
Modbus Gateway.
13 ESERV-M12T (Rev. 1210)
Setup and Connections ESERV-M12T Modbus Gateway
Model
Port 1 LED
Port 2 LED
Ready LED
ESERV-M12T
OFF
ON
OFF
2. Method 2: Change the Modbus Gateway’s network settings to match your PC using Console Mode
a. Connect a null modem serial cable (crossover cable) from port 1 on the Modbus Gateway to
an available COM port on your PC.
b. Open Hyper Terminal or similar serial emulation software and connect to the COM port used
in step one. Ensure the port is configured to 115,200 baud, 8 data bits, no parity, and 1 stop bit.
c. Enter Console Mode. Press and hold the Modbus Gateway’s for 2 to 10 seconds. The LED
indicators will respond as follows:
d. Release the reset button. The READY LED will blink once per second for five seconds. This
indicates that the Modbus Gateway is re-booting in Console Mode.
e. When the Modbus Gateway has successfully restarted in Console Mode, the READY LED will
be OFF and the PORT 1 LED will be ON.
f. Open the Ethernet Modbus Manager Software and select “Serial Port” as the method to
connect to the Modbus Gateway.
g. After logging in, click on <Network>.
h. Un-check the box next to “I Want DHCP to setup the Network.”
i. Re-configure the Modbus Gateway’s network settings to something within the range of your
PC’s network settings. For example:
PC Network Settings
IP Address = 192.168.0.1
Subnet Mask = 255.255.0.0
Default Gateway = 192.168.0.100
Change the Modbus Gateway’s network settings to:
IP Address = 192.168.0.50
Subnet Mask = 255.255.0.0
Default Gateway = 192.168.0.100
14 ESERV-M12T (Rev. 1210)
Setup and Connections ESERV-M12T Modbus Gateway
j. Save the settings and remove power from the Modbus Gateway.
k. Re-apply power. Open the Ethernet Modbus Gateway Manager Software and select
“Network” as the method to connect to the device.
CONFIGURING THE ESERV-M12T MODBUS GATEWAY VIA THE SERIAL PORT (CONSOLE MODE)
Your Modbus gateway can be configured via a serial port using the Ethernet Modbus Gateway Manager. To use this feature the Modbus gateway's serial port must be connected to the serial port of a PC (using a null modem cable).
Figure 14. Console Mode Setup
To configure the Modbus gateway it must be put into Console Mode, using the Mode switch.
To enter Console Mode, press and hold the Mode switch for between two and ten seconds. The LED indicators respond as follows:
1. The Ready LED blinks three times per second while the button is being pressed.
2. The Modbus gateway is in Console Mode when:
Port 1 LED on the ESERV-M12T is On and the Port 2 LED is Off.
To configure the Modbus gateway, open the Modbus Gateway Manager software and set up the Modbus gateway's parameters as required.
Note: For more information on configuration options refer to Section 4: Description of Modbus Gateway Properties.
15 ESERV-M12T (Rev. 1210)
Setup and Connections ESERV-M12T Modbus Gateway
To exit Console Mode, press and hold the Reset switch for two seconds, or turn off the power from the ESERV­M12T, wait a few seconds, and turn the power on again.
The LEDs go back to their normal states when the device resumes normal operation.
ESERV-M12T MODBUS GATEWAY OPERATIONAL CONNECTI ONS
ESERV-M12T Modbus Gateways can operate in Direct IP Mode.
USING ESERV-M12T MODBUS GATEWAY S IN DIRECT IP MODE
A Direct IP connection allows applications using TCP/IP socket programs to communicate with the COM ports on the Modbus gateway. In this type of application the Modbus gateway is configured as a TCP server. The socket program running on the PC establishes a communication connection with the Modbus gateway. The data is sent directly to and from the serial port on the server.
To set up a Direct IP Mode connection:
1. Connect the Modbus gateway to the network and a Modbus network as described in previous sections.
2. Configure the Modbus gateway with the appropriate network settings (using Modbus Gateway Manager or the web interface).
3. Configure your software application with the appropriate IP address and port number to communicate with the Modbus network(s).
Figure 15. Direct IP Connection
16 ESERV-M12T (Rev. 1210)
Setup and Connections ESERV-M12T Modbus Gateway
INITIATING A HARDWARE RESET ON THE MODBUS GATEWAY
To initiate a Hardware Reset on the Modbus gateway, press and hold the Mode switch for 0 to 2 seconds, and then release it. The LED indicators respond as follows:
1. The Ready LED blinks three times per second while the button is being pressed.
2. The Modbus gateway is in Reset Mode when:
Port 1 LED on the ESERV-M12T is On and the Port 2 LED is Off.
3. The LEDs go back to their normal states when the device resumes normal operation.
RELOADING FACTORY DE FAULTS
To reload Factory Defaults, press and hold the Mode switch for more than 10 seconds. The LED indicators respond as follows:
1. The Ready LED blinks three times per second while the button is being pressed.
2. The Modbus gateway is in Factory Default Mode when:
Port 1 LED on the ESERV-M12T and the Port 2 LED are both On.
The Modbus gateway reloads all factory default configuration parameters.
3. The LEDs go back to their normal states when the device resumes normal operation.
Note: Factor default parameters are listed in Appendix A
17 ESERV-M12T (Rev. 1210)
Loading...
+ 49 hidden pages