IMDHMIControls LibraryShop main store

Troubleshooting

Why a PCCC N-file address is not a CIP class instance path

Industrial networks Published 6 min read

Short answer

An N-file data-table address never translates into a CIP class, instance or attribute path. The values travel as PCCC file parameters — type, file number, element, count — inside the CIP execute-PCCC service on TCP port 44818. File-based SLC 500, PLC-5 and MicroLogix targets therefore need a PCCC-capable client or an OPC/DDE server, not a Logix tag library.

On this page
  1. Decode the address before you touch the network
  2. What list_identity, list_services and list_interfaces tell you
  3. The read that works: PCCC fields inside the execute-PCCC service
  4. Choose a client that speaks PCCC
  5. Decide by the family in the identity reply
  6. Symptoms and the decision for each case
  7. Verify the mapping read-only before anything writes
  8. Questions asked

You have a register list written as data-file addresses — N25:00 is the classic example, integer file 25, element 0 — and a controller that answers list_identity, list_services and list_interfaces on TCP port 44818, and you are hunting for the arithmetic that turns it into a CIP class/instance/attribute path. Stop hunting: there is no conversion. The address travels as PCCC parameters wrapped inside the CIP execute-PCCC service, and file-based targets — SLC 500, PLC-5 and MicroLogix — publish no tag list to browse. The fix is a client that speaks PCCC, or an OPC/DDE server that speaks it for you.

Decode the address before you touch the network #

The notation is a coordinate, not a name, and the fields it splits into are exactly what the read command carries:

  • File type letter: N integer, F float, B bit, T timer, C counter, R control, S status.
  • File number: which data file sits at that coordinate in the processor's data table.
  • Element, written zero-based, with a /bit suffix on bit files, as in B3:0/5.

So N25:00 decomposes to file type N, file number 25, element 0, and a ten-element read from there covers elements 0 through 9. Integer and bit elements are one 16-bit word each, floats are two, and timer, counter and control elements are three — the letter fixes the reply width, which is why a wrong type letter reads as garbage instead of an error.

What list_identity, list_services and list_interfaces tell you #

list_identity is the one worth reading: its product name string names the family, either the processor itself or an Ethernet module in front of it, and that decision drives everything else.

list_services and list_interfaces will not tell you anything about the data table. A single Communications service entry — for example capability 32 with type_id 256 — states only that the device implements EtherNet/IP encapsulation, and an interface count of 0 is a normal reply from a processor with no optional interfaces. Re-running them never produces a translation table, and a CIP attribute read aimed at a guessed class and instance returns a path error, because no object holds the data table at a path. The table is reachable only through the PCCC service.

The read that works: PCCC fields inside the execute-PCCC service #

SLC 500, PLC-5 and MicroLogix processors speak PCCC, the Programmable Controller Communications Commands. Over a serial link those commands ride DF1 — and why DF1 reads work on an SLC 500 but not a PLC-5 is its own subject — while over EtherNet/IP the same command set is wrapped: the CIP request path selects the execute-PCCC service and the PCCC command rides in the request body, with the address carried as explicit fields.

The read command is the Protected Typed Logical Read with three address fields: command byte 0x0F, function 0xA2. Writes use 0xAA. The request names file type, file number, starting element and element count, and the reply returns exactly that many elements.

Worked example: one read for ten consecutive integers #

Say the register list starts at N25:00 and the next nine HMI points follow it. Build one read instead of ten:

  • Command 0x0F, function 0xA2.
  • Element count 10, written as a 16-bit little-endian field: 0x0A 0x00.
  • Typed address fields: file type N, file number 25, starting element 0.

The reply carries 10 elements × 2 bytes per 16-bit integer word = 20 data bytes. If the first two bytes are 0x07 0xD0, the value decodes little-endian as 0x07D0 = 7 × 256 + 208 = 2000. The read reaches element 0 + 10 − 1 = 9, so one transaction covers the whole run. That decomposition — type, file, element, count — is the entire translation; there is no arithmetic from it to a class, instance or attribute, because the data table is not an object with attributes but memory named by file coordinates.

Choose a client that speaks PCCC #

What works:

  • A client library that parses data-file addresses and builds PCCC commands. Several open-source EtherNet/IP stacks do; check the file-type letters, bit access and element-count limits the library documents.
  • An OPC or DDE server between your code and the processor. It speaks PCCC for you and republishes the values — this is how a SCADA client reads a small PLC over EtherNet/IP in practice — and it is a licensed component, so confirm the license before you plan around it.
  • A data-hub or historian gateway that polls the processor and lands the values in SQL, when the goal is a database rather than a live client.

What fails: a Logix tag library. It walks the symbol object and sends symbolic tag names — exactly right for tag-based controllers, exactly wrong here, because a file-based processor has no tag directory to enumerate. Reading and writing Logix tags from CODESYS with CIP GenericService belongs to the tag-based side only.

