A little Background on

ETHERNET/IP

Let’s take a step back from the EtherNet/IP protocol. Most people who work in an office associate the term “Ethernet” with the physical cable behind their desk. This cable connects their office PC to the printers and servers of the local network and the infinite websites on the Internet. This cable is only the physical part of Ethernet, the media carrying Ethernet messages to your PC. On this wire is a whole series of communication protocols, such as the Internet Protocol (IP), the Transport Control Protocol (TCP) and various Microsoft protocols, such as NetBEUI. This suite of protocols works well for the office environment. It allows users to share files, access printers, send email, search the internet and perform all the other communications used in the office environment.

The needs of the factory floor are much different with some very special requirements. Instead of accessing files and printers, factory floor controllers must access data embedded in drive systems, operator workstations and I/O devices. Instead of letting a user wait while a task is being performed, factory floor data communications needs are real-time or very close to real-time. Terminating the fill operation on a bottle requires much more time-precise communications than accessing the next page of an internet site.

Traditionally, Ethernet had only limited acceptance in industrial automation. Until recently the expense, lack of intelligent switches and routers and the domination of large vendors with proprietary protocols prevented the wide acceptance of Ethernet on the factory floor. Now with prices falling, PCs with inherent Ethernet capability moving in droves onto the factory floor and intelligent switches and routers, Ethernet is gaining acceptance among industrial protocols. Only the lack of a widely accepted, flexible application layer targeted to industrial automation has prevented its complete acceptance.

EtherNet/IP resources

Want to learn more about EtherNet/IP?

Subscribe to our Automation Education email series to learn the ins and outs of EtherNet/IP and the top industrial protocols in a byte-size weekly format!

The 7 Things You Must Know About the EtherNet/IP Protocol

Your Guide to Understanding EtherNet/IP

TCP/IP Protocol Layering

I’m often asked, “What is EtherNet/IP?” Or, “Can you give me a quick introduction to the EtherNet communication protocol?” Here are the top 7 things you need to know about EtherNet/IP. (Note: David Letterman had his Top Ten, but I’m only 65% as good as David Letterman.)

  1. EtherNet/IP is an application layer protocol that is transferred inside a TCP/IP Packet. That means that EtherNet/IP is simply the way data is organized in a TCP or UDP packet. For information on what TCP or UDP is, get my Industrial Ethernet book.
  2. All devices on an EtherNet/IP network present their data to the network as a series of data values called attributes grouped with other similar data values into sets of attributes called objects.
  3. There are EtherNet/IP required objects – identity, TCP, router – that every device must have. The EtherNet/IP specification defines those objects.
  4. There are EtherNet/IP application objects that have the data for your specific device. For example, an EtherNet/IP drive device has a motor object. EtherNet/IP devices that support specific devices all have the same set of EtherNet/IP application objects.
  5. There are two kinds of messages that are transferred between an EtherNet/IP scanner device (opens connections and initiates data transfers) and EtherNet/IP adapter devices (provides data to scanners). These messages are explicit messages (asynchronous, as needed) and I/O messages (data messages that are continuously transferred).
  6. EtherNet/IP is part of the Common Industrial Protocol (CIP). CIP defines the object structure and specifies the message transfer. CIP protocol over CAN is DeviceNet. CIP protocol over Ethernet is EtherNet/IP.
  7. Our company, Real Time Automation (RTA), is the leading supplier of EtherNet/IP technology. RTA can supply royalty-free EtherNet/IP Source Code Stacks (for both scanners and adapters), EtherNet/IP PCBs and Modules.

EtherNet/IP

