IMDHMIControls LibraryShop main store

Explainer

What the CIP Identity object reveals about an EtherNet/IP device

Industrial networks Published 9 min read

Short answer

One Get Attribute Single request to CIP class 0x01, instance 1 identifies any EtherNet/IP device: attributes 1 to 7 return vendor ID, device type, product code, revision, a 16-bit status word, serial number and product name. Decode the status word by field — bits 4 to 7 device state, 8 to 11 faults, 12 to 13 keyswitch — and strip the length byte from attribute 7's product name.

On this page
  1. Which attributes does the CIP Identity object return?
  2. How do you send a Get Attribute Single request?
  3. How does the 16-bit status word decode bit by bit?
  4. What do the extended device state values mean?
  5. How do you decode the product name in attribute 7?
  6. How do attributes 1 and 3 identify the exact model?
  7. What do the revision and serial number attributes give you?
  8. When is an identity read worth building into your own tooling?
  9. Questions asked

Every EtherNet/IP device carries the same business card: the CIP Identity object at class 0x01, instance 1. One explicit request — Get Attribute Single, service code 0x0E — reads attributes 1 through 7 and returns vendor ID, device type, product code, revision, a 16-bit status word, serial number and product name. That is enough to inventory a mixed-vendor panel, verify a replacement before it mounts, or tell on a fault call whether the controller is executing logic with the keyswitch in Remote — without that vendor's software. This article gives the attribute map, the bit-by-bit status decode with a worked example, the length-prefixed product name format, and the decision for each case where the read pays off.

Which attributes does the CIP Identity object return? #

The Identity object is CIP class 0x01, instance 1, and its attributes 1 through 7 return, in order, the vendor ID, device type, product code, revision, 16-bit status word, serial number and product name — the full identification record of any EtherNet/IP device.

The CIP specification that ODVA publishes fixes this layout, so the same seven requests work on any vendor's device — controller, drive, I/O adapter or gateway. The first instance is the product itself; some devices publish extra instances for internal subsystems and the vendor manual lists those, but the first instance is the target you use by default. Attributes 1 to 6 arrive as binary numbers that decode with shifts, division and remainder; only attribute 7 needs string handling.

Attribute Name Data type What it gives you
1 Vendor ID UINT ODVA-assigned company number
2 Device Type UINT Product category code
3 Product Code UINT Model code within category and vendor
4 Revision WORD Major and minor revision, one byte each
5 Status WORD Ownership, device state, fault and keyswitch fields
6 Serial Number UDINT The unit's serial number
7 Product Name SHORT_STRING Length byte plus ASCII characters

How do you send a Get Attribute Single request? #

You send the CIP service Get Attribute Single, service code 0x0E, over EtherNet/IP explicit messaging on TCP port 44818, with a request path that names class 0x01, instance 1 and the one attribute you want; one request returns one attribute.

The request path carries three numbers in order — class, instance, attribute — and the reply carries exactly that attribute's value. A driver that wraps the service takes the same three numbers: a call patterned as BeginGetAttributeSingle(1, 1, 5) reads attribute 5 and hands back a transaction number. Store one number per outstanding request, because a shared receive event uses it to route each reply to the right decoder. The same request mechanics that read EtherNet/IP module register data with explicit messaging apply unchanged here, and in CODESYS the CIP GenericService instruction sends the identical service, as set out in reading and writing Logix tags from CODESYS with CIP GenericService.

An identity read is explicit messaging — the request-and-reply side of EtherNet/IP, separate from the implicit I/O exchange on UDP 2222 — which is why explicit and implicit EtherNet/IP messaging do not interwork. Read identity on demand, at commissioning, at replacement or on a fault call; it is identification data, not process data, and it has no place on a scan-rate poll list.

How does the 16-bit status word decode bit by bit? #

Attribute 5 is a 16-bit status word you read as five fields: bit 0 shows ownership, bit 2 shows configured state, bits 4 to 7 carry the extended device state, bits 8 to 11 carry fault flags, and bits 12 to 13 carry keyswitch position on controllers that have one.

Bits Field Reads as
0 Owned 1 when a connection owns the device
1 Reserved Ignore
2 Configured 1 when the device has applied its configuration
3 Reserved Ignore
4–7 Extended device state Value 0 to 7, next section
8 Minor recoverable fault 1 when set
9 Minor unrecoverable fault 1 when set
10 Major recoverable fault 1 when set
11 Major unrecoverable fault 1 when set
12–13 Keyswitch position 1 Run, 2 Program, 3 Remote
14–15 Not defined in the base object Leave unmapped

One safety note: the keyswitch field is a report for operator screens and diagnostics, not safety-rated feedback; a safety function keeps its own tested path through the real switch and the safety circuits, never through this status bit.

