Modbus To Ethernet Bridge User's Guide 174CEV30020
Modbus To Ethernet Bridge User's Guide 174CEV30020
Modbus To Ethernet Bridge User's Guide 174CEV30020
31005108 00
Table of Contents
Chapter 2
Chapter 3
Using the Configuration Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Option 1: Network IP Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Option 2: Serial and Mode Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 Option 3: Modem Control Settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Option 4: Advanced Modbus Protocol Settings . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Option 5: Unit ID to IP Address Mapping Table . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Chapter 4
Glossary Index
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Safety Information
Important Information
NOTICE Read these instructions carefully, and look at the equipment to become familiar with the device before trying to install, operate, or maintain it. The following special messages may appear throughout this documentation or on the equipment to warn of potential hazards or to call attention to information that clarifies or simplifies a procedure.
The addition of this symbol to a Danger or Warning safety label indicates that an electrical hazard exists, which will result in personal injury if the instructions are not followed. This is the safety alert symbol. It is used to alert you to potential personal injury hazards. Obey all safety messages that follow this symbol to avoid possible injury or death.
DANGER
DANGER indicates an imminently hazardous situation, which, if not avoided, will result in death, serious injury, or equipment damage.
WARNING
WARNING indicates a potentially hazardous situation, which, if not avoided, can result in death, serious injury, or equipment damage.
CAUTION
CAUTION indicates a potentially hazardous situation, which, if not avoided, can result in injury or equipment damage.
PLEASE NOTE
Electrical equipment should be serviced only by qualified personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material. This document is not intended as an instruction manual for untrained persons. 2003 Schneider Electric All Rights Reserved.
5
Safety Information
At a Glance
Document Scope Validity Note This user guide introduces the Modbus to Ethernet Bridge. The data and illustrations found in this book are not binding. We reserve the right to modify our products in line with our policy of continuous product development. The information in this document is subject to change without notice and should not be construed as a commitment by Schneider Electric.
Revision History
Rev. No. 1 Changes Initial version.
Related Documents
Title of Documentation
Reference Number
Schneider Electric assumes no responsibility for any errors that may appear in this document. If you have any suggestions for improvements or amendments or have found errors in this publication, please notify us. No part of this document may be reproduced in any form or by any means, electronic or mechanical, including photocopying, without express written permission of Schneider Electric. All pertinent state, regional, and local safety regulations must be observed when installing and using this product. For reasons of safety and to ensure compliance with documented system data, only the manufacturer should perform repairs to components. When controllers are used for applications with technical safety requirements, please follow the relevant instructions.
7
Failure to use Schneider Electric software or approved software with our hardware products may result in injury, harm, or improper operating results. Failure to observe this product related warning can result in injury or equipment damage. User Comments We welcome your comments about this document. You can reach us by e-mail at TECHCOMM@modicon.com
Getting Started
1
At a Glance
Overview Whats in this Chapter? This chapter provides an overview of the Modbus to Ethernet Bridge. This chapter contains the following topics:
Topic Introducing the Modbus to Ethernet Bridge Mapping Modbus and IP Addresses Front Panel Layout Specifications LEDs Dimensions Power Requirements Reset Switch Page 10 12 14 16 18 19 20 21
Getting Started
Bridge Applications
Ethernet
The bridge also allows multiple Modbus networks to be linked together across an Ethernet connection. Multiple Bridges can furnish an Ethernet link between widely separated Modbus networks. This extends the message path beyond the cable lengths allowed for serial connections, and allows a Master on any Modbus network to access Slave devices on another network.
10
Getting Started
The following figure shows a typical application in which three Bridges join Modbus networks through a common Ethernet link.
Modbus
Ethernet
Modbus Modbus
The Bridge is designed for easy snap mounting on a standard DIN rail.Its front panel has connectors for power, ground, Ethernet and Modbus cables. It has a switch for selecting either an RS232 or RS422/485 interface for the Modbus port. Indicators show the status of communication at the Ethernet and Modbus ports. The Bridge contains a configuration utility program stored in its nonvolatile memory. With this utility you can assign the Bridges Ethernet and Modbus parameters, using an ASCII terminal at the serial port or a Telnet connection over Ethernet. The Bridge contains a factory-assigned MAC address that is derived from the serial number printed on the Bridges label. This allows you to establish an Ethernet connection to the Bridge to assign its IP address and the other parameters for reapplication.
11
Getting Started
12
Getting Started
Modbus Master
Bridge A
Ethernet 192.168.001.024 Bridge B Modbus Slave(s) Bridge routes message to Slave according to user-defined setup: Message Slave Address (10) or Fixed Slave Address (1 ... 247)
These are the events in the messaging routing:
l The Modbus Master sends its message containing address 10 decimal to Bridge
A.
l You have set an entry in the mapping table in Bridge A. Your entry specifies that
messages with address 10 are to be mapped to IP address 192.168.001.024
l Bridge B has that IP address and receives the message. l Depending on the option you set in Bridge B, the message is routed either to the
Modbus Slave device at address 10 as specified in the message, or to a fixed Slave address in the range 1....247.
13
Getting Started
9 10 12 11 15 13 16 14 17 18
19
20
21
22
14
Getting Started
Wire Terminal
CTS or Rx+
Wire Terminal
RTS or Tx+
Wire Terminal
TxD or Tx-
5,6,7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Wire Terminal Wire Terminal Reset Switch LED (Red) LED (red) LED (green) LED (yellow) Connector (RJ45) Connector (RJ45) LED (yellow) LED (yellow) Switch Wire Terminal Wire Terminal Wire Terminal Wire Terminal
NC GND RST Fault or Configuration Ready Active Ethernet Link Good Ethernet Port Modbus Port Modbus Tx Modbus Rx Modbus Interface selection DC+ (or AC) Ground DC- (or AC) Ground
15
Getting Started
Specifications
Overview Power The Bridge specifications are listed in the following tables: The following table shows the power specifications.
Parameter Operating Power, Nominal Operating Power Range Maximum Power Drain Connection Fuse Specification 12 or 24 Vdc or Vac 9 ... 30 Vdc; 9-24 Vac 3W Screw Terminals External, supplied by customer. Fuse value according to supply voltage (see Maximum Power Drain). Screw terminals provided for power ground and safety (Earth) ground
Grounding
Environmental
Ethernet Interface
16
Getting Started
Serial Interface
Packaging
Agency Approvals
17
Getting Started
LEDs
Overview The device contains the following LEDs: l Two Green (R for ready, L for link) l Three yellow (A for active, serial transmit, and serial receive) l One Red (F for fault) The following is a diagram of the LEDs.
READY FAULT
F A R L RESET
RECEIVE TRANSMIT
RS232 RS485
ACTIVE LINK
10/100BASE-T
MODBUS
Simultaneously lit F (Red) and R (Green) LEDs means something is wrong. If the F (Red) LED is lit or blinking, count the number of times the R (Green) LED blinks between its pauses. Several possible blink patterns, detailed in the following table, indicate which fault condition exists.
LED Steady F (Red) and Blinking R (Green) Error 1 blink = EPROM checksum error 2 blinks = RAM error 3 blinks = Token Ring error 4 blinks = EEPROM checksum error 1 blink = Faulty network connection 2 blinks = No DHCP response 4 blinks = Setup Mode
18
Getting Started
Dimensions
Overview The figure below shows the dimensions of the Bridge.
R L
95 mm (3.7 in)
35 mm (1.4 in)
60 mm (2.4 in)
19
Getting Started
Power Requirements
Overview The Bridge is normally powered by the same 12Vor 24VDC supply that powers other devices in your panel. Many AC-powered industrial controllers also supply 24VDC for use by field devices. The Bridge is not shipped with a separate power supply, but any power supply between 9-30VDC or 9-24VAC can be used. The unit requires a maximum of 3 Watts. The diagram below shows the power supply.
20
21 DC-
22 GND
20
Getting Started
Reset Switch
Overview The unit has a reset switch located on the front panel, above the red LED, as shown in the following diagram. RESET
F A
RESET R L
21
Getting Started
22
2
At a Glance
Overview Whats in this Chapter? This chapter describes how to install the Bridge hardware. This chapter contains the following topics:
Topic Mounting the Bridge on the DIN Rail Connecting the Power Wiring Setting the Serial Port Switch RJ-45 Serial Connector Connect the Serial Cable (RJ45 Port) Compatible Modbus Devices and Cables Modbus Cable Pinouts Connecting the Serial Cable (Screw Terminals) Ethernet Interface Connecting the Ethernet Cable Methods of Assigning the IP Address Page 24 26 27 28 29 31 33 36 39 40 41
23
WARNING Communication Disruption Hazard Connecting any device to an active Ethernet network can disrupt communication on the network. Before you connect the Bridge to your network, and before you apply power, contact your network administrator and ensure that your network application will not be affected. Failure to follow this precaution can result in death, serious injury, or equipment damage.
WARNING Duplicate Address Hazard Having two or more devices with the same IP address can cause unpredictable operation of your network. Ensure that you are assigning a unique IP address to the Bridge. Failure to follow this precaution can result in death, serious injury, or equipment damage.
24
The Bridge is designed for mounting on a standard 35 mm DIN rail (DIN EN SO 022).
l Note the slot on the Bridges rear panel. Position the top edge of the slot over the
top edge of the DIN rail.
l Snap the Bridge into place on the lower edge of the rail.
The figure below shows how to mount the Bridge
Mounting
Completed
25
Earth ground
26
Refer to the figure below for the Serial Port Switch settings.
27
28
RJ45 to RJ45 Cables 110 XCA 282 01 (3 ft./ 1 m) 110 XCA 282 02 (10 ft./ 3 m) 110 XCA 282 03 (20 ft./ 6 m)
TSX Momenum M1
Null
29
This connection assumes you are connecting a typical PC (COM1) to the 174 CEV 300 20 through the serial RJ-45 connector. See the pinout and cable diagrams below.
4 6 3 2 5 7 8 DTR (Out) DSR (In) TXD (Out) RXD (In) Signal Ground RTS (Out) CTS (In) 1 2 3 4 5 6 7 8 No Connection DTR (Out) RXD (In) TXD (Out) Signal Ground CTS (In) RTS (Out) No Connection
SERIAL RJ-45
GND 1 3 4 5 RXD 8
TXD
DSR
SERIAL RJ-45
30
Modbus Modem, Variable Modem Control D 184/384 Controller Modbus Interface Micro 84 Controller Modbus Interface P190 Programming Panel 984A, B, X Controller 584A, L, M Controller E E E E E (cable AS-W192XXX with adapter 110 XCA204 02) F (see Connecting the Serial Cable, p. 29 for other wiring alternatives.) G G G G G G G G G G H 31
--
ASP892000 140 CPU 424 xx 140 CPU 534 xx PC0984xxx PCA984xxx PCE98424x/25x PCE984455 PCM984xxx NWBM85xxxx --110 VPU 192 00
890USE19500 September 2003
ASCII/RIO Interface Quantum Controller, 486 Quantum Controller, 586 984 Controller, 38x/48x/68x/78x Slot Mount 984 Controller, Compact 984 Controller, Compact 984 Controller, 484 Replacement Micro984 Controller BM85 Bridge Multiplexer Generic Modbus Serial Device, 9Pin Programmer, Handheld
Device Description Twido PLC 884 Controller TSX Controllers, Modbus Interface
Note: Use cable ASW192XXX with Adapter 110 XCA 204 02, pinouts in Cable E in the figure in Modbus Cable Pinouts, p. 34 .
Note: TSX Controller products offer multiple options for cable connection to the Bridge.
32
33
Adapter Kit: 110 XCA 203 01 DB9M Wire RJ45 Red Black Green White
Adapter Kit: 110 XCA 203 02 DB9F Wire RJ45 Red Black Orange Green Shield White
Shield
Adapter Kit: 110 XCA 203 01 DB9M Wire RJ45 Red Black Green Yellow Brown White
Adapter Kit: 110 XCA 203 01 DB9M Wire RJ45 Red Black Green Orange Yellow Brown White
Shield
Adapter Kit: 110 XCA 204 01 DB25M Wire RJ45 White Red Black Green
Shield
Adapter Kit: 110 XCA 204 01 DB25M Wire RJ45 Red Black Blue Green Orange Yellow Brown White
34
The following figure shows the layout of DB9RJ45 and DB25RJ45 Adapter Kits available from Schneider Automation. Each kit contains three jumper wires and a pin insertion tool. Follow the pinout diagrams in the figure in Modbus Cable Pinouts, p. 34 for assembling the adapter for your product
DB9M (110 XCA 203 02) Pin 1
Pin 1 DB9F (110 XCA 203 02) DB25M (110 XCA 204 01) Pin 1
Pin 1
Pin 1
35
Note: For RS-485 2-wire functionality, pins 1 & 4 and 2 & 3 of the screw terminals must be connected together.
Note: Termination resistors (R = 120 ) are used to match impedance of a node to the impedance of the transmission (TX) line. Termination resistors should be placed only at the extreme ends of the data line, and no more than two terminations should be placed in any single segment of a RS-485 network. The terminator resistors may not be needed for your application.
36
Refer to the following figure for connection of serial cables at the Bridges wiring terminals.
Signal Ground
RxD 1
CTS 2
RTS 3
TxD 4
RS-232
Terminating Resistor 120 1/8 W R Data+ DataR Signal Ground RxDR RxD+ TxD+ TxDR Signal Ground
RS-485
2-Wire
RS-485 / RS-422
4-Wire
37
This connection assumes that you are connecting a typical PC (COM1) to the 174 CEV 300 20 bridge through the serial screw terminals.
5 DTR CTS 8 RTS DSR 7 6 9 4 RXD 3 2 1 TXD RXD GND TXD GND
The following diagram and pinout shows RS-485 (4-wire) Momentum cabling.
Note: 1. Special cable. See cable pinouts. 2. 170 XTS 041 00 (RJ45) or 170 XTS 040 00 (DB9) - RJ45 T connector 3. 170 MCI 020 10 straight through interconnect cable 4. 170 XTS 021 00 RS485 terminator resistor pack
M1
1 2 3 6 5
RJ45
6 3 4 7 5
Screw Connectors
1 2 3 4 8
Signal
RX RX + TX + TX -
* *
Ethernet Interface
Overview The 124 CEV 300 20 supports 10/100Mbit Ethernet through its RJ-45 (10BaseT/ 100BaseTX) connector. The following table shows the Ethernet interface signals.
Signal Name TX+ TXRX+ RXDIR Out Out In In PIN 1 2 3 6 Primary Function Transmit Data + Transmit Data Differential Ethernet Receive Data + Differential Ethernet Receive Data -
The following drawing shows a typical RJ-45 connector. The color is not standard but is very typical of an Ethernet Patch cable. Pin 1 is located at the top of the connector (Orange + White). The view is from the end of the connector.
Orange + White Orange Green + White Blue Blue + White Green Brown + White Brown
39
40
AutoIP
BootP
DHCP
The unit ships with a default IP address of 0.0.0.0, which automatically enables DHCP. Provided a DHCP server exists on the network, it will assign the unit an IP address, gateway address, and subnet mask when the unit boots up. The Bridge has acquired an IP address if the red LED stops flashing and the green Status LED is on continuously. (If no DHCP server exists, the unit responds with a diagnostic error: the red Diagnostic LED blinks continuously, and the green Status LED blinks five times. This blinking only continues for about 15 seconds.) Note: This DHCP address will not appear in the units standard configuration screens. You can determine your units DHCP-assigned IP address from the DHCP server.
41
DHCP Naming
There are three methods for assigning DHCP names to these products. 1. Default DHCP name. If you do not change the DHCP name, and you are using an IP of 0.0.0.0, then the DHCP name will default to CXXXXXX (XXXXXX is the last 6 digits of the MAC address shown on the label on the bottom/side of the unit). For example, if the MAC address is 00-20-4A-12-34-56, then the default DHCP name is C123456. 2. Numeric DHCP name. You are able to change the DHCP name by specifying the last octet of the IP address. When you use this method, the DHCP name will be BRIDGEYY where YY is what you chose for the last octet of the IP address. If the IP address you specify is 0.0.0.12, then the DHCP name will be BRIDGE12. This method will only work with 2 digit numbers (0-99).
AutoIP
The unit ships with a default IP address of 0.0.0.0, which automatically enables Auto IP within the unit. AutoIP is an alternative to DHCP that allows hosts to automatically obtain an IP address in smaller networks that may not have a DHCP server. A range of IP addresses (from 169.254.0.1 to 169.254.255.254) has been explicitly reserved for AutoIP-enabled devices. The range of Auto IP addresses is not to be used over the Internet. If your unit cannot find a DHCP server, and you have not manually assigned an IP address to it, the unit automatically selects an address from the AutoIP reserved range. Then, your unit sends out a (ARP) request to other nodes on the same network to see whether the selected address is being used.
l If the selected address is not in use, then the unit uses it for local subnet
communication.
l If another device is using the selected IP address, the unit selects another
address from the AutoIP range and reboots itself. After reboot, the unit sends out another ARP request to see if the selected address is in use, and so on. AutoIP is not intended to replace DHCP. The unit will continue to look for a DHCP server on the network. If a DHCP server is found, the unit will switch to the DHCP server-provided address and reboot. Note: If a DHCP server is found, but it denies the request for an IP address, the unit does not attach to the network, but waits and retries. AutoIP can be disabled by setting the units IP address to 0.0.1.0. This setting enables DHCP but disables AutoIP.
42
3
At a Glance
Overview Whats in this Chapter? This chapter describes how to configure the Bridge. This chapter contains the following topics:
Topic Before You Start Connecting by the RS-232 Port Connecting by Telnet (IP Address Not Assigned) Connecting by Telnet (IP Address Assigned) Using the Configuration Menu Option 1: Network IP Settings Option 2: Serial and Mode Settings Option 3: Modem Control Settings Option 4: Advanced Modbus Protocol Settings Option 5: Unit ID to IP Address Mapping Table Page 44 45 46 47 48 51 54 55 56 59
43
WARNING Duplicate Address Hazard Having two or more devices with the same IP address can cause unpredictable operation of your network. Ensure that you will be assigning a unique IP address to the Bridge. Failure to follow this precaution can result in death, serious injury, or equipment damage.
l l l l l l l l l l l
Ethernet IP address Ethernet Gateway address if applicable to your Bridges network. Serial port interface: RS232, RS422, RS485. Serial port communication: Baud rate, Data bits, Parity mode, Stop bits. Serial port modem controls: RTS/CTS timing values. Serial port device: Modbus Master or Modbus Slave. Modbus Protocol: RTU or ASCII. Modbus Timeout values: Character timeout, Message timeout. Modbus Slave only: Address source from Unit_ID header, or Fixed address. Modbus Slave only: Allowing broadcasts to serial port: Enable or Disable. Modbus Master only: Mapping of Modbus Slave addresses to IP addresses.
44
Baud Rate:
9600
Advanced
Restore Defaults
OK
Cancel
Help
l Ensure the emulator is connected to the Bridges serial port and ready. l Hold down the X key on your emulator keyboard. While holding the key
down,initialize the Bridge by cycling its power or by pressing its Reset button. The Bridge will enter its configuration mode, and you will see this opening screen: Schneider Automation, Inc. Modbus Bridge (174 CEV 300 20) Serial Number 101161 Software Version V01.00 (990402) Press Enter to go into Setup Mode, wait to close At this screen, press <Enter> to go to the Configuration Menu. See Using the Configuration Menu, p. 48 for more information.
45
46
Connect
Cancel
When the connection is established, you should see the Bridges opening screen: Schneider Automation, Inc. Modbus Bridge (174 CEV 300 20) Serial Number 101161 Software Version V01.00 (990402) Press Enter to go into Setup Mode, wait to close At this screen, press Enter to go to the Configuration Menu (see Using the Configuration Menu, p. 48).
47
48
If the serial port has already been configured for a Modbus Master device, menu item 4 will omit references to a Slave device, showing only the following: 4) Advanced Modbus Protocol Settings: MB/TCP Exception Codes ..... Yes (return 0x0A and 0x0B) Character, Message Timeout ... 00050 ms, 01000 ms Menu item 5 will show current mapping between Modbus addresses and IP addresses. 5) Unit ID > IP Address Table: (followed by the current mapping table). Close Idle Sockets ........ 10sec 001-001: 192.168.000.022
Configuration Options:1-5
l Network IP Settings (see Option 1: Network IP Settings, p. 51). l Serial and Mode Settings (see Option 2: Serial and Mode Settings, p. 54). l Modem Control Settings (see Option 3: Modem Control Settings, p. 55). l Advanced Modbus Protocol Settings (see Option 4: Advanced Modbus Protocol
Settings, p. 56).
l Unit ID/IP Address Table (see Option 5: Unit ID to IP Address Mapping Table,
p. 59).
Viewing and Changing Configuration Parameters When you view the Bridges configuration parameters, you can retain their current values or change them. Retaining the Current Value In all cases, if you press Enter when the current value is displayed, you will retain the current value. For example, if the Bridges current values are as shown below, pressing Enter at each field will retain that current value: IP Address : (192) .(168) .(001) .(023) Changing a Value To change a value, type the new value into the field at the point shown on your screen. For example, to change the Bridges IP address to: 192.168.1.24: IP Address : (192) .(168) .(001) .(023) 24
49
In this example, you would type the 24 immediately following the (023). Then press Enter for the Bridge to accept your entry. Commands: Default Settings, Save, Quit Without Save These are your commands:
l S S)ave: Stores the current settings into the Bridges memory, and exits the
configuration. The Bridge will restart immediately using the current settings.
l Q Q)uit: Exits the configuration. The Bridge will restart immediately using the
settings it had prior to the last Save.
50
l through the menu by entering an address l by setting a DHCP server (see DHCP, p. 41) l by setting a BootP server l by using the AutoIP method (see AutoIP, p. 42)
When you select option 1 on the configuration menu, the Bridge gives you the ability to configure all Ethernet parameters. An example is shown below: IP Address (192).(168).(001).(008) Set Gateway IP Address (Y)Y Gateway IP Address: (192).(168).(001).(001) Set Netmask (N for default)(Y)Y (255).(255).(255).(000) Change telnet config password (N)Y Enter new Password: mart IP Address The four entry fields for the IP address are shown as parenthesis ( ). To retain the Bridges current IP address, just press Enter at each field. To assign a new IP address, enter it into each field. IP 0.0.0.0.0: Note that setting the IP address to all zero (0.0.0.0) causes the Bridge to be in an "Address Not Assigned" status. It reports its address as: 0.0.0.0/DHCP/BOOTP/ AutoIP. The Gateway IP Address is used only if your Ethernet network is larger than one continuous network (it contains subnetworks).
51
Each node within the subnetwork can directly reach all the other nodes within the same subnetwork. If the Bridges subnetwork has a gateway to another subnetwork, the Gateway IP Address parameter identifies the gateways address.
52
Set Netmask
If the Bridges subnetwork has a gateway node, the Bridge needs to know how to recognize which IP addresses it can communicate with directly on its own subnetwork and which addresses it must refer to the gateway node. The Netmask (subnetwork mask) specifies which portion of the an IP address defines devices on the local subnetwork, and which portion defines the entire subnetwork the devices are on. By comparing IP addresses with the subnetwork mask, the Bridge can determine which addresses are on its subnetwork and which are not. Users can define different subnetwork masks to support their requirements. For example, common "Class C" IP addresses assume a default subnetwork mask of0xFFFFFF00 or 255.255.255.0, using the lower 8 bits for the host part of the IP address. This allows up to 255 devices on the local subnetwork. If you want to have multiple subnetworks with up to 32 devices on each, the subnetwork mask could define 5 "host" bits or 255.255.255.224. With this setting, the decimal value 224 configures the lower 8 bits of the address, with the upper 3 of these bits addressing up to 8 subnetworks, and the lowest 5 bits forming the part of the address for the 32 local devices. If you wish to specify a subnetwork mask, enter Y at the menu prompt and then enter your values for the mask. Enter N to use the default subnetwork mask of 255.255.255.0.
Setting the Telnet configuration password prevents unauthorized access of the setup menu via a Telnet connection to port 9999 or via Web pages. The password is limited to four characters. An enhanced password setting of 16 characters is available under Security Settings for Telnet access only. Passwords are alphanumeric and case sensitive. Note: No password is required to access the Setup Mode window via a serial connection.
53
Serial Protocol
Interface Type
l Baud rate: 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 l Data bits: 7, 8 l Parity: E, O, N l Stop bits: 1, 2
54
RTS/CTS Mode
55
Slave Device
This parameter specifies whether the Bridge may allow a Modbus Broadcast message to be sent to Slave devices at its serial port, or not allow those messages. Broadcast messages are those received by the Bridge containing a Unit_ID of 0 (zero). If Modbus Broadcasts are allowed, broadcast messages are passed to the serial port as received with the Unit_ID contents of 0 (zero). If Modbus Broadcasts are not allowed, the Unit_ID in the message is disregarded and the message is sent to Slave address 1 at the serial port. The default is to not allow Broadcast messages to the serial port.
This parameter defines if the bridge will send 0A and 0B modbus exception response codes if a connection cannot be established. If a Modbus Serial Master is attached, then disabling this option will prevent the Bridge from reporting a failed attempt to contact a TCP/IP device, the Bridge will also suppress any 0A and 0B responses received from the ethernet interface. The serial Master will instead see just silence and will experience a normal message timeout. This setting is useful for serial masters that cannot handle the 0A and 0B codes.If a Modbus Serial Slave is attached then these codes will be reported back to the Modbus TCP/IP device initiating a request to the Serial device.
This parameter will set the Bridge to disable Modbus TCP pipelining. Pipelining occurs when a Modbus TCP device sends more than one outstanding request to another device using a single socket connection. The MODBUS TCP/IP specification does not define this as valid operation, however some devices will attempt this. As the Modbus TCP device can send requests faster than the Bridge can retrieve answers from the attached serial devices, the message que will become clogged with old requests and retries. Disabling the pipeline forces the Bridge to only act on the most recent message in the queue. Other messages are discarded. This option must be used with caution, an alternate solution that should be attempted is to set the timeout of the modbus TCP/IP request to less than the message timeout set for the serial connection.
57
Character Timeout
This parameter sets the timeout value between successive characters in messages. If this timeout is exceeded, the Bridge returns an error response to the originating Master. Typically RTU protocol already contains a 3.5 character timeout, but some serial devices might have internal interrupts or other delays which can cause pauses of 5 to 10 characters during transmission. This parameter can be set to accommodate those devices. The allowable range is 10 ... 1275 msec in 5 msec increments. The default is 50 msec.
Message Timeout
This parameter sets the timeout value for the expected response from a Slave device. If a response is not received within this time, the Bridge continues with other tasks if any are pending from other Master devices. The Master application must provide its own method of handling the message timeout. The allowable range is 500 ... 60000 msec (0.5 ... 60 sec) in 250 msec increments. The default is 5000 msec (5 sec).
This parameter sets a delay value that is used to activate TX after an RX signal is received. The setup option Swap 4x/0x to get 3x/1x allows you to have the Bridge translate Modbus command Read Holding Reg (03) into Read Input Reg (04) or command Read Coil (01) into Read Input (02). You must set the corresponding Swap Offset to a non-zero value in setup. The Swap Offset entered is 0-based like the protocol. Setting an offset of 1 maps a Read Holding Reg of 400002-409999 to a Read Input Reg of 300001-309998. Setting an offset of 1000 maps a Read Holding Reg of 401001-409999 to a Read Input Reg of 300001-308999.
58
59
If you have configured the serial port for a Modbus Master, and have entered your mapping, it will appear on the Bridges initial Configuration Menu. Here is an example. Example: Mapping Serial Address to IP Address 5) Unit ID > IP Address Table: Close Idle Sockets ......... 10 sec 001010: 192.168.001.000+SLV 011011: 192.168.001.111 012012: 192.168.001.142 Close Idle TCP sockets after (3-60 sec, 0=leave open) (10) (Set 4th octet to 0 to use Slave Address as part of IP) This configuration will map Modbus serial address 001-010 to IP address 10.143.128.001 - 10.143.128.010. Modbus Serial address 5 will be mapped to IP address 10.143.128.5. It maps Slave address 11 to IP address 192.168.1.111. It maps Slave address 12 to IP address 192.168.1.142.
This parameter defines how long the bridge should hold open an Idle Modbus TCP/ IP socket that has been initiated by a Modbus Serial Master. When you select option 5 on the Configuration Menu, the Bridge displays it current mapping. Then it prompts: A)dd, D)elete, E)xit select function: Adding a New Map Entry Press A to add a new entry into the mapping table. The Bridge will prompt you to enter the new mapping values. The values will go into the first available (empty) table location. Here is an example: Modbus addr from (000): 1 Modbus addr to (000): 1 Slave IP address (192) .(168) . (001) .(020) Deleting a Map Entry Press D to delete an entry from the mapping table. The Bridge will prompt you to enter the number of the table location you want to delete. Here is an example: Delete entry number: 1
60
Changing an Existing Map Entry If you want to change an existing entry in the mapping table, you must first delete that entry and then add your changes as a new entry.
l Press D to delete the current entry from the table. l Press A to add a new entry into the table, supplying the values for the new entry.
Exit the Mapping Menu Press E to exit Mapping Table menu and return to the initial Configuration Menu. The Configuration Menu will display the new mapping. Note that when you return to the Configuration Menu, you must select Save on that menu to save the address mapping in the Bridges memory. Selecting Save will also restart the Bridge. See Using the Configuration Menu, p. 48 for a description of the Configuration Menu.
61
62
4
At a Glance
Overview Whats in this Chapter? This chapter describes how to use panel software. This chapter contains the following topics:
Topic Using Concept or ProWORX Using Other Software Page 64 66
63
Panel Software
l Protocol: TCP/IP l Dest_Port: 502 l Dest_Index: Modbus Slave Address l TCP/IP Address: as required
In ProWORX NxT, go to the Communication Setup screen. In the Interface section of the window, select Ethernet Gateway. Under Ethernet Gateway type, choose CEV 300 10, IP Addresss: xxxx, Timeout = 00x. In ProWORX 32, go to Communications Setup and select the Gateway tab. Under Resource Type, select Gateway Type and NR&D MEB under Setting. Note: The Bridge contains an internal Slave Address configuration option which might affect the delivery of messages to a Slave device at its serial port. With this option, the Bridge may be configured internally to use the Dest_Index address exactly as received in the message, or it may be configured to steer all messages to a fixed Slave address, ignoring the Dest_Index address.
This is an additional explanation of how the Bridge uses the Modbus Slave address. In a Modbus TCP message sent to the Bridge, the Slave address (defined in Concept as the Dest_Index address, or in ProWORX NxT as Device # in Select Modbus Device window, or in ProWORX 32 under Index in the Communications Setup window) is stored in the Unit_ID field of the message. This field is used to address a unique Slave device on a Modbus network which may contain multiple Slave devices. The Bridges internal configuration contains a Slave Address parameter which can be set to override the Unit_ID address received in the message. If the parameter is set to 0 (zero), the message will be delivered to the Slave device whose address is defined in the Unit_ID field. If the parameter is set to a nonzero value (range 1 ... 255), the message will be delivered to the Slave device at that numerical address, regardless of the contents of the Unit_ID field.
64
Panel Software
For example: If you are accessing the device at Modbus Slave address 34, you must
l set the Dest_Index field to 34 l ensure the Bridges internal Slave Address parameter is configured to 0 (zero)
65
Panel Software
66
Glossary
A
Address On a network, the identification of a station. In a frame, a grouping of bits that identifies the frames source or destination. Application Program Interface. The specification of functions and data used by one program module to access another; the programming interface that corresponds to the boundary between protocol layers. Address Resolution Protocol. A network layer protocol used to determine the physical address which corresponds to the IP address for a host on the network. ARP is a subprotocol which operates under TCP/IP. Protocol that allows devices at either end of a link segment to advertise and negotiate modes of operation such as speed of link, flow control, or half or full duplex operation. Ability of a 10/100 Ethernet device to interpret the speed or duplex mode of the attached device and to adjust to that rate. Automatic determination and matching of transmission speed. AutoIP is an alternative to DHCP that allows a computer to automatically obtain an IP DHCP server available to perform that function.
API
ARP
Auto-Negotiate
Auto-sense
Autobaud AutoIP
67
Glossary
B
Backbone Bandwidth on Demand The main cable in a network. Feature that allows a remote access device to initiate a second connection to a particular site to increase the amount of data transferred to that site to increase the desired threshold. The network manager configuring the remote access server will specify a number of bits or a percentage of connection bandwidth threshold which will trigger the secondary connection. Multilink PPP is an emerging standard to allow this feature to be interoperable, but right now the only way to ensure correct operation is to use devices on both end from the same vendor. A LAN that uses a single carrier frequency over a single channel. Ethernet, Token Ring and Arcnet LANs use baseband transmission. Unit of signal frequency in signals per second. Not synonymous with bits per second since signals can represent more than one bit. Baud equals bits per second only when the signal represents a single bit. Binary, machine readable forms of programs that have been compiled or assembled. As opposed to Source language forms of programs. Characteristic of having only two states, such as current on and current off. The binary number system uses only ones and zeros. The smallest unit of data processing information. A bit (or binary digit) assumes the value of either 1 or 0. A block is a variable-size piece of memory that a task can acquire. Blocks are allocated from heaps.] A standardized connector used with Thinnet and coaxial cable. Bootstrap Protocol. A TCP/IPbased protocol that allows a host to configure itselfdynamically. Provides a means to assign a host its IP address, typically without user intervention. Bits per second. A device that connects two or more physical networks which use the same protocol. Bridges read frames and decide whether to transmit or block them based on their destination address.
Baseband LAN
Baud
Binaries
Binary
Bit
Block
BNC BOOTP
Bps Bridge
68
Glossary
Broadband
A data transmission technique allowing multiple high-speed signals to share the bandwidth of a single cable via frequency division multiplexing. A network that uses multiple carrier frequencies to transmit multiplexed signals on a single cable. Several networks may coexist on a single cable without interfering with one another. A device that routes specific protocols, such as TCP/IP and IPX, and bridges other protocols, thereby combining the functions of both routers and bridges. A LAN topology in which all the nodes are connected to a single cable. All nodes are considered equal and receive all transmissions on the medium. A data unit of eight bits.
Broadband Network
Brouter
Bus
Byte
C
Channel Client Coaxial Cable The data path between two nodes. A computer process requesting service from other computer processes. An electrical cable with a solid wire conductor at its center surrounded by insulating materials and an outer metal screen conductor with an axis of curvature coinciding with the inner conductor - hence "coaxial." Examples are standard Ethernet cable and Thinwire Ethernet cable. The result of two network nodes transmitting on the same channel at the same time. The transmitted data is not usable. A signal indicating that one or more stations are contending with the local stations transmission. The signal is sent by the Physical layer to the Data Link layer on an Ethernet/IEEE 802.3 node. A dedicated, standalone system that manages communications activities for other computers. Carrier Sense Multiple Access with Collision Detection is the Ethernet media access method. All network devices contend equally for access to transmit. If a device detects another devices signal while it is transmitting, it aborts transmission and retries after a brief pause.
Collision
Collision Detect
69
Glossary
Cut-through
Technique for examining incoming packets whereby an Ethernet switch looks only at the first few bytes of a packet before forwarding or filtering it. This process is faster than looking at the whole packet, but it also allows some bad packets to be forwarded.
D
Data Link Data Link Layer A logical connection between two nodes on the same circuit. Layer 2 of the seven-layer OSI reference model for communication between computers on networks. This layer defines protocols for data packets and how they are transmitted to and from each network device. It is a medium-independent, linklevel communications facility on top of the Physical layer, and is divided into two sublayers: medium-access control (MAC) and logical-link control (LLC). The IP address of the network or host to which all packets addressed to an unknown network or host are sent. The default gateway is typically a router or other device. The destination field in a Modbus message. Corresponds to the Modbus deviceaddressed in the message. Dynamic Host Configuration Protocol. A network protocol used to configure IP addresses dynamically. DHCP is an extension of BOOTP. A security feature that ensures people do not log into modems that they shouldnt have access to. When a connection is requested, the system checks the user name for validity, then "dials back" the number associated with that user name. Domain Name System. A protocol within TCP/IP used to find IP addresses based on host names. The transfer of a file or information from one network node to another.
default gateway
Dest_idx
DHCP
Dialback
DNS
Download
E
End Node A node such as a PC that can only send and receive information for its own use. It cannot route and forward information to another node.
70
Glossary
Ethernet
The most popular LAN technology in use today. The IEEE standard 802.3 defines the rules for configuring an Ethernet network. It is a 10 Mbps, CSMA/CD baseband network that runs over thin coax, thick coax, twisted pair or fiber optic cable.
F
FDDI Fiberoptic Data Distribution Interface. A cable interface capable of transmitting data at 100 Mbps. Originally specified for fiber lines, FDDI can also operate over twistedpair cable for short distances. A transmission medium composed of a central glass optical fiber cable surrounded by cladding and an outer protective sheath. It transmits digital signals in the form of modulated light from a laser or LED (light-emitting diode). A logical grouping of contiguous bits that convey one kind of information, such as the start or end of a message, an address, data or an error check. A computer that stores data for network users and provides network access to that data. Process whereby an Ethernet switch or bridge reads the contents of a packet and then finds that the packet does not need to be forwarded, drops it. a filtering rate is the rate at which a device can receive packets and drop them without any loss of incoming packets or delay in processing. Alterable programs in semipermanent storage, e.g., some type of read-only or flash reprogrammable memory. Process whereby an Ethernet switch or bridge reads the contents of a packet and then passes that packet on to the appropriate attached segment. A forwarding rate is the time that it takes the device to execute all of the steps. A group of bits which form a discrete block of information. Frames contain networkcontrol information or data. The size and composition of a frame is determined by the network technology being used. Two common framing types are Ethernet II and IEEE 802.3. File Transfer Protocol. A networking protocol used to exchange files between stations on a network or over the Internet.
field
File Server
Filtering
Firmware
Forwarding
Frame
71
Glossary
Full-Duplex
G
Gateway A device which connects networks with dissimilar network architectures and which operates at the Application Layer. This term may refer to a router.
H
Header The initial part of a data packet or frame containing identifying information such as the source of the data, its destination, and length. Ethernet defined SQE signal quality test function. A node on a network. A list of TCP/IP hosts on the network along with their IP addresses. A domain name given to a specific computer on a network and used to address that computer. HyperText Transport Protocol. A protocol used to deliver hypertext documents. A device which connects a series of flexible and centralized modules to create a network.
HTTP hub
I
ICMP Internet Control Message Protocol. A protocol within TCP/IP used to report errors in datagram transmission. The IEEE (Institute of Electrical and Electronic Engineers) standard that defines the CSMA/CD media-access method and the physical and data link layer specifications of a local area network. Among others, it includes 10BASE2, 10BASE5, 10BASEFL and 10BASE-T Ethernet implementations.
IEEE 802.3
72
Glossary
Internet Internetworking
The global interconnection of TCP/IP based computer communication networks. A term for all the concepts, technologies, and devices that allow people and their computers to communicate across different kinds of networks. Internet Protocol. A common network layer protocol. IP is most often used with TCP. Internet Protocol Address. A 32bit address assigned to hosts using TCP/IP.
IP IP Address
L
Layer In the OSI model, a portion of the structure of a device which provides defined services for the transfer of information.
M
MAC Address Media Access Control address. The hardware address of a device. A MAC address is assigned to an Ethernet TCP/IP module in the factory.
N
network Interconnected devices sharing a common data path and protocol for communication. An addressable device on a communications network.
node
O
OSI Model Open System Interconnection model. A reference standard describing the required performance of devices for data communication. Produced by the International Standards Organization.
73
Glossary
P
packet PING The unit of data sent across a network. Packet Internet Groper. A program used to test whether a destination on a network can be reached. An access point for data entry or exit within a host using TCP services. Describes message formats and a set of rules used by two or more devices to communicate using those formats.
port protocol
R
repeater A device that connects two sections of a network and conveys signals between them without making routing decisions or filtering packets. A device that connects two or more sections of a network and allows information to flow between them. A router examines every packet it receives and decides whether to block the packet from the rest of the network or transmit it. The router will attempt to send the packet through the network by the most efficient path.
router
S
server Provides services to clients. This term may also refer to the computer on which the service is based. The association of a port with an IP address, serving as an identification of sender or recipient. The software code which implements the protocol being used. In the case of the NOE modules it is TCP/IP. Shielded Twisted Pair. A type of cabling consisting of several strands of wire surrounded by foil shielding, twisted together.
socket
stack
STP
74
Glossary
subnet
A physical or logical network within an IP network, which shares a network address with other portions of the network. Used to indicate which bits in an IP address identify a subnet. A network device which connects two or more separate network segments and allows traffic to be passed between them. A switch determines whether a frame should be blocked or transmitted based on its destination address.
T
TCP TCP/IP Transmission Control Protocol. A protocol suite consisting of the Transmission Control Protocol and the Internet Protocol; the suite of communications protocols on which the Internet is based.
U
UDP URL UTP User Datagram Protocol. A protocol which transmits data over IP. Uniform Resource Locator. The network address of a file. Unshielded Twisted Pair. A type of cabling consisting of insulated cable strands which are twisted together in pairs.
W
Winsock The Microsoft implementation of the Windows Sockets networking API based on the Berkeley UNIX Sockets interface for supporting TCP/IP. World Wide Web. A hypertextbased, distributed information system in which clients and servers are freely available.
WWW
75
Glossary
76
Index
B C A
configuration changing parameters, 49 check list, 44 commands, 50 Ethernet and serial port parameters, 44 options, 49 configuration menu example, 48 option 1 (network IP settings), 51 option 2 (serial mode setting), 54 option 3 (modem control settings), 55 option 4 (advanced Modbus protocol settings), 56 option 5 (unit ID to IP address mapping table), 59 connecting by Telnet (IP address assigned), 47 by Telnet (IP address not assigned), 46 Ethernet cable, 40 RS-232 port, 45 serial cable, 29
A
advanced Modbus protocol settings allow Modbus broadcasts, 57 character timeout, 58 close idle TCP sockets after, 60 disable Modbus TCP pipeline, 57 Master device, 56 MB/TCP 0x0B/0x0A exception responses, 57 message timeout, 58 Slave address, 56 Slave device, 56 Agency approvals, 17 ARP, 42 AutoIP, 42
B
Bridge. See Modbus to Ethernet Bridge Bridge specifications Agency approvals, 17 environmental, 16 Ethernet interface, 16 packaging, 17 power, 16 serail interface, 17
D
DB to RJ45 adapter kit, 35 DHCP description, 41 DHCP naming naming methods, 42
C
cables and devices, 31 Concept, version 2.1 or higher, 64
77
Index
E
environmental specifications, 16 Ethernet address label, 24 Ethernet cable connecting, 40 description, 40 illustration, 40 Ethernet interface specifications, 16
F
front panel layout, 14
G
Gateway IP address, 51
Modbus to Ethernet Bridge applications, 10 cables and devices, 31 conecting serial cables, 37 configuration check list, 44 description, 10 dimensions, 19 Ethernet address, 24 forcing into configuration mode, 45 installation, 11 LEDs, 18 mounting, 25 power wiring, 26 using Modbus Slave address, 64 modem control settings example, 55 RTS/CTS model, 55 mounting the Bridge, 25
I
IP address, 51 IP address, assigning, 41
N
Netmask, 53
L
LEDs description, 18 diagram, 18 errors, 18
P
packaging specifications, 17 power requirements, 20 power specifications, 16 power supply, diagram, 20 power wiring description, 26 diagram, 26 ProWORX 32, version 1.0 or higher, 64 ProWORX NxT, version 2.2 or higher, 64
M
mapping for Modbus Master device, 12 for Modbus Slave device, 12 message routing events, 13 Mobus Slave device mapping, 12 Modbus cable pinouts, 34 Modbus Master device mapping, 12 Modbus port. See RJ45 port
R
reset switch, 21 RJ-45 Ethernet connector diagram, 39 signals, 39 RJ45 port connecting, 29 illustration, 29 RJ-45 serial connector, 28
78
Index
W
wiring serial cable illustration, 37
S
screw-terminal connectors functions, 36 serial cable wiring, 37 serial interface specifications, 17 serial mode setting attached device, 54 entering serial parameters, 54 example, 54 interface type, 54 serial protocol, 54 serial port. See RJ45 port serial port switch illustration, 27 setting, 27 setting Gateway IP address, 51 IP address, 51 Netmask, 53 serial mode, 54 serial port switch, 27 software (other), using, 66 specifications Bridge specifications, 16
T
Telnet configuration password, changing, 53 Telnet host requirement, 46, 47
U
unit ID to IP address mapping table description, 59 entering new address mapping, 60 examples, 60
79
Index
80