The EtherNet/IP standard (often shortened to E/IP or EIP) is the application layer protocol that can provide what the industry is looking for. Four independent groups have joined forces to develop and promote EIP as a public domain Ethernet application layer for industrial automation. These groups include ODVA, the Industrial Open Ethernet Association (IOANA), Control Net International (CI) and the Industrial Ethernet Association (IEA). The goal of their efforts is to illustrate how EIP provides a wide-ranging, comprehensive, certifiable standard suitable to a wide variety of automation devices.

  1. Ethernet/IP uses the tools and technologies of traditional Ethernet. Ethernet/IP uses all the transport and control protocols used in traditional Ethernet including TCP, IP and the media access and signaling technologies found in off-the-shelf Ethernet interface cards. Building on these standard PC technologies means that EIP works transparently with all the standard off-the-shelf Ethernet devices found in today’s marketplace. It also means that EIP can be easily supported on standard PCs and all their derivatives. Even more importantly, basing EIP on a standard technology platform ensures that EIP will move forward as the base technologies evolve in the future.
  2. Ethernet/IP is a certifiable standard. The groups supporting EIP plan to ensure a comprehensive, consistent standard by careful, multi-vendor attention to the specification and through certified test labs as has been done with DeviceNet and ControlNet. Certification programs modeled after the programs for DeviceNet and ControlNet will ensure the consistency and quality of field devices.
  3. EIP is built on a widely accepted protocol layer. EIP is constructed from a very widely implemented standard used in DeviceNet and ControlNet called CIP (mentioned earlier) and is illustrated in the attached drawing. This standard organizes networked devices as a collection of objects. It defines the access, object behavior and extensions that allow widely disparate devices to be accessed using a common mechanism. Hundreds of vendors now support the CIP protocol in present-day products. Using this technology in EIP means that EIP is based on a widely understood, widely implemented standard that does not require a new technology shakedown period.

Like what you’re reading?

Subscribe to our Automation Education email series to learn the ins and outs of the top industrial protocols in a byte-size weekly format!

An Overview of CIP

The Common Industrial Protocol is a communications protocol for transferring automation data between two devices. In the CIP protocol, every network device represents itself as a series of objects. Each object is simply a grouping of the related data values in a device. CIP does not specify at all how this object data is implemented, only what data values or attributes must be supported and that these attributes must be available to other CIP devices.

There are three types of objects defined by the CIP protocol.

1. EtherNet/IP Required Objects

Required objects are required by the specification to be included in every CIP device. These objects include the identity object, a message router object and a network object.

A. The identity object contains related identity data values called attributes. Attributes for the identity object include the vendor ID, date of manufacturer, device serial number and other identity data.

B. The message router object is an object which routes explicit request messages from object to object in a device.

C. The network object contains the physical connection data for the object. For a CIP device on DeviceNet the network object contains the MacID and other data describing the interface to the CAN network. For EIP devices, the network object contains the IP address and other data describing the interface to the Ethernet port on the device.

Common CIP Objects
IDENTITY OBJECT CLASS 0x01REQUIRED OBJECT
The identify object provides the Identifying information for the CIP Node and includes the vendor ID, the product code, the software revision information, the serial number and the product name among other items. The identity object is a required object and there is usually only a single instance.
MESSAGE ROUTER OBJECT CLASS 0x02REQUIRED OBJECT
The message router object provides a mechanism for external devices to access objects in a CIP device. Messages sent over Explicit connections are directed to the target object by the message router object.9
CONNECTION OBJECT CLASS 0x05REQUIRED OBJECT
The connection object is where the characteristics of a connection are maintained in a CIP device. An instance of the connection object is generated for every connection. That instance identifies the connection as explicit or implicit, sets the packet rate on implicit connections and holds other descriptive information on the connection. A connection object is removed when the connection is closed.
ASSEMBLY OBJECT CLASS 0x04OPTIONAL
The assembly object provides the interface to CIP devices communicating with a device over an implicit connection. Instances of an assembly object organize the data that is exchanged with external devices. An input assembly instance organizes the data that is transferred to external devices. An output assembly instance organizes the data that is transferred from external devices. Multiple assembly instances may be defined and an external device can choose (by instance ID) which assembly instance to use in the transfer. An explicit message only device has no assembly instances.
PARAMETER OBJECT CLASS 0x0FOPTIONAL
A parameter object provides a standard mechanism for a CIP device to make its configuration parameters publicly available to external devices. It provides complete identifying information for the configuration parameters of a CIP device.
NETWORK SPECIFIC LINK OBJECT CLASS 0xNNREQUIRED OBJECT
The network specific link object provides the information on the specific link (DeviceNet, EtherNet/IP, ControlNet) used to implement the CIP device. The object specifies attributes that describe the link, such as the node addresses and data rates. See the Chapter on EtherNet/IP operation over CIP for more details on the Link object for EtherNet/IP.
APPLICATION OBJECT CLASS IDs 0x64 to 0Xc7OPTIONAL
Application objects organize the specific data and services of a device. Vendors building CIP devices can choose to implement no application objects, one application object with all the data for a device or any number of application objects.