Worked example: an attribute 5 read returns 12389, shown as 0x3065 and in binary as 0011 0000 0110 0101. Division and remainder do the decode: 12389 shifted right by 4 leaves 774, and 774 mod 16 leaves 6 — the extended device state; shifted right by 8 leaves 48, and 48 mod 16 leaves 0 — no fault flags; shifted right by 12 leaves 3 — keyswitch in Remote. The low bits: 12389 mod 2 is 1, so the device is owned, and the same check two places higher is also 1, so it is configured. Decision: owned, configured, executing logic, keyswitch in Remote, no faults — a healthy running device.

status     = 12389                  # UINT reply to the attribute 5 read
owned      =  status        & 1     # bit 0      -> 1, owned
configured = (status >> 2)  & 1     # bit 2      -> 1, configured
state      = (status >> 4)  & 0x0F  # bits 4-7   -> 6, Run
faults     = (status >> 8)  & 0x0F  # bits 8-11  -> 0, none set
keyswitch  = (status >> 12) & 0x03  # bits 12-13 -> 3, Remote

Check that decode against the binary directly: 0011 0000 0110 0101 sets bit 0, bit 2, bits 5 and 6 — a state field of 0110, which sums to 4 plus 2, that is 6 — and bits 12 and 13, a field value of 3, and nothing else.

What do the extended device state values mean? #

The extended device state field in bits 4 to 7 takes the values 0 through 7 with documented meanings, and 6 is the one you will see most: programmable logic executing, the Run state.

Value Meaning
0 Unknown or self-testing
1 Firmware update in progress
2 Reserved
3 Reserved
4 Non-volatile configuration bad
5 Major fault — bit 10 or bit 11 is also set
6 Programmable logic executing (Run)
7 Programmable logic not executing (Idle or Program)

The field holds four bits, so a reply can carry 8 to 15; nothing in this documented set covers those, so print them as unmapped instead of inventing a meaning. Value 0 on a powered, linked device points to a power-up self-test that has yet to finish, so read again after a few seconds. Value 1 outside a planned firmware update means the device is mid-update right now, so wait instead of hunting a network fault. State 5 agrees with the fault bits by definition: bit 10 or bit 11 will be set alongside it.

How do you decode the product name in attribute 7? #

Attribute 7 is a CIP SHORT_STRING: the first byte holds the character count and the following bytes hold that many ASCII characters, so a reply that begins 09 31 37 spells a nine-character name whose first character is 1.

A reply of 09 31 37 35 36 2D 4C 38 33 45 decodes as follows: 0x09 is decimal 9, and the next nine bytes are the ASCII codes for 1, 7, 5, 6, hyphen, L, 8, 3 and E — the example product name 1756-L83E. Take characters from the second byte and stop at the declared length or at the end of the payload, whichever comes first; that second bound keeps a short or malformed reply from walking past its own data. Attributes 1 to 6 need none of this care, because they are numbers end to end.

How do attributes 1 and 3 identify the exact model? #

Attributes 1 and 3 together identify the model: the vendor ID says whose catalog to use and the product code picks the entry inside it, so vendor ID 1 with product code 55 names one specific controller family member.

ODVA assigns the vendor IDs, and number 1 belongs to Rockwell Automation, whose Allen-Bradley controllers fill the mapping below. Attribute 2 narrows the category — controller, drive, communications interface — and attribute 3 then picks one product inside that vendor and category. Keep your own table short: carry the codes your plant runs and leave the rest out. The mapping below is the lookup one identity-reader application carried for its Logix base.

Code Device in the example mapping
3 ControlLogix5550
15 SoftLogix5860 (1789-L60)
40 ControlLogix5550 (1756-L1)
41 FlexLogix5433
43 CompactLogix5320 (1769-L20)
44 CompactLogix5330 (1769-L30)
48 PowerFlex with DriveLogix5720
49 PowerFlex with DriveLogix5725
50 ControlLogix5553 (1756-L53)
51 ControlLogix5555 (1756-L55)
52 PowerFlex with DriveLogix5730
53 Studio 5000 Logix Emulate
54 ControlLogix5561 (1756-L61)
55 ControlLogix5562 (1756-L62)
56 ControlLogix5563 (1756-L63)
57 ControlLogix5564 (1756-L64)
64 CompactLogix5331 (1769-L31)
65 CompactLogix5335E (1769-L35E)
67 GuardLogix (1756-L61S)
68 GuardLogix (1756-L62S)
69 GuardLogix (1756-LSP)
72 CompactLogix (1768-L43)

