To access an EtherNet/IP device, it is necessary to start a connection (global name used by EtherNet/IP protocol level).
A connection allows to transfer data combined into assembly.
The connections processes (start/stop) are automatically managed by the controller.
For connections limitations, refer to the controller Programming Guide.
For more details, refer to protocol manager Operating Modes.
I/O data and configuration data can be combined into Assembly Objects.
Data (attributes) from different objects can be combined into a single object to allow data to be sent or received over a single connection.
Assembly Object instances are used to aggregate data for the input data and output data associated with I/O connections.
Assembly objects are structured into classes, instances, and attributes:
A class is a set of objects that represent the same kind of system component.
An object instance is the representation of a particular object within a class. Each instance has its own set of attribute values.
Attributes are characteristics of an object and/or an object class. Typically, attributes provide status information or define the operation of an object.
The following graphic presents the directionality of Input Assembly and Output Assembly in EtherNet/IP communications:
The EtherNet/IP configuration parameters are defined as:
Instance: Number referencing the assembly.
Size: Number of channels of an assembly.
The memory size of each channel is 2 bytes, which store the value of %IWx
or %QWx
objects, where x is the channel number.
For example, if the %IWy…%IW(y+20-1)
, where y is the first available channel for the assembly.
Each EtherNet/IP device has connections.
In the EtherNet/IP device and select the tab.
, double-click an
Column |
Comment |
---|---|
|
The connection number is unique. It is automatically assigned by EcoStruxure Machine Expert. |
|
The connection name is generated automatically by EcoStruxure Machine Expert. |
|
Requested Packet Interval: The time period between cyclic data transmissions requested by the scanner. |
|
|
|
Number of bytes to exchange between the Originator (O) and the Target (T). |
|
|
|
Number of bytes of configuration parameters to transfer. Displayed if the connection contains a configuration assembly. |
|
I/O states are refreshed every cycle if the RPI for the connection associated with the device is set to a value greater than the period of the application task updating this I/O. It also applies for the first application task cycles after connection establishment.
WARNING | |
---|---|
To create a connection, click
.To modify a connection, select a connection and click
, or double-click on it.To remove a connection, select a connection and click
.To configure an EtherNet/IP connection, proceed as follows:
Step |
Action |
---|---|
1 |
In the EtherNet/IP device. , double-click an |
2 |
Select the tab. |
3 |
Click . |
4 |
Select :![]() |
5 |
Select . |
6 |
Select Configuration assembly. |
7 |
Configure the : |
8 |
Configure the : |
9 |
Select the : 4 (default) / 8 / 16 / 32 / 64 / 128 / 256 / 512 |
10 |
Configure the : |
11 |
Configure the : |
12 |
Click . |
(1) The Class ID, Instance ID, and Attribute ID can be found in the device documentation. Refer to How To Find Assembly Information. |
For more details on supported assemblies, refer to the documentation of the device.
For more details on advanced parameters, refer to EtherNet/IP Connection Properties in Expert Mode.
Predefined connections are available for:
Devices that are supported by DTM.
Devices that are delivered with an EDS file.
By definition, generic slave devices do not have predefined connections.
To add a predefined EtherNet/IP connection, proceed as follows:
Step |
Action |
---|---|
1 |
In the EtherNet/IP device. , double-click an |
2 |
Select the tab. |
3 |
Click . |
4 |
Select :![]() |
4 |
Select one of the predefined connections. |
5 |
Select the : 4 (default) / 8 / 16 / 32 / 64 / 128 / 256 / 512 |
6 |
Configure the : |
7 |
Configure the : |
8 |
Click . |
Some devices support a configuration assembly.
A configuration assembly is a request, sent at the scanner start, that loads configuration parameters to the device in a single request.
To configure a configuration assembly, proceed as follows:
Step |
Action |
---|---|
1 |
In the EtherNet/IP device. , double-click an |
2 |
Select the tab. |
3 |
Select an existing connection and click . |
4 |
Select . |
5 |
Select . |
6 |
Configure the : |
7 |
Click . |
8 |
Configure the : |
9 |
Click .Result: The configuration parameters are displayed in the tab:![]() |
10 |
Double-click in the column to set the configuration parameter values. |
(1) The Class ID, Instance ID, and Attribute ID can be found in the device documentation. Refer to How To Find Assembly Information. |
Edit connection with advanced parameters view:
Connection settings:
Parameter |
Values |
Description |
||
---|---|---|---|---|
|
Yes/No |
Enables you to configure the parameters of the assemblies. |
||
|
True/False |
Enables you to configure a configuration assembly. |
||
|
2 bytes (04h by default) |
Class identifier(1) |
||
|
2 bytes (0 by default) |
Instance identifier(1) |
||
|
2 bytes (03h by default) |
Attribute identifier(1) |
||
|
||||
|
2 bytes (04h by default) |
Class identifier(1) |
||
|
2 bytes (0 by default) |
Instance identifier(1) |
||
|
2 bytes (03h by default) |
Attribute identifier(1) |
||
|
||||
|
2 bytes (04h by default) |
Class identifier(1) |
||
|
2 bytes (0 by default) |
Instance identifier(1) |
||
|
2 bytes (03h by default) |
Attribute identifier(1) |
||
|
Yes/No |
Disable the area and enable the field |
||
(1) The Class ID, Instance ID, and Attribute ID can be found in the device documentation. Refer to How To Find Assembly Information. |
Generic Parameters:
Parameter |
Values |
Description |
---|---|---|
|
Array of bytes |
Coded transcription of the physical link object. |
|
|
: This is a bidirectional connection to an Output connection point (typically an Assembly Object), where the data of this assembly can only be controlled by one Scanner. There may be a connection to an input assembly; this data is being sent to the scanner. If the input data length is zero, then this direction becomes a Heartbeat connection. : The scanner receives input data from the target device and produces a Heartbeat to the target device. There is no Output data. A Listen Only Connection can only be attached to an existing or Input Only Connection. If this underlying connection stops, then the connection is also stopped or timed out. : The scanner receives input data from the target device and produces a Heartbeat to the target device. There is no Output data. |
|
4 (default) / 8 / 16 / 32 / 64 / 128 / 256 / 512 |
Scanner Timeout is managed connection by connection with RPI and timeout multiplier. |
Scanner to Target (Output):
Parameter |
Values |
Description |
---|---|---|
|
0 to XX => device specific |
Size of channel for an assembly. The memory size of each channel is 2 bytes that stores the value of %IWx or %QWx object, where x is the channel number. |
|
In ms (10 ms by default) |
Requested Packet Interval. The time period between cyclic data transmissions requested by the scanner. The device always provides a minimum RPI, whereas in the controller the goal is to have the highest RPI in order to not overload the system. Each time a device is added to the EtherNet/IP fieldbus, or each time a RPI value is modified, it is recommended to check the resources (refer to the scanner resource checker). The device RPI may be specified in the device documentation. Usually, however, this information is provided as part as the EDS file delivered with the device. |
|
Cyclic |
Cyclic: Endpoints send their messages at pre-determined cyclic time intervals |
|
0 ms |
Used for change of state trigger type. |
|
0 to XX => device specific |
Accessible if connection path contains a configuration assembly. Numbers of parameter (1 byte) to transfer. The configuration values are sent to the device at the scanner start. |
|
0 to XX => device specific |
|
|
Point to Point |
Connection type of the request |
|
Fixed |
The request length is fixed. |
|
|
Transfer format of the request. For more information, refer to ODVA website. |
NOTE: If transfer format is set to , the scanner status is sent in the request. Targets may not respond in the same manner when they receive the information that the scanner is in IDLE status. For example, some targets may not update their inputs while others do when the controller is
STOPPED or HALT .
|
Target to Scanner (Input):
Parameter |
Values |
Description |
---|---|---|
|
0 to XX => device specific |
Size of channel of an assembly. The memory size of each channel is 2 bytes that stores the value of %IWx or %QWx object, where x is the channel number. |
|
In ms (10 ms by default) |
Requested Packet Interval. The time period between cyclic data transmissions requested by the scanner. The device is always providing a minimum RPI, whereas in the controller the goal is to have the highest RPI in order to not overload the system. Each time a device is added to the EtherNet/IP fieldbus, or each time a RPI value is modified, it is recommended to check the resources (refer to the scanner resource checker). The device RPI may be specified in the device documentation. Usually, however, this information is provided as part as the EDS file delivered with the device. |
|
|
Cyclic: Endpoints send their messages at pre-determined cyclic time intervals Change of state: Change of state endpoints send their messages when a change occurs. The data is also sent at a background cyclic interval (RPI) if no change occurs to keep the connection from timing out. |
|
In multiples of 2 ms (2 ms by default) |
Minimum period time between 2 data exchanges. Accessible if is . Inhibit Time maximum value is RPI and is limited to 254 ms. |
|
Go to zero <default> |
Reset the input on error/stop |
|
|
Connection type of the request |
|
Fixed |
The request length is fixed. |
|
|
Transfer format of the request. For more information, refer to ODVA website. |
Assembly information is provided in the device documentation. It is usually part of the description of assembly objects.
To configure an assembly, identify the following items of information:
Class ID
The "Assembly object" Class ID is equal to 4.
Instance ID
Select the assembly instance, depending on the application and on the type of device. The selection of the assembly instance will induce a dedicated state machine in the device:
Configuration assembly: Supported by few devices; verify in the device documentation which assembly instance is supported.
Consuming assembly: sometimes referred to as “device output” in the device documentation (from the device point of view).
Producing assembly: sometimes referred to as “device input“ in the device documentation (from the device point of view).
Attribute ID
Search for the attribute to read. This corresponds to the data buffer exchanged during the connection.
The attribute property must have write access for the producing assembly and read access for the consuming assembly.
The attribute ID is the same for the two assemblies and equal to 3. It matches an attribute whose access is Get/Set. The name is often "data", and the type of data “Array of byte”.