2. Application Objects

Application objects are the objects that define the data encapsulated by the device. These objects are specific to the device type and function. For example, a motor object on a drive system has attributes describing the frequency, current rating and motor size. An analog input object on an I/O device has attributes that define the type, resolution and current value for the analog input.

These application layer objects are predefined for a large number of common device types. All CIP devices with the same device type (drive systems, motion control, valve transducer, etc.) must contain an identical series of application objects. The series of application objects for a particular device type is known as the device profile. A large number of profiles for many device types have been defined. Supporting a device profile allows a user to easily understand and switch from a vendor of one device type to another vendor with that same device type.

A device vendor can also group application layer objects into assembly objects. These super objects contain attributes of one or more application layer objects. Assembly objects form a convenient package for transporting data between devices. For example, a vendor of a temperature controller with multiple temperature loops may define assemblies for each of the temperature loops and an assembly with data from both temperature loops. The user can then pick the assembly that is most suited for the application and how often to access each assembly. For example, one temperature assembly may be configured to report every time it changes state while the second may be configured to report every one-second regardless of a change in state.

Assemblies are usually predefined by the vendor, but CIP also defines a mechanism in which the user can dynamically create an assembly from application layer object attributes.

3. Vendor Specific Objects

Objects not found in the profile for a device class are termed vendor specific. These objects are included by the vendor as additional features of the device. The CIP protocol provides access to these vendor extension objects in exactly the same method as either application or required objects. This data is strictly of the vendor’s choosing and is organized in whatever method makes sense to the device vendor. In addition to specifying how device data is represented to the network, the CIP protocol specifies a number of different ways in which that data can be accessed such as cyclic, polled and change-of-state.

Advantages to EtherNet/IP

The advantages of the CIP protocol layer over Ethernet are numerous. Consistent device access means that a single configuration tool can configure CIP devices on different networks from a single access point without using vendor-specific software. The classification of all devices as objects decreases the training and startup required when new devices are brought online. EtherNet/IP provides improved response time and greater data throughput than DeviceNet and ControlNet. EtherNet/IP links devices from the sensor bus level to the control level to the enterprise level with a consistent application layer interface.

There are numerous application layer competitors to the EtherNet/IP protocol including Modbus/TCP from Groupe Schneider, Profinet from Siemens, and EtherCAT from Beckhoff. Unfortunately, space prevents a detailed review of each of these products. However, none of these competitors can provide the vendor support, flexibility and total architecture support offered by the implementation of CIP over Ethernet.

User Challenges of EtherNet/IP

EtherNet/IP protocol implementation is not without challenges. Two of the most important challenges to the first-time user include training and network configuration. One common problem is the lack of trained staff who understand both the IT fundamentals and the automation network. A collaborative effort between the IT and automation staffs is required to successfully implement the first Ethernet/IP protocol.

A second challenge is proper network configuration. Planning your Ethernet factory automation infrastructure is essential. Careful identification of all your control loops, choosing the correct routers, switches and paths and documenting your network properly are requisites for a communications network that meets your production goals and requires little ongoing maintenance.

Detractors of Ethernet applications on the factory floor often cite the lack of inherent determinism in Ethernet communications protocol to keep it out of automation applications. While true in the past, recent developments in intelligent switches have largely eliminated this argument. These switches create separate collision domains that offer the determinism required of almost all but the most demanding of automation applications.