GenericEtherNetIPExplicits PDF
GenericEtherNetIPExplicits PDF
www.schneider-electric.com
2 EIO0000001144 04/2013
Table of Contents
Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 1 Generic EtherNet/IP Explicit Driver. . . . . . . . . . . . . . . . 9
System Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Supported Device Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Consecutive Equipment Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
I/O Manager Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Equipment Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Device Address Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Chapter 2 Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
EtherNet/IP Standard Class Codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
EIO0000001144 04/2013 3
4 EIO0000001144 04/2013
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.
EIO0000001144 04/2013 5
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 its installation, and has received safety
training to recognize and avoid the hazards involved.
6 EIO0000001144 04/2013
About the Book
At a Glance
Document Scope
This manual describes the device driver communication settings in the Vijeo
Designer screen editing software. Vijeo Designer enables you to design Magelis
target machines that communicate with PLCs, drives, field devices, and other
equipment.
For more information about Vijeo Designer and Magelis target machines, please
refer to Vijeo Designer user documentation.
Validity Note
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.
Documentation Conventions
Target Machine: Human-Machine Interface (HMI) that runs user applications
designed in Vijeo Designer screen editing software. A target machine is also known
as a terminal.
EIO0000001144 04/2013 7
Product Related Information
WARNING
LOSS OF CONTROL
z The designer of any control scheme must consider the potential failure modes
of control paths and, for certain critical control functions, provide a means to
achieve a safe state during and after a path failure. Examples of critical control
functions are emergency stop and overtravel stop.
z Separate or redundant control paths must be provided for critical control
functions.
z System control paths may include communication links. Consideration must be
given to the implications of unanticipated transmission delays or failures of the
link.*
z Each implementation of a Magelis XBTGT, HMISTO, HMISTU, HMIGTO,
XBTGH, XBTGK, XBTGC, iPC, and XBTGTW must be individually and
thoroughly tested for proper operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
* For additional information, refer to NEMA ICS 1.1 (latest edition), “Safety
Guidelines for the Application, Installation, and Maintenance of Solid State Control.“
User Comments
We welcome your comments about this document. You can reach us by e-mail at
[email protected].
8 EIO0000001144 04/2013
Generic EtherNet/IP Explicit Driver
EIO0000001144 04/2013
1
Subject of this Chapter
This chapter explains the Generic EtherNet/IP (Explicit) Driver.
EIO0000001144 04/2013 9
Generic EtherNet/IP Explicit Driver
System Structure
Overview
The following table describes the basic system setup for connecting the target
machine to EtherNet/IP Explicit Messaging enabled remote equipment and PLCs.
Connection
Note:
z Use a 100BASE-TX connection for iPC Series, XBTGTW Series, XBTGK
Series, XBTGT2000 Series or higher, XBTGH2000 Series, XBTGC2000 Series
or higher, XBTGT1005 Series, HMISTO Series, and HMISTU Series target
machines.
z Use a 10BASE-T connection for XBTGT1130 target machines.
z Some equipment, such as Advantys STB, may have specific time-out
mechanisms. Ensure that the Vijeo Designer ScanRate setting is compatible
with your equipment.
10 EIO0000001144 04/2013
Generic EtherNet/IP Explicit Driver
Overview
WARNING
UNINTENDED EQUIPMENT OPERATION
Incorrect values will result if conflicting writes to the same register are requested
simultaneously by the target and PLC program.
Design your system to avoid conflicting write processes between the target
machine and PLC program.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
*1 Vijeo Designer does not support unsigned 32-bit integers. Vijeo Designer
variables will accurately display values up to 2147483647.
EIO0000001144 04/2013 11
Generic EtherNet/IP Explicit Driver
*2 STRUCT data type attributes can include multiple data types. As a result, there
is no one way to map a STRUCT to Vijeo Designer variables.
When using a STRUCT in Vijeo Designer, note that the driver supports a
maximum structure size of 400 bytes.
*1 Major Revision and Minor Revision, each requires a separate variable in this
example.
*2 Vijeo Designer does not support unsigned 32-bit integers. Vijeo Designer
variables will accurately display values up to 2147483647.
12 EIO0000001144 04/2013
Generic EtherNet/IP Explicit Driver
Overview
The protocol reads a single attribute at a time, whether it’s an integer, word, string,
or structure. There is no optimization available, so you cannot read multiple
attributes in the same request.
EIO0000001144 04/2013 13
Generic EtherNet/IP Explicit Driver
Overview
In the I/O Manager, add the driver and equipment as shown.
Note:
z For information on how to display the [New Driver] dialog box, see the Vijeo
Designer Help.
14 EIO0000001144 04/2013
Generic EtherNet/IP Explicit Driver
Equipment Configuration
Overview
WARNING
UNINTENDED EQUIPMENT OPERATION
Read and understand the instructions in this section to ensure data is properly
transferred. If you do not follow these instructions, incorrect data could be written
to the PLC and the target machine.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
Sets up details to identify the equipment you are connecting to on the network.
Note:
z For information on how to display the [Driver Configuration] dialog box, see the
Vijeo Designer Help.
Screen Description
Area Description
IP Address Enter the IP address of the remote equipment.
Note:
z Consult your network administrator when setting up the IP address.
EIO0000001144 04/2013 15
Generic EtherNet/IP Explicit Driver
Overview
WARNING
UNINTENDED EQUIPMENT OPERATION
Read and understand the instructions in this section to ensure data is properly
transferred. If you do not follow these instructions, incorrect data could be written
to the PLC and the target machine.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
Data in this protocol is defined by several numbers to describe the object’s Class, Instance,
Attribute, Data Size, and Access Mode. Use the device address configuration dialog box to identify
the attribute of the class instance you want to associate with the Vijeo Designer variable. Make
sure the data type of the variable is compatible with the class attribute’s data type.
See Supported Device Addresses.
Note:
z For information on how to display the Device Address Configuration dialog box,
see the Vijeo Designer Help.
16 EIO0000001144 04/2013
Generic EtherNet/IP Explicit Driver
Screen Description
Area Description
Class In this list box, you can select any class identified by the ODVA’s
EtherNet/IP specification. To select a vendor-defined class, select
Vendor Defined then enter the corresponding hexadecimal class
code.
Instance 0 describes the equipment itself. Some classes use other values (1,
2, 3, and so on) to represent objects (instances of the class). For
more information, refer to the EtherNet/IP specification or
manufacturer’s data sheet.
Attribute Each class instance has a defined set of attributes that you can Get,
Set, or Get and Set. Refer to the EtherNet/IP specification or
manufacturer’s data sheet for more information.
Data Size Each class instance has a defined data size. Refer to the
EtherNet/IP specification or manufacturer’s data sheet for more
information.
Access Mode Each class instance has a defined data size. Refer to the
EtherNet/IP specification or manufacturer’s data sheet for more
information.
EIO0000001144 04/2013 17
Generic EtherNet/IP Explicit Driver
Area Description
Bit Number When working with discrete variables, you can select individual bits
within a word to read or write to. When you write to a single bit in a
Get and Set attribute, the target machine reads the entire word
address, writes the defined bit, then returns the new word address
to the PLC. If the ladder program writes data to this word address
during the bit read/write process, the resulting data may be
incorrect.
String Prefix When working with string variables, you can select a string prefex
with the length of 0, 1, 2, or 4 bytes.
The string prefix defines how many bytes are used to evaluate the
length of the string. When displaying the string, the string prefix is
not displayed.
Note:
z Refer to Appendix EtherNet/IP Standard Class Codes for a list of the standard
class codes.
z If you are using vendor-defined class codes, the manufacturer should have
provided you with a list of the class codes supported by the driver. All
EtherNet/IP equipment must support the standard class codes.
18 EIO0000001144 04/2013
Generic EtherNet/IP Explicit Driver
Note:
z You can use Vijeo Designer’s Block Integer variable to Get and Set data from
structures that contain many types of data packed together. To read the
contents of the Block Integer in Vijeo Designer, you can write a script that
parses the data and distributes it to other Vijeo Designer variables.
z For example, when finding the IP address of the Name Server in a TCP/IP
Interface Object, create the Block Integer variable defined in the following table
for Attribute 5.
TCP/IP Interface Object Vijeo-Designer
Data Access Data
Attribute Name Type Size Rule Type Details
1 Status DWORD 16 bits Get --
2 Configuration DWORD 32 bits Get --
Capability
3 Configuration DWORD 32 bits Get --
Control
4 Physical Link Object STRUCT: Get --
- UINT
- Array
Path Size of 16 bits Get --
Path WORD Get --
5 Interface STRUCT: -- Get Block Block Elements = 4,
Configuration Integer Data Length = 32 bits,
IP Address UDINT Start Address = (F5,1,5):0:4
Network Mask UDINT
Gateway Adress UDINT
Name Server UDINT
Name Server 2 UDINT
Domain Name UINT
Domain Name STRING
Size
The Name Server is the fourth element in the Block Integer variable. Use Vijeo
Designer scripts to parse the Block Integer variable and access bytes 12 to 15
(assuming we begin with byte 0) to get the Name Server IP address.
EIO0000001144 04/2013 19
Generic EtherNet/IP Explicit Driver
20 EIO0000001144 04/2013
Appendix
EIO0000001144 04/2013
Appendix
2
What's in this Chapter?
This chapter contains the following topics:
Topic Page
EtherNet/IP Standard Class Codes 22
EIO0000001144 04/2013 21
Appendix
Overview
Code Class Name
01hex Identity
02hex Message Router
03hex DeviceNet
04hex Assembly
05hex Connection
06hex Connection Manager
07hex Register
08hex Discrete Input Point
09hex Discrete Output Point
0Ahex Analog Input Point
0Bhex Analog Output Point
0Ehex Presence Sensing
0Fhex Parameter
10hex Parameter Group
12hex Group
1Dhex Discrete Input Group
1Ehex Discrete Output Group
1Fhex Discrete Group
20hex Analog Input Group
21hex Analog Output Group
22hex Analog Group
23hex Position Sensor
24hex Position Controller Supervisor
25hex Position Controller
26hex Block Sequencer
27hex Command Block
28hex Motor Data
29hex Control Supervisor
2Ahex AC/DC Drive
2Bhex Acknowledge Handler
2Chex Overload
2Dhex Softstart
2Ehex Selection
30hex S-Device Supervisor
31hex S-Analog Sensor
32hex S-Analog Actuator
33hex S-Single Stage Controller
34hex S-Gas Calibration
35hex Trip Point
37hex File
38hex S-Partial Pressure
F3hex Connection Configuration
F4hex Port
F5hex TCP/IP Interface
F6hex EtherNet Link
22 EIO0000001144 04/2013