Decide by the family in the identity reply #

  • SLC 500, PLC-5 or MicroLogix, or an Ethernet module in front of one: file-based target. Send PCCC fields; there is no path to compute.
  • ControlLogix or CompactLogix controller: tag-based target. The address list came from a legacy machine or a mapped copy, so read symbolic tags instead.
  • Ethernet bridge or adapter with the processor behind it: you need the route to the processor, and the classic case is reaching PLC-5 and SLC 500 data through a ControlLogix DH+ bridge.

A tag-based controller can still answer legacy-style reads when the project defines a PLC/SLC address mapping, but someone with programming access has to configure that mapping — you cannot create it from the outside.

Symptoms and the decision for each case #

Symptom Cause Decision
One Communications service in list_services, interface count 0 Normal encapsulation replies Stop mining them and build the PCCC read
CIP read to a guessed class/instance returns a path or service error No object holds the data table at that path Decompose the address into PCCC fields
Identity names an SLC 500, PLC-5 or MicroLogix File-based target PCCC-capable client or OPC/DDE server
Identity names a ControlLogix or CompactLogix Tag-based target; the address list is legacy Symbolic tag reads, or the project's PLC/SLC mapping
Logix tag library returns nothing for the data-file address Wrong service for this family Switch to a PCCC client
Values arrive but are nonsense Wrong type letter or word order Read integer and float files separately; decode words little-endian

Verify the mapping read-only before anything writes #

Work down this list against the running machine:

  • Pick one register that shows a live value on the HMI or a local display, such as a setpoint or a timer accumulator.
  • Read it with the new client and match value, scaling and sign.
  • Read the next element and match it to the next HMI point; an off-by-one in the element offset shows up here.
  • Read an integer file and a float file separately; a type-letter mistake shows up as nonsense floats or sign errors on words above 32767.
  • Poll for several minutes and watch the statuses; repeated timeouts mean the processor's small pool of concurrent sessions is oversubscribed.

Keep the first pass read-only, and never write test values into a running machine's data files to find out what they hold — the logic that owns those files will act on what you write.

The decision, in every case: keep a file-based address in field form and hand it to a client that speaks PCCC, and convert to CIP paths and tag names only when the identity reply proves the target is tag-based. The address list you were given is not the wrong format; it is the native format of the machine it came from.

Questions asked

Can a ControlLogix answer a PCCC read for an N-file address?

Only when the project defines a PLC/SLC address mapping. Tag-based Logix controllers resolve symbolic names natively, and the mapping feature exists so legacy PLC-5 and SLC-style typed reads can reach mapped tags. Someone with programming access must configure the mapping in the project; without it the read returns an error. Decide from the product name string in the identity reply, not from the address list.

Does an empty list_interfaces reply mean the processor is misconfigured?

No. list_interfaces enumerates the optional CIP interfaces a device exposes, and many processors expose none, so a count of 0 is a valid reply. Re-running it never fills the list, and neither it nor list_services carries any data-table information. Treat both replies as confirmation the device speaks EtherNet/IP encapsulation, then move straight to the PCCC read.

How far can a single block read run into a data file?

Up to the last element of that file. The processor knows each file's length, and a read that runs past the end returns an error status instead of wrapping around. Get the file length from the machine's data map or from a project upload rather than probing offsets with reads on a running line.

My poller runs for a while, then the HMI loses its connection. What changed?

Possibly nothing you can see on the network: these processors accept only a few concurrent EtherNet/IP sessions, and a second client can displace the session the HMI already holds. Run one polling client, lengthen the polling period, and stagger the requests so they do not land as a burst. Coordinate with whoever commissioned the SCADA link before adding clients.

Keep reading

  • Selection guide

    Connecting ControlLogix to RS232 and RS485 serial devices

    Convert the RS232 devices to RS485 at the electrical layer, then pick one master for the whole pair: 1734 ASCII modules for fixed-length or delimited frames, an in-chassis Modbus RTU module for a pure Modbus bus, or an EtherNet/IP-to-serial gateway with a protocol builder when variable-length checksummed frames share the wire with Modbus RTU. One master serializes every transaction behind the 3.5-character silent gap, 3.65 ms at 9600 baud.

    Industrial networks

  • How-to

    Mapping PLC/SLC messages so a DF1 panel reads a ControlLogix

    A DF1 panel that addresses PLC-5/SLC data files cannot read ControlLogix tags directly; you map the file number to a controller-scope INT array with Logic > Map PLC/SLC Messages, so N7:4 returns OIArray[4]. Serial settings and PCCC-style requests must also match.

    Industrial networks

  • How-to

    Read and write IO-Link parameters from CODESYS over EtherNet/IP

    Read ISDU parameters with an EtherNet/IP explicit message to CIP class 16#83, instance set to the physical port, service 75 for reads and 76 for writes, and gate every request on the cyclic PQI byte (bit 7 PQ and bit 5 DevCom). Identify the device on each port with an ISDU read of index 19, subindex 0.

    Industrial networks