An entry your table lacks is not a fault and not evidence of a bogus device: print the number as returned — code 103, not in your table, for example — and add the row once you have identified the unit.

What do the revision and serial number attributes give you? #

Attribute 4 packs the revision into a 16-bit word with the major revision in the high byte and the minor revision in the low byte, and attribute 6 returns the serial number as a plain 32-bit unsigned integer with no internal fields to decode.

A revision reply of 517 decodes as 0x0205: 517 div 256 gives 2 for the major byte and 517 mod 256 gives 5 for the minor byte — major revision 2, minor revision 5. The serial number needs no decode at all: file it exactly as received, with no byte swap and no base conversion. This revision is the number you compare whenever two controllers must run the same firmware — for example, matching a 1756-L62S against a 1756-LSP that share a battery-backup arrangement, which the notes on firmware compatibility and battery backup for the 1756-L62S and 1756-LSP walk through before either unit goes back into service.

When is an identity read worth building into your own tooling? #

An identity read earns its place wherever you must verify what is actually at an address — commissioning, spares control, midnight troubleshooting — because it is a short read-only request that answers on any EtherNet/IP device from any vendor without that vendor's software.

  • Commissioning and inventory: read all seven attributes once per device and file vendor ID, product code, revision, serial number and name with the cabinet location. Decision: one read per device, stored, never polled.
  • Fault calls: read attribute 5 from the controller and from each adapter before you touch wiring. Extended state 6 with clear fault bits says the path is alive and logic is executing, so the fault lies downstream; state 7 says the controller sits in Idle or Program; a set bit 10 or 11 says the controller itself is faulted and needs its fault cleared before the network matters. Decision: the status word triages the call before the first cabinet door opens.
  • Spares and replacements: read the identity of the unit in the crate and compare vendor ID, product code and revision with the asset record. Decision: nothing mounts until those three match.
  • The reader itself: keep one transaction number per outstanding request, accept only error-free replies that carry at least one value, and stop the string decode at the declared length or the end of the payload, whichever comes first.

Seven attributes, one service, every vendor's device: a single explicit read per device is the fastest verified answer to what the device is and whether it is healthy.

Questions asked

Does a Get Attribute Single read disturb a running device?

No. The service only reads, so the device changes nothing when it answers, and it is safe against a running machine. The real cost is capacity: each explicit request uses a session on the device, and devices accept a limited number of concurrent sessions. Read the identity once at commissioning and store the result rather than polling it like process data.

Where does the vendor ID number come from?

ODVA assigns one vendor ID to each company that implements CIP and publishes the mapping in its public vendor directory. Number 1 belongs to Rockwell Automation, so the Logix product-code tables sit under vendor ID 1. Look up any other number in the directory before you trust a decoder that guesses it.

Why does the product name from my own decoder begin with a stray character?

You decoded the raw bytes as a string and carried the length byte along as character one, so a nine-character name prints with an unprintable character in front of it. Drop the first byte and take exactly as many characters as it counts. Tools that return a ready-made string have already stripped the length byte, which is why the stray prefix never appears there.

Does the same Identity object answer on DeviceNet and ControlNet?

Yes. CIP is media-independent and the Identity object is required on every CIP device, so class 0x01, instance 1 answers with the same seven attributes on DeviceNet, ControlNet and EtherNet/IP alike. Only the transport changes underneath, so the attribute map, status decode and string format apply to a device on an older serial network the same as an Ethernet one.

Keep reading

  • How-to

    Read and write Logix tags from CODESYS with CIP GenericService

    Read a Logix tag from CODESYS with CIP service 16#4C against the tag's Symbol Object instance at class 16#6B: send a two-byte element-count body, expect a two-byte type word first (16#C4 is DINT), and take the DINT value from bytes 2-5. Write with service 16#4D, sending type word, element count, then data. Rebuild the name-to-instance table after every download or online edit, because the controller reassigns instance numbers.

    Industrial networks

  • How-to

    Read EtherNet/IP module register data with explicit messaging

    The iR-ETN remote I/O adapter exposes each analog module's error code through its Module Register CIP object: class 112, instance set to the module's slot number, attribute 16. A Studio 5000 MSG explicit message reads it in 2 bytes; the cyclic I/O connection never carries this register.

    Industrial networks

  • How-to

    Set up a CODESYS adapter for explicit CIP messaging to Logix

    Register the custom CIP object in the adapter during startup with RegisterCIPObject, point both Logix MSG instructions at the same Class, Instance and Attribute 3 with Get and Set Attribute Single, and keep the exchanged value at or under 468 bytes. A ten-element DINT array is 40 bytes, well inside the limit; verify with the write MSG DN bit and matching readback on both sides.

    Industrial networks