Advantis
Advantis
Advantis
Advantys ETB
IP67 Ethernet Block I/O Modules for Modbus TCP/IP User Guide
7/2009
EIO0000000158.00
www.schneider-electric.com
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 help ensure compliance with documented system data, only the manufacturer should perform repairs to components. When devices are used for applications with technical safety requirements, the relevant instructions must be followed. 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 information can result in injury or equipment damage. 2009 Schneider Electric. All rights reserved.
EIO0000000158 7/2009
Table of Contents
Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 1 Introducing the Advantys ETB I/O Modules. . . . . . . . . .
Features of the Advantys ETB I/O Modules . . . . . . . . . . . . . . . . . . . . . . . System View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Advantys ETB for Modbus TCP/IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 7 9
10 11 15
23
24 26 27 28 30 31
Chapter 3 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1 Using the Embedded Web Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Accessing the Embedded Web Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . General Information: IP / Physical Information Page . . . . . . . . . . . . . . . . General Information: Password Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring IP Address Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Introducing IP Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Recommended Practices for IP Configuration . . . . . . . . . . . . . . . . . . . . . Configuring IP Parameters Using Web Pages . . . . . . . . . . . . . . . . . . . . . Configuring IP Parameters Using HMI Push Buttons . . . . . . . . . . . . . . . . IP Address: TCP Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring Module Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Recommended Practices for Configuring Module Settings. . . . . . . . . . . . Configuring I/O for ETB1EM16CP00. . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring the Watchdog. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Mounting the Module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connecting Cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
33
34 35 37 38 39 40 41 42 46 48 49 50 51 54
3.2
3.3
57
58 59
EIO0000000158 7/2009
63
64 65
Chapter 6 Application Example: Configuring the Advantys ETB I/O Module for use with a Quantum Processor . . . . . . . . . . .
6.1 Configuring IP Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Accessing the Embedded Web Pages. . . . . . . . . . . . . . . . . . . . . . . . . . . Setting a Static IP Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2 Configuring the I/O and Watchdog in Unity Pro . . . . . . . . . . . . . . . . . . . . Recommended Practices for Using the PLC . . . . . . . . . . . . . . . . . . . . . . Introducing the Unity Pro Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Declaring Variables in Unity Pro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring I/O Scanning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Resetting the Watchdog with Structure Text Code . . . . . . . . . . . . . . . . . Configuring I/O with Function Block Code . . . . . . . . . . . . . . . . . . . . . . . .
67
68 69 71 72 73 74 75 79 80 82
Chapter 7 Diagnostics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.1 LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LED Behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Scrolling LED Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2 Diagnostic Web Pages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I/O Data: I/O Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I/O Data: I/O Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diagnosis: Ethernet Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diagnosis: Network Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
87
88 89 91 92 93 94 96 98
99
99
Appendices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Appendix A Process Image Maps for the Advantys ETB I/O Modules
Modbus Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Data Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Data Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ethernet Configuration Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module Status Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module Information Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I/O and Watchdog Configuration Registers . . . . . . . . . . . . . . . . . . . . . . .
103
105
106 107 108 110 111 112 113
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
115 121
EIO0000000158 7/2009
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.
EIO0000000158 7/2009
PLEASE NOTE Electrical equipment should be installed, operated, serviced, and maintained only by qualified personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material. A qualified person is one who has skills and knowledge related to the construction and operation of electrical equipment and the installation, and has received safety training to recognize and avoid the hazards involved.
EIO0000000158 7/2009
At a Glance
Document Scope Advantys ETB IP67 Ethernet modules are block I/O with embedded 2-port Ethernet switches. The modules are intended for high-moisture environments, and they provide connectivity to sensors/actuators through Ethernet Modbus messaging. This document describes the following ETB IP67 models:
Model Number ETB1EM16CP00 ETB1EM16EPP0 ETB1EM12E04SPP0 ETB08E08SPP0 Description 16 I/O points, each point configurable as input or output 16 PNP inputs / 0 outputs 12 PNP inputs / 4 PNP outputs 8 PNP inputs / 8 PNP outputs
Validity Note User Comments We welcome your comments about this document. You can reach us by e-mail at techcomm@schneider-electric.com.
EIO0000000158 7/2009
EIO0000000158 7/2009
Overview This chapter introduces the Advantys ETB I/O family of modules for Modbus TCP/IP networks. What's in this Chapter? This chapter contains the following topics:
Topic Features of the Advantys ETB I/O Modules System View Advantys ETB for Modbus TCP/IP Page 10 11 15
EIO0000000158 7/2009
Introduction
10
EIO0000000158 7/2009
Introduction
System View
Description Advantys ETB I/O modules can be used with a protocol compliant scanner as part of control system architecture. The modules built-in unmanaged 2-port Ethernet switch allows you to use the network topology that meets your application needs. These topologies include the following: z star z daisy-chain z combination of star and daisy-chain Star Star topology allows you to connect mixed I/O blocks or additional network equipment. Performing maintenance on one modulefor example, by removing the network cable, or by cycling power to the moduledoes not affect other modules.
1 2 3 4 5
Quantum PLC Ethernet switch Advantys STB Island Magelis HMI device Advantys ETB I/O modules
EIO0000000158 7/2009
11
Introduction
Daisy-chain You can create a daisy-chain topology by using the modules embedded switch ports to connect a series of up to 8 Advantys ETB I/O modules. NOTE: When considering the daisy chain topology, note that:
z
Performing maintenance on any module not physically located at the end of the daisy chainfor example, by removing the network cable, or by cycling power to the moduleaffects any modules located down the chain from the maintained module. The embedded dual port Ethernet switch located in each module eliminates the need for additional Ethernet switches.
1 2 3
12
EIO0000000158 7/2009
Introduction
Combination of Star and Daisy-chain Combining star and daisy-chain topology allows you to connect Advantys ETB I/O modules with mixed I/O blocks or additional network equipment.
1 2 3 4 5 6
Quantum PLC Advantys STB Island Ethernet switch Altivar drive Advantys ETB I/O modules Magelis HMI device
EIO0000000158 7/2009
13
Introduction
Application This diagram shows you an example of how to arrange your Advantys ETB I/O modules in a daisy-chain topology.
1 2 3 4 5 6 7 8
cabinet mounted PLC Ethernet interface module on PLC system Ethernet adapter Ethernet connector cable 24 VDC power supply Note: Alternatively, the power supply could be mounted in the cabinet. power supply cable machine Advantys ETB I/O modules mounted on machine
14
EIO0000000158 7/2009
Introduction
1. PNP Inputs refer to the sensor source or push current from the field sensor to the input circuit of the module. 2. PNP Outputs are the source type output, also referred to as true high output. When energized, the output pushes current through the load to turn on the output point.
EIO0000000158 7/2009
15
Introduction
Cables and Accessories The Modbus TCP/IP product line includes the following cables and accessories:
Type sensing cables Model Number ETXSC412M1M3010 ETXSC412M1M3020 ETXSC412M1M3050 Description I/O cable - M12 connector - 1 m (3.28 ft) long I/O cable - M12 connector - 2 m (6.56 ft) long I/O cable - M12 connector - 5 m (16.40 ft) long Image
I/O cable - Ultra-Lock and M12 connector - 1 m (3.28 ft) long I/O cable - Ultra-Lock and M12 connector - 2 m (6.56 ft) long I/O cable - Ultra-Lock and M12 connector - 5 m (16.40 ft) long I/O cable - Ultra-Lock and M12 connector -1 m (3.28 ft) long I/O cable - Ultra-Lock and M12 connector - 2 m (6.56 ft) long I/O cable - Ultra-Lock and M12 connector - 5 m (16.40 ft) long I/O splitter cable - Ultra-Lock 1 end, M12s other end - 30 cm (0.98 ft) long
A B
16
EIO0000000158 7/2009
Introduction
Description 7/8 mini-change 5 pin power cable, female straight connector, single ended, 4 m (13.12 ft) long 7/8 mini-change 5 pin power cable, straight connectors, 1 m (3.28 ft) long 7/8 mini-change 5 pin power cable, straight connectors, 2 m (6.56 ft) long 7/8 mini-change 5 pin power cable, straight connectors, 5 m (16.40 ft) long
Image
7/8 mini-change 5 pin power cable, 90 connectors, 0.6 m (1.97 ft) long 7/8 mini-change 5 pin power cable, 90 connectors, 1 m (3.28 ft) long 7/8 mini-change 5 pin power cable, 90 connectors, 2 m (6.56 ft) long 7/8 mini-change 5 pin power cable, 90 female connector, single ended, 2 m (6.56 ft) long 7/8 mini-change 5 pin power cable, 90 female connector, single ended, 4 m (13.12 ft) long auxiliary power tee, 7/8 mini-change 5 Pin, straight connector
ETXPC511M400040
power tee
ETXPA513M
power receptacle
EXTPA511M3
auxiliary power receptacle, 7/8 minichange 5 Pin, straight female connectors field attachable connector, 7/8 minichange 5 Pin, straight male connectors field attachable connector, 7/8 minichange 5 Pin, straight female connectors
field attachables
ETXPA5M1
ETXPA5M3
EIO0000000158 7/2009
17
Introduction
Description 4 pin Ethernet cable, M12 D coded male to M12 D coded male, 90 connectors, 0.6 m (1.97 ft) long 4 pin Ethernet cable, M12 D coded male to M12 D coded male, 90 connectors, 1 m (3.28 ft) long 4 Pin Ethernet Cable, M12 D coded male to M12 D coded male, 90 connectors, 2 m (6.56 ft) long straight Ethernet patch cord, RJ45 male to M12 D coded 4 pole male, 1 m (3.28 ft) straight Ethernet patch cord, RJ45 male to M12 D coded 4 pole male, 3 m (9.84 ft) straight Ethernet patch cord, RJ45 male to M12 D coded 4 pole male, 10 m (32.81 ft) straight Ethernet patch cord, RJ45 male to M12 D coded 4 pole male, 25 m (82.02 ft) straight Ethernet patch cord, RJ45 male to M12 D coded 4 pole male, 40 m (131.23 ft) straight Ethernet patch cord, M12 D coded 4 pole male to M12 D coded 4 pole male, 1 m (3.28 ft) straight Ethernet patch cord, M12 D coded 4 pole male to M12 D coded 4 pole male, 3 m (9.84 ft) straight Ethernet patch cord, M12 D coded 4 pole male to M12 D coded 4 pole male, 10 m (32.81 ft) straight Ethernet patch cord, M12 D coded 4 pole male to M12 D coded 4 pole male, 25 m (82.02 ft) straight Ethernet patch cord, M12 D coded 4 pole male to M12 D coded 4 pole male, 40 m (131.23 ft)
Image
TCSECL2M2M1S2
TCSECL2M2M2S2
TCSECL1M3M25S2
TCSECL1M3M40S2
TCSECL1M1M1S2
TCSECL1M1M3S2
TCSECL1M1M10S2
TCSECL1M1M25S2
TCSECL1M1M40S2
18
EIO0000000158 7/2009
Introduction
Description sealing plug for M12 connectors - 10 per package sealing plug for 7/8 mini-change connectors external - 1 per package sealing plug for 7/8 mini-change connectors internal - 1 per package adapter RJ 45 to M12, for panel mounting
Image
adapter
ETXADRJM12
EIO0000000158 7/2009
19
Introduction
20
EIO0000000158 7/2009
Introduction
EIO0000000158 7/2009
21
Introduction
22
EIO0000000158 7/2009
Overview This chapter describes the physical, electrical, and environmental characteristics of the Modbus TCP/IP modules. What's in this Chapter? This chapter contains the following topics:
Topic Specifications Front Face Size and Dimensions Connector Pin Assignments I/O Assignments HMI Display Page 24 26 27 28 30 31
EIO0000000158 7/2009
23
Specifications
Description The specifications for each Modbus TCP/IP module are listed below:
CAUTION
Equipment Damage Do not unplug the cables while the module is powered, as this may damage the module's connectors. Failure to follow these instructions can result in equipment damage.
Data
Model Number ETB1EM16EPPO ETB1EM08E08SPP0 8 8 ETB1EM12E04SPPO 12 4 ETB1EM16CP00 16 configurable input and output points
Inputs Outputs Ethernet connector I/O connector Power in (left) connector Power out (right) connector Module and input power Output power Output current Short circuit current (typical) Output switching frequency Output voltage: onstate drop/point Output type Input signal voltage (0) Input signal voltage (1) Input filter 24
16 0
M12/Ultra-Lock (female D-Code) M12/Ultra-Lock (A-Code) mini Change 5 Pole (male) mini Change 5 Pole (female) 24 VDC (13...30V) N/A N/A N/A N/A N/A N/A -2V...5V 10V...30V 2.5 ms configurable
EIO0000000158 7/2009
24 VDC (13...30V) 2.0 A / point Sum = 8A Max 6.5 A 200 Hz 1 Vdc sourcing (PNP)
Data
Input short circuit (per point) Input current (per point) Input type
600 mA; 24 Vdc current limit on pin 1 (per port) 140 mA PNP PNP/NPN configurable
Operating temperature -25 C...+70 C Storage temperature Vibration resistance EMC Protection class MTBF -40 C...+85 C conforms to IEC68-2-6 EN 61000-6-2 IP67 296,000 hours at 30 C GB (ground benign)
EIO0000000158 7/2009
25
Front Face
Description The front face of the module includes the mounting holes, connectors, port connector labels, LEDs, push buttons, and the HMI display. The details and locations of these features are shown below.
1 2
five mounting holes, including the center one two 5-pin power connectors including input (left) and output (right) to connect the next module in the system 3 three power LEDs: O = output; PWR = not used; I = both input and module 4 sixteen I/O point LEDs 5 eight 5-pin I/O port connectors numbered from bottom to top (2 points per port connector) 6 eight white port labels 7 two buttons for selecting the method of IP address assignment 8 four-character scrolling display 9 two Link LEDs 10 two 4-pin Ethernet network connectors
NOTE: The MAC address label is located on the back of the module.
26
EIO0000000158 7/2009
32.3 1.3
60.0 2.4
5.0 0.2
103.0 4.1
31.5 1.2 20.0 0.8 33.0 1.3 43.0 1.7
107.0 4.2
210.0 8.3
220.0 8.7
EIO0000000158 7/2009
27
1 2 3 4 5
Output Power 0 Vdc Module/Input Power 0 Vdc Protective Earth (PE) Module/Input Power 24 Vdc Output Power 24 Vdc
I/O Port Connectors The following figure displays an ETB I/O port connector on the left of the module and its corresponding point assignments. Note that the port connectors on the right side of the module are rotated 90 counter-clockwise from the ones on the left.
1 2 3 4 5
28
EIO0000000158 7/2009
Ethernet Network Connectors The following figure shows the pin assignments of the two Ethernet Network connectors on the module.
1 2 3 4
EIO0000000158 7/2009
29
I/O Assignments
Description The I/O assignments for the modules with fixed I/O sizes are as follows:
Connector Number
Connector Number
12 In 4 Out
12 In 4 Out
8 In 8 Out
Out 2 Out 1 In 10 In 9 In 6 In 5 In 2 In 1
In 14 In 13 In 10 In 9
Port 7
Port 8
In 16 In 15 In 12 In 11 In 8 In 7 In 4 In 3
Out 4 Out 3 In 12 In 11 In 8 In 7 In 4 In 3
In 6
Port 4
Port 1
Port 2 2A Point 4
30
EIO0000000158 7/2009
8 In 8 Out
16 In
16 In
Point
Point
HMI Display
Introduction The Advantys ETB I/O modules include a 4-character scrolling display with 2 push buttons. Use these tools to configure certain IP address (see page 46) parameters and view diagnostic LED messages (see page 91).
1 2 3
EIO0000000158 7/2009
31
32
EIO0000000158 7/2009
Configuration
3
Overview This chapter shows you how to configure the IP and I/O settings for your module. Note that the Application (see page 67) chapter provides examples of configuring these settings. What's in this Chapter? This chapter contains the following sections:
Section 3.1 3.2 3.3 Topic Using the Embedded Web Pages Configuring IP Address Settings Configuring Module Settings Page 34 39 49
EIO0000000158 7/2009
33
Configuration
3.1
Overview Advantys ETB I/O modules contain embedded web pages. This section introduces these web pages and shows you how to manage your password. The remaining web pages are described elsewhere in this document. What's in this Section? This section contains the following topics:
Topic Accessing the Embedded Web Pages General Information: IP / Physical Information Page General Information: Password Setup Page 35 37 38
34
EIO0000000158 7/2009
Configuration
Remember my password
OK
Cancel
Enter the factory default settings for User name and Password:
z User name: admin z Password: admin
NOTE: If you previously changed the password, you must instead enter the new password in this dialog box.
EIO0000000158 7/2009
35
Configuration
Step 4
192.168.1.1
Click on a specific web page description on the left side to open that page.
36
EIO0000000158 7/2009
Configuration
IP Address
192.168.1.1
EIO0000000158 7/2009
37
Configuration
38
EIO0000000158 7/2009
Configuration
3.2
Introduction This section shows you how to configure the Advantys ETB I/O modules: IP parameters for the Advantys ETB I/O module, and z the IP address for an optional Master IP device
z
EIO0000000158 7/2009
39
Configuration
Introducing IP Parameters
Introduction The module can obtain its IP address from any one of the following 3 sources:
z
a static IP address, stored locally on the module, that can be either: z a user-defined value, or z the factory default value of 192.168.1.1 a DHCP server a BootP server
z z
You can select the source of the IP address by using either: z web pages (see page 42) z HMI push buttons (see page 46) NOTE: Stop I/O communication with the module before you attempt to change the IP parameters, as no such changes are possible during I/O communication. NOTE: Assign a unique IP address to each Advantys ETB I/O module before connecting it to your network. Do not simultaneously connect multiple unconfigured Advantys ETB I/O modules to your network, because each unconfigured module is set to the same factory IP address of 192.168.1.1. NOTE: Your IP address changes take effectand are displayed on the modules 4character scrolling HMI panelwhen they are made. You do not need to power cycle the module.
40
EIO0000000158 7/2009
Configuration
EIO0000000158 7/2009
41
Configuration
Accessing the IP Configuration Page To access the IP Configuration embedded web page for IP parameter configuration:
Step 1 Action Access the embedded web pages (see page 35) using the modules present IP addressinitially the factory default address of 192.168.1.1. The Home page opens. On the left side of the web page, under IP Address, select IP Configuration. Make your edits in the IP Configuration page.
2 3
42
EIO0000000158 7/2009
Configuration
Step 4
Action After your edits are complete, click Apply to save the new IP configuration. The following dialog opens:
Microsoft Internet Explorer
If the IP address is modified, you will lose the Ethernet connection. Do you want to continue?
OK
Cancel
Click OK to accept your IP parameter changes. NOTE: If you changed the actual IP address assigned to the module, you must point your browser to that new address to continue viewing the web pages.
Configuring User-Defined Static IP Parameters After accessing the IP Configuration page, configure user-defined static IP parameters as follows:
Step 1 2 3 Action Stop all other communication with the module. In the IP Configuration page, select Static IP. Type in values for the following IP parameters: IP Address Subnet Mask Gateway Address, optional 4 4 decimal octet values from 0...255. 4 decimal octet values from 0...255. 4 decimal octet values from 0...255.
Click Apply to save your static IP parameters. The following dialog opens:
Microsoft Internet Explorer
If the IP address is modified, you will lose the Ethernet connection. Do you want to continue?
OK
Cancel
5 6 7
Click OK to accept your IP parameter changes. Look at the modules scrolling 4-character HMI to confirm that the intended IP address is displayed. Connect to the module using the new IP address.
EIO0000000158 7/2009
43
Configuration
Applying the Factory Default Static IP Address After accessing the IP Configuration page, apply the factory default static IP address as follows:
Step 1 2 Action Stop all other communication with the module. In the IP Configuration page, select Factory IP. NOTE: This also sets the Subnet Mask to 255.255.255.0 and the default Gateway Address to 0.0.0.0. Click Apply to save the factory default IP address of 192.168.1.1.
Microsoft Internet Explorer
If the IP address is modified, you will lose the Ethernet connection. Do you want to continue?
OK
Cancel
4 5 6
Click OK to accept your IP parameter changes. Look at the modules scrolling 4-character HMI to confirm that the factory default IP address is displayed. Connect to the module using the factory default IP address of 192.168.1.1.
Configuring the Module to Receive IP Parameters from a DHCP Server After accessing the IP Configuration page, configure the module to receive its IP address from a DHCP server as follows:
Step 1 2 3 Action Stop all other communication with the module. In the IP Configuration page, select DHCP Client. Type in a Device Name, up to eight alphanumeric characters including underscores. NOTE: If the Device Name field is left blank, the DHCP server assigns IP parameters based on the modules MAC address. Click Apply to save your IP parameter changes.
Microsoft Internet Explorer
If the IP address is modified, you will lose the Ethernet connection. Do you want to continue?
OK
Cancel
44
EIO0000000158 7/2009
Configuration
Step 5 6 7 8 9
Action Click OK to accept your IP parameter changes. Configure your DHCP server to serve a constant IP address based either upon a MAC address or a Device Name. Physically connect the module to the network. Look at the modules scrolling 4-character HMI to confirm that the intended IP address is displayed. Connect to the module using the new IP address.
Configuring the Module to Receive IP Parameters from a BootP Server After accessing the IP Configuration page, configure the module to receive IP parameters from a BootP server as follows:
Step 1 2 3 Action Stop all other communication with the module. In the IP Configuration page, select BootP Client. Click Apply to save your changes.
Microsoft Internet Explorer
If the IP address is modified, you will lose the Ethernet connection. Do you want to continue?
OK
Cancel
4 5 6 7 8
Click OK to accept your IP parameter changes. Configure your BootP server to serve a constant IP address based upon the MAC address of the module. Physically connect the module to the network. Look at the modules scrolling 4-character HMI to confirm that the intended IP address is displayed. Connect to the module using the new IP address.
EIO0000000158 7/2009
45
Configuration
46
EIO0000000158 7/2009
Configuration
Step 4
Action Select the desired source of IP address from the list: xxx This selection displays the last octet of the present IP address. Make this selection with the push buttons and: z use either the left or right push button to toggle the last octet of the IP address to a number from 1 to 254 z use your PCs web browser to navigate to the IP Configuration page where you can configure the Subnet Mask and Gateway Address parameters. Make this selection with the push buttons and:
z configure a DHCP server with the MAC address or Device
DHCP
Name, and
z use your PCs web browser to navigate to the
IP Configuration page where you can enter the Device Name if necessary. BootP Make this selection with the push buttons and configure a BootP server with the MAC address and IP parameters for this module. This selection applies the factory IP address, Subnet Mask, Gateway Address, and Device Name.
FACTORY 5
When the desired source displays on the HMI, remove pressure from the push button to select it as the new source of the IP address. Your IP addressing changes will be applied 3 seconds after you remove pressure from the push button. Look at the modules 4-character HMI to confirm that the desired IP address has been applied. Replace the plastic cover with a Phillips screwdriver. Connect to the module using the new IP address.
6 7 8
EIO0000000158 7/2009
47
Configuration
Identifying a Master Controller Use the Master Controller IP Address field to enter the IP address of master device. This device is exclusively permitted to execute write commands to the modules outputs. Other devices can still read the module information. Changes made to the Master Controller IP Address field take effect when you click Apply. If the value of this field remains set to the default of 0.0.0.0, no master device is identified, and any device can execute write commands to the modules outputs. TCP Connection Data The TCP Connection page displays the following statistics describing the modules TCP connection:
Field Current TCP Connection Total TCP Connection TCP Time-out Description This shows the number of presently open TCP connections. This shows a count of TCP connections since the last Refresh command or power cycle. This shows a count of times that communications have been lost since the last Refresh command or power cycle.
48
EIO0000000158 7/2009
Configuration
3.3
Overview This section shows you how to use the embedded web pages to configure the following: z I/O assignments for the module with configurable I/O z watchdog settings for Modbus TCP/IP modules What's in this Section? This section contains the following topics:
Topic Recommended Practices for Configuring Module Settings Configuring I/O for ETB1EM16CP00 Configuring the Watchdog Page 50 51 54
EIO0000000158 7/2009
49
Configuration
50
EIO0000000158 7/2009
Configuration
WARNING
UNINTENDED EQUIPMENT OPERATION If the point is connected to a sensor and used as an input, do not write a 1 to the corresponding output bit of the process image, as this can conflict with the current state of the input. Failure to follow these instructions can result in death, serious injury, or equipment damage. In addition to configuring the I/O Type (described above) for each point, you can also configure the following settings that apply to all inputs: z Input Type: PNP or NPN z Input Filter: the minimum time periodin millisecondsan input signal must persist in order for the module to recognize it as valid (and not merely noise). There are two methods to configure the I/O settings of the module. Regardless of which method you use, you must configure all I/O settings. z PLC z embedded web pages PLC You can use the PLC to set the I/O configuration. When a configurable I/O point set to auto-configurationacts as an output, that output value will appear in both the input and output process images. This is also true for the pre-configured modules. For example, with the ETB1EM08E08SPP0 module, the output shows as an echo in the input process image. Configuring I/O settings via the PLC simplifies module replacement because the configuration is stored on the PLC and does not have to be re-configured in the web pages when a module is replaced. Refer to the application example (see page 72) to configure ETB1EM16CP00 in Unity Pro with a Quantum PLC via a NOE 771 01 communications module.
EIO0000000158 7/2009
51
Configuration
Web Pages The IN/OUT Configuration page displays the configuration of the modules input and output points. This page is configurable for ETB1EM16CP00, and read only for all other modules.
52
EIO0000000158 7/2009
Configuration
After you access the embedded web pages (see page 35), you can configure the I/O settings for ETB1EM16CP00 as follows:
Step 1 2 Action Navigate to the IN/OUT Configuration page by clicking the left pane of the main web page. Select an I/O Type for each point: z IN: the selected point is configured as an input z OUT: the selected point is configured as an output z IN/OUT: the selected point will auto-configure as an: z input, if it detects that it is connected to a sensor, or z output, if it detects that it is connected to an actuator Select the Input Type for all points acting as inputs:
z PNP z NPN
z z z z z z z
Select an Input Filter value. Valid values include: 0 ms 0.5 ms 1 ms 1.5 ms 2 ms 2.5 ms 5 ms Click Apply to save your I/O configuration changes.
NOTE: If the module needs to be replaced, you need to re-configure the replacement module with the same parameters.
EIO0000000158 7/2009
53
Configuration
Watchdog Behavior
The Watchdog Status is: z inactive (off), if the module remains in communication with the Modbus master, and z active (on), if communication with the Modbus master is lost You can configure watchdog settings using either: z the PLC, or z the modules embedded web pages PLC Configuring the watchdog settings via the PLC simplifies module replacement because the configuration is stored on the PLC and does not have to be reconfigured in the web pages when a module is replaced. Refer to the application example (see page 72) to configure the module in Unity Pro with a Quantum PLC via a NOE 771 01 communications module.
54
EIO0000000158 7/2009
Configuration
Web Pages In the Watchdog / Error page, you can: configure watchdog settings for the module, and z view the watchdog state (active or inactive) of the module.
z
EIO0000000158 7/2009
55
Configuration
After accessing the embedded web pages (see page 35), select Watchdog / Error on the left to open the Watchdog / Error web page, where you can configure watchdog behavior:
Step 1 Action Type in an integer value from 0 to 65535 for Watchdog Timeout. This value will be multiplied by 100 ms to determine the timeout. NOTE: Setting the timeout value to 0 disables the watchdog. The default timeout is 10 x 100ms = 1s. Select a watchdog behavior:
z Apply Output Fallback Value: to place each output into its fallback state,
or
z Hold Output Value: to have each output maintain its pre-existing state
For each point configured as an output, select a Fallback Value describing the behavior of that point if the module enters a fallback state: z 0 = off z 1 = on NOTE: These behaviors will only be applied if Apply Output Fallback Value is selected.
56
EIO0000000158 7/2009
4
Overview This chapter describes how to mount the module and attach the cables. What's in this Chapter? This chapter contains the following topics:
Topic Mounting the Module Connecting Cables Page 58 59
EIO0000000158 7/2009
57
Installation
58
EIO0000000158 7/2009
Installation
Connecting Cables
Introduction Connect the cables to complete the physical installation of the module. The chapter I/O Wiring Diagrams (see page 64) shows a diagram using Schneider Electric cables (see page 16).
WARNING
Personal Injury Make sure you disconnect the power before attaching any cables. Failure to follow these instructions can result in death, serious injury, or equipment damage.
Step 1 2 3 4 5
Action Attach a PE ground cable per your local electric code. Connect I/O cables. Connect Ethernet network cables. Connect the power cables. Cover unused ports with sealing plugs.
EIO0000000158 7/2009
59
Installation
1 2 3 4
Physical Earth (PE) two 5-pin power connectors including input (left) and output (right) eight 5-pin I/O port connectors (2 points each) two 4-pin Ethernet network connectors
Ground Cable Attach the module to a ground cable with a ring or spade connector at the PE size M3 screw (1 in the above diagram). Refer to your electric code for proper grounding instructions. I/O Cables Connect I/O cables to the module (3 in the above diagram) by either screwing a threaded connector to the inside of the port, or by pressing an Ultra-Lock connector over the outside of the port. Depending on your application needs, you may elect to use I/O splitter cables. Ethernet Network Cables Connect Ethernet network cables to the module (4 in the above diagram) by screwing a threaded connector to the inside of the port.
60
EIO0000000158 7/2009
Installation
Power Cables Connect the power cable (2 in the above diagram) by using a threaded cable connector and screwing it to the outside (power input connector) or inside (power output connector) of the module power connector. Sealing Plugs Cover unused ports with sealing plugs. Not covering ports in harsh environments may cause contaminants to come in contact with internal components of the module.
WARNING
Equipment Damage Make sure you cover unused ports with sealing plugs to maintain the IP67 rating of the modules. Failure to follow these instructions can result in death, serious injury, or equipment damage.
To cover this connector... M12 connectors (Ethernet and I/O ports) 7/8 external connectors (power input port) 7/8 internal connectors (power output port)
EIO0000000158 7/2009
61
Installation
62
EIO0000000158 7/2009
5
At a Glance This chapter shows you examples of how to connect Schneider Electric cables to your module. IEC I/O wiring diagrams are also available for your reference. What's in this Chapter? This chapter contains the following topics:
Topic Module Wired with Schneider Electric Cables IEC I/O Wiring Diagrams Page 64 65
EIO0000000158 7/2009
63
1 2 3 4
ETXSC413U1M3003: I/O splitter cable, Ultra-Lock 1 end and M12s other end ETXSC412M1M3010: I/O cable, M12 connectors ETXSC412U1M3010: I/O cable, Ultra-Lock 1 end and M12 other end I/O
64
EIO0000000158 7/2009
NOTE: These diagrams are here for your convenience and to aid in troubleshooting. 2 Outputs Use this diagram to field-wire two actuators to a module using 2 outputs per port.
3(-)
4(+)
5(PE)
2(+)
3(-)
2 Inputs Use this diagram to field-wire two sensors to a module using 2 inputs per port.
3(-)
4( ) 1(+)
5(PE)
2( )
3(-)
EIO0000000158 7/2009
65
1 Input and 1 Output The ETB1EM16CP00 is a configurable module that allows you to connect to any combination of up to 16 inputs or outputs. This diagram shows a connection where an input and output are connected to a single port.
3(-)
4( ) 1(+)
5(PE)
2(+)
3(-)
66
EIO0000000158 7/2009
Application Example: Configuring the Advantys ETB I/O Module for use with a Quantum Processor
Overview This chapter presents a sample configuration of the ETB1EM16CP00 configurable I/O module, connected to a Quantum PLC via a NOE 771 01 communications module. The application example shows you how to configure the modules: IP parameters, using the modules embedded web pages, and z I/O and watchdog settings, using Unity Pro running on a PC connected to the Quantum PLC
z
EIO0000000158 7/2009
67
Application
6.1
Configuring IP Parameters
Introduction This application example uses the ETB1EM16CP00 modules embedded web pages to configure its IP parameters. What's in this Section? This section contains the following topics:
Topic Accessing the Embedded Web Pages Setting a Static IP Address Page 69 71
68
EIO0000000158 7/2009
Application
Remember my password
OK
Cancel
Enter the following factory default settings: z User name: admin z Password: admin
EIO0000000158 7/2009
69
Application
Step 4
192.168.1.1
Click on IP Configuration on the left side of this screen to open the page where you can configure IP addressing parameters (see page 71).
70
EIO0000000158 7/2009
Application
Click Apply to save your static IP configuration settings. The following dialog opens:
Microsoft Internet Explorer
If the IP address is modified, you will lose the Ethernet connection. Do you want to continue?
OK
Cancel
EIO0000000158 7/2009
71
Application
6.2
Introduction This section of the application example shows you how to use Unity Pro to configure the ETBE1M16CP00 modules inputs, outputs and watchdog settings. What's in this Section? This section contains the following topics:
Topic Recommended Practices for Using the PLC Introducing the Unity Pro Project Declaring Variables in Unity Pro Configuring I/O Scanning Resetting the Watchdog with Structure Text Code Configuring I/O with Function Block Code Page 73 74 75 79 80 82
72
EIO0000000158 7/2009
Application
I/O Data While in normal operation, continually monitor the global status of the module before trusting input data and writing output data. z If the global status is 0, you can write I/O data. z If the global status is 1, do not write I/O data, as the information should not be trusted and the actuator may not turn on. Code Writing Review module configuration at startup and after any system interruption. The PLC reads the module settings and compares the data to the configuration assignments. z If the data matches: z You can trust the data that is read from the module.
z z
If the data does not match: z Do not write new data on the PLC. z Instead, rewrite the configuration assignments to the module. z Read back the data to confirm a match. z If the data matches, you can trust the information read from the module and can write new data on the PLC.
EIO0000000158 7/2009
73
Application
Project Components The application example includes the following components, created in Unity Pro and described in the remainder of this section: z declaration of variables (see page 75), used in the program z I/O scanning (see page 79) by the PLC of module registers z structured text (see page 80) programming, designed to reset the watchdog if communications between the PLC and the module are lost and then restored z function block (see page 82) programming, designed to download the I/O and watchdog settings from the PLC to the module, whenever the PLC detects the values of these settings in the module differ from the same settings stored in the PLC
74
EIO0000000158 7/2009
Application
Name
%MW 611
health of first entry in scanner system bit : goes high on first scan after start local variable for Watchdog reset ST manual toggle for testing ETB config read /write
%MW 601
%MW 591
Of the variables declared above and used in the program, the following variables are of particular significance.
EIO0000000158 7/2009
75
Application
ETB_Configuration This variable array holds the I/O point and watchdog configuration values that are stored in the PLC. It is also used as the Databuf parameter of a MPB_MSTR function block that writes these stored values to the ETBE1M16CP00 module when the module is initialized, and whenever an I/O or watchdog setting in the PLC differs from the same setting in the module.
Name ETB_Configuration ETB_Configuration[1] ETB_Configuration[2] ETB_Configuration[3] ETB_Configuration[4] ETB_Configuration[5] ETB_Configuration[6] ETB_Configuration[7] Type ARRAY[1..40] OF INT INT INT INT INT INT INT INT Address %MW 501 %MW 501 %MW 502 %MW 503 %MW 504 %MW 505 %MW 506 %MW 507 Value 10 0 0 0 0 0 0 Comment Watchdog Value Watchdog State Watchdog Behavior Reserved State of the Firmware Fallback Value for Point 1.A Fallback Value for Point 1.B
1 1 1 1
Fallback Value for Point 8.A Fallback Value for Point 8.B I/O Configuration for Point 1.A I/O Configuration for Point 1.B
%MW 536 %MW 537 %MW 538 %MW 539 %MW 540
1 0 0 0 0
I/O Configuration for Point 8.A I/O Configuration for Point 8.B PNP - NPN Type Input Filter Delay Reserved
Config_Read_Databuf This variable array holds the I/O point and watchdog configuration values that are periodically read from the ETBE1M16CP00 module, using a MBP_MSTR function block. This data is compared against the data stored in the ETB_Configuration variable array to check the accuracy of the modules configuration.
76
EIO0000000158 7/2009
Application
Config_Read_Control This variable array holds the Control parameter elements of a MBP_MSTR block used to read the I/O and watchdog settings in the ETBE1M16CP00 module.
Name Config_Read_Control Config_Read_Control[1] Config_Read_Control[2] Config_Read_Control[3] Config_Read_Control[4] Config_Read_Control[5] Config_Read_Control[6] Config_Read_Control[7] Config_Read_Control[8] Config_Read_Control[9] Type ARRAY[1..9] OF INT INT INT INT INT INT INT INT INT INT Address %MW 581 %MW 581 %MW 582 %MW 583 %MW 584 %MW 585 %MW 586 %MW 587 %MW 588 %MW 589 Value 2 39 2050 16#0300 192 168 1 21 Comment Operation type: 2 = READ Error status Number of registers to read Starting register to read Routing register MSB = 3 for NOE Byte 4 of IP address Byte 3 of IP address Byte 2 of IP address Byte 1 of IP address
Config_Write_Control This variable array also contains the Control parameter elements of a MBP_MSTR block, but in this case for the purpose of performing a write operation. In this case, the contents of the ETB_Configuration variable array are written to the ETBE1M16CP00 module when: z the module is initialized, or z the PLC detects that an I/O or watchdog setting in the PLC differs from the same setting in the module This variable array writes to the same module address ranges that are read by the Config_Read_Control variable array. The values of the elements are also the same as the Config_Read_Control variable array, except that the first elementthe Operation typeis set to 1, indicating a write operation.
EIO0000000158 7/2009
77
Application
Watchdog_Write_Control This variable array contains the Control parameter elements of a MBP_MSTR block. It operates in conjunction with both the structured text and a MBP_MSTR function block to toggle the save client configuration bit ON or OFF, which must be performed after communications are restored and before resuming normal operations. Unlike the Config_Read_Control and Config_Write_Control variable arrays, the Watchdog_Write_Control variable array writes to a single register.
Name Watchdog_Write_Control Watchdog_Write_Control[1] Watchdog_Write_Control[2] Watchdog_Write_Control[3] Watchdog_Write_Control[4] Watchdog_Write_Control[5] Watchdog_Write_Control[6] Watchdog_Write_Control[7] Watchdog_Write_Control[8] Watchdog_Write_Control[9] Type ARRAY[1..9] OF INT INT INT INT INT INT INT INT INT INT Address %MW 591 %MW 591 %MW 592 %MW 593 %MW 594 %MW 595 %MW 596 %MW 597 %MW 598 %MW 599 Value 1 1 2049 16#0300 192 168 1 21 Comment Operation type: 1 = WRITE Error status Number of registers to read Starting register to read Routing register MSB = 3 for NOE Byte 4 of IP address Byte 3 of IP address Byte 2 of IP address Byte 1 of IP address
ETB_Input_Data This variable array holds the data returned by scanning the ETBE1M16CP00 modules inputs. Although the scan includes 36 words of input data, only array element 36watchdog stateis relevant to this application example, as it is used in the structured text code.
78
EIO0000000158 7/2009
Application
EIO0000000158 7/2009
79
Application
Watchdog_Write_Enable
BOOL
80
EIO0000000158 7/2009
Application
The following structured text code, executed in multiple scans, employs the above described variables and operates in conjunction with a MBP_MSTR function block to detect the watchdog state and toggle the save module configuration command, as explained below:
IF NOT FirstPass AND ETB_Read_Input _Data [36] = 1 THEN Watch Dog_Reset := 1; Watchdog _Write _Enable := 1; FirstPass := TRUE; ELSIF FirstPass AND ETB_Read _Input _Data[36] = 0 THEN Watch Dog_Reset := 0; Watchdog _Write _Enable := 1; FirstPass := FALSE ; END_IF;
The following is an example of how this code should execute: Scan 1: The conditions required by the IF NOT line are satisfied, because: z the variable FirstPass is false (by default), and z the variable ETB_Read_Input_Data[36]the watchdog stateis active Consequently, the next 3 lines of code execute: z the Watchdog_Write_Enable Boolean is turned ON, triggering the operation of a MBP_MSTR block z the Watchdog_Reset Boolean is set to 1, toggling ON the save module configuration register when the MBP_MSTR block executes The conditions required by the ELSIF line are not yet met, because the watchdog has not yet been set to inactive. Scan 2 (or later): The conditions required by the IF NOT line are no longer both satisfied, because the variable FirstPass has been set to TRUE (above). However, the conditions required by the ELSIF line are both satisfied, because: the variable FirstPass is TRUE, and z the variable ETB_Read_Input_Data[36]the watchdog stateis now 0, which indicates that the watchdog is again inactive.
z
Consequently, the next 3 lines of code execute: z the Watchdog_Write_Enable Boolean is turned ON, triggering the operation of a MBP_MSTR block z the Watchdog_Reset Boolean is set to 0, toggling OFF the save module configuration register when the MBP_MSTR block executes Subsequent scan: Because none of the conditions required by the IF NOT and the ELSIF lines are satisfied, none of the conditional code executes. Normal operation has resumed.
EIO0000000158 7/2009
81
Application
OUT
82
EIO0000000158 7/2009
Application
FB Sequence 2: The second FB sequence reads the current I/O and watchdog configuration of the module and compares it against the configuration stored in the ETB_Configuration variable. If the two sets of data are: z the same, the variable Enable_ETB_Module is set to 1 and the module continues operations with its present configuration z different, the variable Enable_ETB_Module is set to 0 and the next sequence of function block code executes
FBI 11 M BP_ M STR Config_ R ead_Enable C onfig_R ead _Abort EN ABLE ABOR T 3 C onfig_ R ead_Active C onfig_ R ead_Error C onfig_ Read_Success C onfig_Read_ C ontrol C onfig_ R ead_D atabuf
EN O OU T
EIO0000000158 7/2009
83
Application
FB Sequence 3: If the I/O and watchdog settings stored in the PLC differ from the data read from the module, FB sequence 3 writes the stored data from the PLC to the module. This sequence runs until the Config_Write_Success parameter is set to 1.
.6 AND Enable _ ETB_M odule Config_ Read_Success IN1 IN2 IN1 Config_W rite_Active Config_W rite_Error .5 AND IN1 C onfig_ W rite_ Success IN2 8 IN2 IN3 6 .4 OR 7 OUT
OUT
OUT
FBI 10 M BP _M STR ENABLE 9 Config_W rite_Active Config_W rite_Error C onfig_W rite_Success C onfig_W rite_Control ETB_Configuration
ABOR T
84
EIO0000000158 7/2009
Application
Resetting the Watchdog FB Sequence 4: The following sequence of FB code works in coordination with the structured text code to toggle the save module configuration word at Modbus register 402050 to ON and then to OFF.
FBI 16 M BP _M STR W atchdog_W rite_ Enable W atchdog_W rite_Abort EN ABLE ABOR T 10 W atchdog_W rite_Active W atchdog_W rite_Error W atchdog_W rite_Success W atchdog_W rite_C ontrol W atchdog_R eset
.3 M OVE EN 0 IN 11
EN O OU T W atchdog_W rite_Enable
EIO0000000158 7/2009
85
Application
86
EIO0000000158 7/2009
Diagnostics
7
Overview This chapter describes the tools available for diagnosing the state of the module. What's in this Chapter? This chapter contains the following sections:
Section 7.1 7.2 LEDs Diagnostic Web Pages Topic Page 88 92
EIO0000000158 7/2009
87
Diagnostics
7.1
LEDs
Introduction The Advantys ETB I/O modules provide LEDs to diagnose the state of the modules. You can use the LED descriptions in this section to troubleshoot your module. What's in this Section? This section contains the following topics:
Topic LED Behaviors Scrolling LED Messages Page 89 91
88
EIO0000000158 7/2009
Diagnostics
LED Behaviors
Description The module provides LEDs for you to visually check its status. You can use the LEDs to monitor power, I/O points, and network link status. z 2 power LEDs: output (O) and input/module (I) z 16 logic sided I/O point LEDs z 2 Ethernet network link LEDs NOTE: If you cannot see the physical 16 I/O point LEDs, you can instead use the web page labeled I/O Status (see page 94).
EIO0000000158 7/2009
89
Diagnostics
5 Link z solid green: link at 100 Mbit without activity z flashing green: link at 100 Mbit with activity z solid yellow: link at 10 Mbit without activity z flashing yellow: link at 10 Mbit with activity
90
EIO0000000158 7/2009
Diagnostics
EIO0000000158 7/2009
91
Diagnostics
7.2
Introduction The Advantys ETB I/O modules provide embedded web pages that you can use to display the state of the modules. Use these pages to verify settings and troubleshoot your module. What's in this Section? This section contains the following topics:
Topic I/O Data: I/O Value I/O Data: I/O Status Diagnosis: Ethernet Statistics Diagnosis: Network Interface Page 93 94 96 98
92
EIO0000000158 7/2009
Diagnostics
PORT
IN 0 0 0 0 0 0 0 0
OUT 0 0 0 0 0 0 0 0
PORT
IN 0 0 0 0 0 0 0 0
OUT 0 0 0 0 0 0 0 0
Refresh
EIO0000000158 7/2009
93
Diagnostics
94
EIO0000000158 7/2009
Diagnostics
EIO0000000158 7/2009
95
Diagnostics
96
EIO0000000158 7/2009
Diagnostics
Interface counters:
Field In Octets In Ucast Packets In NUcast Packets In Discards In Errors Description Number of packets received in the interface Number of unicast packets received in the interface Number of non-unicast packets received in the interface Number of inbound packets discarded Number of incoming packets with detected errors (undersize, fragments, oversize, jabbers, detected symbol error, detected CRC error, detected alignment error) Inbound packets discarded due to unknown or unsupported protocol Number of output packets transmitted in the interface Number of unicast output packets transmitted in the interface Number of non-unicast output packets transmitted in the interface Number of outbound packets discarded Number of outbound packets that could not be transmitted due to detected errors
In Unknown Protos Out Octets Out Ucast Packets Out NUcast Packets Out Discards Out Errors
Media counters:
Field Alignment Errors Single Collisions Multiple Collisions Deferred Transmissions Excessive Collisions Frame Too Long Description Number of detected alignment errors in Rx packets Successfully transmitted frames on a port for which transmit is inhibited by exactly one collision Successfully transmitted frames on a port for which transmit is inhibited by more than one collision Transmitted packets by a port for which the first transmit attempt is delayed due to the busy medium Count of frames for which transmit is unsuccessful due to excessive collisions Received oversize packets with good CRC (max: 1536 or 1522 bytes)
EIO0000000158 7/2009
97
Diagnostics
Switch port 1 Speed: Negotiation: Duplex: 10 Mbps Manual Half Refresh 100 Mbps Auto Full
98
EIO0000000158 7/2009
WARNING
UNINTENDED EQUIPMENT OPERATION You must set up the replacement to match the same connections and configurations in the original module, as this is necessary for proper system operation. Failure to follow these instructions can result in death, serious injury, or equipment damage. The following table shows the steps needed to replace your module. Details of each step are provided after the table.
Step 1 2 3 4 5 6 7 8 Action remove power remove original module apply module power assign IP address and, if required, master controller IP address configure remaining module settings for replacement mount replacement attach cables verify settings and apply output power
EIO0000000158 7/2009
99
Replacement
Removing Original Module Remove the power supply, I/O, and network connectors, making note of which cables go to which port. It is recommended that you mark the connector locations appropriately to make sure you reassemble them in the same order. Then detach the module from the mounted surface. Assigning IP Address and Master Controller IP Address You must assign the replacement module an IP address, master controller IP address (if applicable), and the related settings identical to the ones assigned to the original. For a static IP address and the related settings: z Retrieve the original IP address. z Refer to the topic Configuring IP Parameters (see page 43) to use the web pages, or see the topic Manipulating Push Buttons (see page 46) to use the HMI push buttons. Make sure to modify the IP address and the related settings to match those of the original. For a BootP assigned IP address: z Retrieve the original IP address. z Refer to the topic Configuring IP Parameters (see page 45) to use the web pages, or see the topic Manipulating Push Buttons (see page 46) to use the HMI push buttons. Make sure to modify the server to serve the original IP address to the modules MAC address. For a DHCP assigned IP address: z Retrieve the original Device Name. z Refer to the topic Configuring IP Parameters (see page 44) to use the web pages, or see the topic Manipulating Push Buttons (see page 46) to use the HMI push buttons. Make sure to modify the Device Name to match that of the original. If applicable, make sure you set the master controller IP address to be identical to the one assigned to the original. Refer to the topic Identifying a Master Controller (see page 48) for instructions on assigning this address.
100
EIO0000000158 7/2009
Replacement
Configuring Remaining Module Settings Configuring the module settings for the replacement depends on how they were configured for the original module.
z
If configured with the PLC: The module settings for the replacement are automatically configured once the IP address and, if applicable, master controller IP address assignments are complete.
If configured with the embedded web pages: z Obtain the originally configured module settings. z See the topic on Configuring the Watchdog (see page 54) for instructions on assigning module settings such as fallback values, and see the topic on Configuring I/O (see page 51) for instructions on configuring the I/O parameters for ETB1EM16CP00. NOTE: You can only configure the I/O settings for ETB1EM16CP00, and using the PLC will facilitate future module replacement. Mounting Replacement Screw the module back in place, making sure to properly torque so as not to overtighten and damage the module case. Attaching Cables Attach the cables to the replacement in the same locations as they were on the original module. Verifying Settings Verify that the connections and configurations match those of the original module. Then apply output power and check module functionality.
EIO0000000158 7/2009
101
Replacement
102
EIO0000000158 7/2009
EIO0000000158 7/2009
Appendices
EIO0000000158 7/2009
103
104
EIO0000000158 7/2009
Overview The following topics describe the Modbus registers that are available for communication purposes in the Advantys ETB I/O modules. What's in this Chapter? This chapter contains the following topics:
Topic Modbus Registers Output Data Registers Input Data Registers Ethernet Configuration Registers Module Status Registers Module Information Registers I/O and Watchdog Configuration Registers Page 106 107 108 110 111 112 113
EIO0000000158 7/2009
105
Modbus Registers
Description Each module presents a data image containing 3072 registers. These registers are grouped into blocks according to their specific purpose, as shown below.
400001 Block 1 400017 400018 Block 2 400256 400257 Block 3 400292 400293 Block 4 400512 400513 Block 5 400768 400769 Block 6 401024 401025 Block 7 402048 402049 Block 8 403072 1024 registers I/O Configuration 1024 registers I/O Module Information 256 registers I/O Module Status 256 registers Ethernet Configuration 219 registers Reserved 36 registers Input Data 239 registers Reserved 17 registers Output Data
106
EIO0000000158 7/2009
Point 8-B Point 8-A Point 7-B Point 7-A Point 6-B Point 6-A Point 5-B Point 5-A Point 4-A Point 4-B Point 3-B Point 3-A Point 2-B Point 2-A Point 1-B
Point 1-A
The value configured for each output (0 or 1) drives the output point. Registers 400002...400017 are not used.
EIO0000000158 7/2009
107
The following input status data: the current status of each input point the event status of each input point global status power status watchdog status
Input Data Modbus register 400257 maps input data to module I/O points as follows:
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Point 8-B Point 8-A Point 7-B Point 7-A Point 6-B Point 6-A Point 5-B Point 5-A Point 4-A Point 4-B Point 3-B Point 3-A Point 2-B Point 2-A Point 1-B
Point 1-A
All data presented by Modbus registers 400257 through 400292 are read only. Input Status Registers The following registers contain input status data, all of which are assigned to bit 0 within the word.
Modbus Register Address 400258 400259 ... 400272 400273 400274 108 Access RO RO ... RO RO RO Length In word 1 1 ... 1 1 1 Description PIN P1.A Current Status PIN P1.B Current Status ... PIN P8.A Current Status PIN P8.B Current Status PIN P1.A Event Status
EIO0000000158 7/2009
Modbus Register Address 400275 ... 400288 400289 400290 400291 400292
Access RO ... RO RO RO RO RO
Description PIN P1.B Event Status ... PIN P8.A Event Status PIN P8.B Event Status Global Status Power Status Watchdog State
EIO0000000158 7/2009
109
400515 400516 400517 400518 400519 400522 400524 400525 400526 400527 400528 400529 400534 400535
1 1 1 1 3 2 1 1 1 1 1 5 1 1
IP address low byte1 IP address high byte1 maximum subnet address low byte1 maximum subnet address high byte1 MAC address serial number current TCP connection total TCP connections timeout number gateway IP address low byte1 gateway IP address high byte1 DHCP client Identifier Master controller IP address low byte1 Master controller IP address high byte1
1. For example, the IP address 172.16.27.172 would be represented as: z low byte = 0x1BAC (27.172); where 0x1B = 27 and 0xAC = 172 z high byte = 0xAC10 (172.16); where 0xAC =172 and 0x10 = 16
NOTE: It is recommended practice to use the module web pages to set the Ethernet parameters. Only the master controller IP address, set in registers 400534 and 400535, should be set using the PLC. Registers 400536...400768 are not used.
110
EIO0000000158 7/2009
EIO0000000158 7/2009
111
112
EIO0000000158 7/2009
1 1 ... 1 1
0 = not active 1 = active 0 = apply output fallback 1 = hold output ... 0 = OK 1 = PB on Firmware used when I/O pin is an output 0 = OFF !0 = ON used when I/O pin is an output 0 = OFF !0 = ON ... used when I/O pin is an output 0 = OFF !0 = ON used when I/O pin is an output 0 = OFF !0 = ON 0 = input pin 1 = output pin 2 = universal I/O other = universal I/O 0 = input pin 1 = output pin 2 = universal I/O other = universal I/O
402056
R/W
... 402069
... R/W
... 1
402070
R/W
402071
RO or RW
402072
RO or RW
EIO0000000158 7/2009
113
Access ... RO or RW
Values ... 0 = input pin 1 = output pin 2 = universal I/O other = universal I/O 0 = input pin 1 = output pin 2 = universal I/O other = universal I/O 0 = PNP 1= PNP 0 = 0 ms 1 = 0.5 ms 2 = 1 ms 3 = 1.5 ms 4 = 2 ms 5 = 2.5 ms 6 = 5 ms
402086
RO or RW
402087 402088
RO or RW RO or RW
1 1
114
EIO0000000158 7/2009
Glossary
A
auto-negotiation/auto-sensing The ability of a device (at the MAC sub-layer) to identify the speed (10 or 100 Mb/s) and the duplex or half mode of a connection and to adjust it, according to clause 28 of the IEEE 802.3u standard.
B
bit/s Bits per second, unit of transmission speed.
BootP (bootstrap protocol) A TCP/IP network protocol that offers network nodes request configuration information from a BOOTP server node.
D
default A value automatically assigned by the computer in a software program. Usually, this value can be changed.
DHCP (dynamic host configuration protocol) Communications protocol that assigns IP addresses to devices on the network, based on BootP.
115
EIO0000000158 7/2009
Glossary
E
embedded web pages Embedded Web pages (accessed by an installed HTTP server) provide Ethernet communications modules with easy access to devices anywhere in the world from standard browsers such as Internet Explorer or Netscape Navigator.
Ethernet A LAN cabling and signaling specification used to connect devices within a defined area, e.g., a building. Ethernet uses topology such as bus or star to connect different nodes on a network.
F
fallback state A stable state to which an Advantys I/O module can return in the event that its communication connection is disrupted.
fallback value The value that a device assumes during fallback. Typically, the fallback value is either configurable or the last stored value for the device.
G
gateway A combination of hardware and software that interconnects otherwise incompatible networks or networking devices. Gateways include packet assembler/disassembler (pads) and protocol converters.
116
EIO0000000158 7/2009
Glossary
H
HMI (human-machine interface) The screen of a device, the design of which makes its use intuitive to the user.
I
I/O (input/output) The transfer of data to and from a computer.
I/O module In a programmable controller system, an I/O module interfaces directly to the sensors and actuators of the machine/process. This module is the component that mounts in an I/O base and provides electrical connections between the controller and the field devices. Normal I/O module capacities are offered in a variety of signal levels and capacities.
IEC (International Electrotechnical Commission Carrier) Founded in 1884 to focus on advancing the theory and practice of electrical, electronics, and computer engineering, as well as computer science. IEC 1131 is the specification that deals with industrial automation equipment.
Internet A series of interconnected local, regional, national and international networks, linked using TCP/IP. Internet links may be government, university and research sites. It provides E-mail, remote login and file transfer services.
IP (Internet protocol). That part of the TCP/IP protocol family that tracks the Internet addresses of nodes, routes outgoing messages, and recognizes incoming messages.
IP address The 32-bit address associated with a workstation in connection with TCP/IP Internet.
EIO0000000158 7/2009
117
Glossary
L
LED Light emitting diode. An indicator that lights up when electricity passes through it. It indicates the operation status of a communications module.
link Physical connection between two nodes in a network. It can consist of a data communication circuit or a direct channel (cable) connection.
M
MAC address The media access control address of a device, which is burned into a DNI card and is added near the beginning of the packet.
Modbus Modbus is an application layer messaging protocol. Modbus provides client and server communications between devices connected on different types of buses or networks. Modbus TCP is the Modbus type that transmits data over Ethernet.
N
network An interconnected system of computers that can communicate with each other and share files, data and resources.
NPN inputs The field sensor sink or pull current from input circuitry of the module to 0 VDC.
NPN outputs NPN outputs are sinking type outputs also referred to as True Low. When energized, the outputs pull current through the load to turn on the field device.
118
EIO0000000158 7/2009
Glossary
P
ping (packet Internet groper) To test the network by trying to reach a destination with an ICMP echo request and waiting for a reply, type ping.exe at the command line.
PLC (programmable logic controller) An industrial control computer, also known simply as a controller.
PNP inputs The sensor sources or push current from the field sensor to the input circuit of the module, typically a 24 VDC signal.
PNP outputs PNP outputs are source type output also referred to as True High. When energized the output pushes current through the load to turn the output device on.
process image Serves as a real-time data area for the data exchange process. The process image includes an input buffer that contains current data and status information from the module and an output buffer that contains the current outputs for the module.
EIO0000000158 7/2009
119
Glossary
S
server A computer that provides resources to be shared on the network, such as files (file server) or terminals (terminal server).
subnet A part of a network that shares a network address with the other parts of a network. A subnet may be physically and/or logically independent of the rest of the network. A part of an internet address called a subnet mask, which is ignored in IP routing, distinguishes the subnet.
switch A multiport Ethernet device designed to increase network performance by allowing only essential traffic on the attached individual Ethernet segments. Packets are filtered or forwarded based upon their source and destination addresses.
T
timeout If communication stops, the program waits the specified number of seconds before trying to communicate again.
topology The arrangement of the nodes and connecting hardware that comprises the network. Types include ring, bus, star and tree.
120
EIO0000000158 7/2009
Index
B C A
connecting cables ETB1EM08E08SPP0, 59 ETB1EM12E04SPP0, 59 ETB1EM16CP00, 59 ETB1EM16EPP0, 59
A
accessories ETB1EM08E08SPP0, 16 ETB1EM12E04SPP0, 16 ETB1EM16CP00, 16 ETB1EM16EPP0, 16 application example configuring I/O, 82 ETB1EM08E08SPP0, 67 ETB1EM12E04SPP0, 67 ETB1EM16CP00, 67 ETB1EM16EPP0, 67 IP address, 71 local bus, 74 variable declarations, 75
D
default IP address, 44 description ETB1EM08E08SPP0, 24 ETB1EM12E04SPP0, 24 ETB1EM16CP00, 24 ETB1EM16EPP0, 24 DHCP, 44 diagnosing HMI messages ETB1EI08E08SPP0, 91 ETB1EI12E04SPP0, 91 ETB1EI16CP00, 91 ETB1EI16EPP0, 91 diagnosing LEDs ETB1EM08E08SPP0, 89 ETB1EM12E04SPP0, 89 ETB1EM16CP00, 89 ETB1EM16EPP0, 89 dimensions ETB1EM08E08SPP0, 27 ETB1EM12E04SPP0, 27 ETB1EM16CP00, 27 ETB1EM16EPP0, 27
B
BootP, 45
C
cables ETB1EM08E08SPP0, 16, 59, 64 ETB1EM12E04SPP0, 16, 59, 64 ETB1EM16CP00, 16, 59, 64 ETB1EM16EPP0, 16, 59, 64 code function blocks, 82 structured text, 80
EIO0000000158 7/2009
121
Index
G
ground cable ETB1EM08E08SPP0, 60 ETB1EM12E04SPP0, 60 ETB1EM16CP00, 60 ETB1EM16EPP0, 60
E
embedded web pages, 42, 92 accessing, 69 ETB1EM08E08SPP0, 35, 71 ETB1EM12E04SPP0, 35, 71 ETB1EM16CP00, 35, 71 ETB1EM16EPP0, 35, 71 in/out configuration, 52 Ethernet cables ETB1EM08E08SPP0, 60 ETB1EM12E04SPP0, 60 ETB1EM16CP00, 60 ETB1EM16EPP0, 60 Ethernet configuration registers ETB1EM08E08SPP0, 110 ETB1EM12E04SPP0, 110 ETB1EM16CP00, 110 ETB1EM16EPP0, 110 Ethernet status ETB1EM08E08SPP0, 96 ETB1EM12E04SPP0, 96 ETB1EM16CP00, 96 ETB1EM16EPP0, 96
H
HMI (human-machine interface), 46 ETB1EM08E08SPP0, 31 ETB1EM12E04SPP0, 31 ETB1EM16CP00, 31 ETB1EM16EPP0, 31 human-machine interface (HMI), 46 ETB1EM08E08SPP0, 31 ETB1EM12E04SPP0, 31 ETB1EM16CP00, 31 ETB1EM16EPP0, 31
I
I/O assignments ETB1EM08E08SPP0, 30 ETB1EM12E04SPP0, 30 ETB1EM16CP00, 30 ETB1EM16EPP0, 30 I/O cables ETB1EM08E08SPP0, 60 ETB1EM12E04SPP0, 60 ETB1EM16CP00, 60 ETB1EM16EPP0, 60 I/O configuration PLC (programmable logic controller, 51 programmable logic controller (PLC), 51 I/O data (read only) ETB1EM08E08SPP0, 93 ETB1EM12E04SPP0, 93 ETB1EM16CP00, 93 ETB1EM16EPP0, 93 I/O registers ETB1EM08E08SPP0, 113 ETB1EM12E04SPP0, 113 ETB1EM16CP00, 113 ETB1EM16EPP0, 113
EIO0000000158 7/2009
F
fallback ETB1EM08E08SPP0, 54 ETB1EM12E04SPP0, 54 ETB1EM16CP00, 54 ETB1EM16EPP0, 54
122
Index
I/O status ETB1EM08E08SPP0, 94 ETB1EM12E04SPP0, 94 ETB1EM16CP00, 94 ETB1EM16EPP0, 94 input ETB1EM08E08SPP0, 51 ETB1EM12E04SPP0, 51 ETB1EM16CP00, 51 ETB1EM16EPP0, 51 input assignments ETB1EM08E08SPP0, 30 ETB1EM12E04SPP0, 30 ETB1EM16CP00, 30 ETB1EM16EPP0, 30 input data (read only) ETB1EM08E08SPP0, 93 ETB1EM12E04SPP0, 93 ETB1EM16CP00, 93 ETB1EM16EPP0, 93 input data registers ETB1EM08E08SPP0, 108 ETB1EM12E04SPP0, 108 ETB1EM16CP00, 108 ETB1EM16EPP0, 108 input status ETB1EM08E08SPP0, 94 ETB1EM12E04SPP0, 94 ETB1EM16CP00, 94 ETB1EM16EPP0, 94 installation cables, 59 connecting cables, 59 ETB1EM08E08SPP0, 58 ETB1EM12E04SPP0, 58 ETB1EM16CP00, 58 ETB1EM16EPP0, 58 Ethernet cables, 60 ground cable, 60 I/O cables, 60 network cables, 60 power cables, 61
IP address assigning, 42 BootP, 45 DHCP, 44 factory default, 44 Master Controller, 48 static, 43 static IP address, 71 user-defined, 43 IP address source, 46 IP configuration, 40 IP67 ETB1EM08E08SPP0, 10 ETB1EM12E04SPP0, 10 ETB1EM16CP00, 10 ETB1EM16EPP0, 10
L
LEDs (light emitting diodes) ETB1EM08E08SPP0, 89 ETB1EM12E04SPP0, 89 ETB1EM16CP00, 89 ETB1EM16EPP0, 89 light emitting diodes (LEDs) ETB1EM08E08SPP0, 89 ETB1EM12E04SPP0, 89 ETB1EM16CP00, 89 ETB1EM16EPP0, 89
M
Master Controller IP Address, 48 Modbus registers, 106 module information registers ETB1EM08E08SPP0, 112 ETB1EM12E04SPP0, 112 ETB1EM16CP00, 112 ETB1EM16EPP0, 112 module status registers ETB1EM08E08SPP0, 111 ETB1EM12E04SPP0, 111 ETB1EM16CP00, 111 ETB1EM16EPP0, 111
123
EIO0000000158 7/2009
Index
N
network cables ETB1EM08E08SPP0, 60 ETB1EM12E04SPP0, 60 ETB1EM16CP00, 60 ETB1EM16EPP0, 60 network interface (read only) ETB1EM08E08SPP0, 98 ETB1EM12E04SPP0, 98 ETB1EM16CP00, 98 ETB1EM16EPP0, 98 network topology, 11
P
password setup, 38 pin assignments ETB1EM08E08SPP0, 28 ETB1EM12E04SPP0, 28 ETB1EM16CP00, 28 ETB1EM16EPP0, 28 Ethernet connectors, 29 network connectors, 29 power connectors, 28 PLC (programmable logic controller) I/O configuration, 51 watchdog configuration, 54 point assignments I/O port connectors, 28 point status ETB1EM08E08SPP0, 94 ETB1EM12E04SPP0, 94 ETB1EM16CP00, 94 ETB1EM16EPP0, 94 port assignments ETB1EM08E08SPP0, 30 ETB1EM12E04SPP0, 30 ETB1EM16CP00, 30 ETB1EM16EPP0, 30 power cables ETB1EM08E08SPP0, 61 ETB1EM12E04SPP0, 61 ETB1EM16CP00, 61 ETB1EM16EPP0, 61 programmable logic controller (PLC) I/O configuration, 51 watchdog configuration, 54 push buttons, 46
O
output ETB1EM08E08SPP0, 51 ETB1EM12E04SPP0, 51 ETB1EM16CP00, 51 ETB1EM16EPP0, 51 output assignments ETB1EM08E08SPP0, 30 ETB1EM12E04SPP0, 30 ETB1EM16CP00, 30 ETB1EM16EPP0, 30 output data (read only) ETB1EM08E08SPP0, 93 ETB1EM12E04SPP0, 93 ETB1EM16CP00, 93 ETB1EM16EPP0, 93 output data registers ETB1EM08E08SPP0, 107 ETB1EM12E04SPP0, 107 ETB1EM16CP00, 107 ETB1EM16EPP0, 107
124
EIO0000000158 7/2009
Index
R
registers ETB1EM08E08SPP0, 106 ETB1EM12E04SPP0, 106 ETB1EM16CP00, 106 ETB1EM16EPP0, 106 Ethernet configuration, 110 I/O, 113 input data, 108 module information, 112 module status, 111 output data, 107 watchdog, 113 replacing module ETB1EM08E08SPP0, 99 ETB1EM12E04SPP0, 99 ETB1EM16CP00, 99 ETB1EM16EPP0, 99
W
watchdog reset, 80, 85 watchdog configuration ETB1EM08E08SPP0, 54 ETB1EM12E04SPP0, 54 ETB1EM16CP00, 54 ETB1EM16EPP0, 54 PLC (programmable logic controller), 54 programmable logic controller (PLC), 54 watchdog registers ETB1EM08E08SPP0, 113 ETB1EM12E04SPP0, 113 ETB1EM16CP00, 113 ETB1EM16EPP0, 113 web pages, 42, 92 accessing, 69 ETB1EM08E08SPP0, 35, 71 ETB1EM12E04SPP0, 35, 71 ETB1EM16CP00, 35, 71 ETB1EM16EPP0, 35, 71 in/out configuration, 52 web server, 92 ETB1EM08E08SPP0, 35 ETB1EM12E04SPP0, 35 ETB1EM16CP00, 35 ETB1EM16EPP0, 35 wiring, 65
S
size ETB1EM08E08SPP0, 27 ETB1EM12E04SPP0, 27 ETB1EM16CP00, 27 ETB1EM16EPP0, 27 source of IP address, 46 specifications ETB1EM08E08SPP0, 24 ETB1EM12E04SPP0, 24 ETB1EM16CP00, 24 ETB1EM16EPP0, 24 static IP address ETB1EM08E08SPP0, 71 ETB1EM12E04SPP0, 71 ETB1EM16CP00, 71 ETB1EM16EPP0, 71
T
TCP connections, 48 topology, 11
EIO0000000158 7/2009
125
Index
126
EIO0000000158 7/2009