Skip to Content
On this page

ControlLogix CIP

This plugin reads and writes Allen-Bradley ControlLogix controllers by EtherNet/IP tag name. It is named ControlLogix CIP in the device selector.

See Collection Configuration for common channel, device, variable, and data-format settings. This page covers only ControlLogix routing, tag addresses, and debug.

Compatible devices and models

Device series / model examplesConnection requirements
ControlLogix 1756 (for example, 1756-L82E)The controller must expose EtherNet/IP tag services. Set the route, backplane and slot for the actual CPU Ethernet port or chassis Ethernet module.
CompactLogix 5370 (for example, 1769-L33ER), 5380 (for example, 5069-L306ER)Use the controller’s EtherNet/IP interface. Match tag external access, data type and scope to the variable configuration.

Open the plugin

Prepare the controller in Studio 5000

  1. Open the project matching the CPU and firmware in Logix Designer. Confirm the first Ethernet interface’s IP, subnet, gateway and CPU slot. Allow TCP 44818 from the gateway; the Ethernet module’s slot is not necessarily the CPU slot.

  2. Right-click Controller Organizer → Controller Tags → New Tag. Create a separate Base tag DemoValue, Data Type DINT, at controller scope. For an array such as Samples : INT[10], valid indices are 0–9.

    Official Studio 5000 illustration: creating a controller tag

  3. Choose Read Only in External Access, or Read/Write for an approved test tag. None blocks external reads. An alias inherits its base tag’s access. Logix Designer monitoring does not prove external access.

    Official Tag Editor showing External Access options

  4. Download through the site’s normal change procedure, monitor the tag and record a known value such as 1234. Confirm controller logic does not continually overwrite it. A program-local address must include its scope, for example Program:MainProgram.DemoValue.

The figures are from 1756-PM004L, I/O and Tag Data , pages 59 and 61; see pages 31–35 and 57–62 for creation, arrays and access. Figure names remain the manufacturer’s examples. 1756-PM020I, Data Access , pages 16–38, describes tag addressing, services, fragmentation and multiple services.

Open Development Configuration → Collection Configuration, create a TCP client channel, then create a device using ControlLogix CIP.

ControlLogix TCP client and port 44818, Chinese interface

Selecting ControlLogix CIP and its channel

Supported scope

ItemDescription
ChannelTCP client.
RouteBackplane / Slot, an explicit multi-hop CIP port path, or direct to the first interface’s Message Router.
AddressController tag name.
Data typesBoolean, Byte, common signed/unsigned integers, Float, Double, and String. Complete UDTs, STRING arrays, TIME, and Decimal require separate controller-specific verification.

Plugin properties

SettingDefaultDescription
Tag addressing mode (ProtocolMode)SymbolicChoose Symbolic, LogicalNonBlocking, or LogicalBlocking. Use symbolic addressing until current project metadata has been browsed.
Target slot0Slot containing the CPU module in the ControlLogix chassis.
Backplane port1Backplane port or path segment used to reach the CPU.
CIP route (RoutePath)EmptyOrdered port/link pairs, for example 1,0,2,192.168.1.20,1,3. An explicit route takes precedence over Backplane / Slot.
Connection size (bytes) (ConnectionSize)500Requested O→T/T→O capacity, from 500 to 4000 bytes. Values through 511 use Forward Open; larger values use Large Forward Open. A rejected capacity falls back to smaller candidates through 500.
Inactivity watchdog (seconds, 0 disables) (InactivityWatchdog)32Range 0–86400 seconds. Close and reopen the connected session after this period without business traffic.
MaxPack500Range 1–1980 bytes. Budget for one connected CIP request, including encoded paths, service headers, offset tables, CPF, and data.
Read/write timeout3000 msDevice request timeout for session, connection and business responses. Separate from channel TCP connect/cache timeouts and the inactivity watchdog.
Pre-frame delay0 msAdditional delay before each physical request; not a collection interval or RPI.
Reverse string byte wordsOffSwaps adjacent bytes within string words. Start with it off for standard Logix STRING; it cannot alter LEN or DATA capacity.
Data orderDCBADefault little-endian conversion. Check known DINT and REAL values; individual variables can override it.
Failure retries3Collection-layer retries. The driver also allows one connection recovery; repeated writes are not an atomic or exactly-once operation.
Read/write duty cycle3Minimum 1. Schedule a read after n writes under continuous write traffic; not a percentage or array length.
Write priorityOffAllows a write to cancel an active read. Leave off for initial read-only collection.

ControlLogix routing, addressing mode and connection properties

ControlLogix runtime, packet and format properties

The effective request budget is the minimum of MaxPack, the negotiated ActualConnectionSize, and the protocol limit. ActualConnectionSize is a read-only runtime value.

For a CPU in a chassis, the slot must match its installed location. Configure CompactLogix or other routing layouts according to the actual controller path.

If the target explicitly reports that Large Forward Open is unsupported, the driver tries a standard 500-byte connection directly.

CIP routing

Set the channel’s RemoteUrl to the first EtherNet/IP interface, for example 192.168.1.10:44818. Set the device’s CIP route to the ports and link addresses after that interface. Keep tag names in variable addresses.

RouteMeaning
Empty, Backplane=1, Slot=2Use the single-hop path 1,2.
1,0,2,192.168.1.20,1,3Cross port 1 to slot 0, port 2 to the specified IP address, then port 1 to slot 3.
directUse the first interface’s Message Router without a port hop. That interface must expose the required tag services.
15,hex:AABBCCUse extended port 15 and an explicit raw link address required by the target protocol.

Ports range from 1 to 65535. Link addresses accept a decimal byte from 0 to 255, a canonical IPv4 address, or hex: followed by complete hexadecimal bytes. Hostnames are not resolved. A link address can contain up to 255 bytes; the encoded port route can contain up to 506 bytes, and configuration text up to 4096 characters. All interfaces along the path must support the requested route and connection capacity.

Save and restart the device, then Refresh the debug page to check the actual CIP route and negotiated capacity. Forward Close uses the same path as Forward Open. Changing a route requires a new connection.

Address rules

Enter the full controller tag name, for example TankLevel. The tag name, case, array index, and program scope must match the PLC project. Configure the variable’s common Array Length for arrays.

Create DemoValue as Int32, array length 1, read-only, for a PLC DINT. There are no extra variable plugin properties. Keep stable tag names in all three modes; do not enter Physical addresses or Symbol Instance IDs manually.

ControlLogix DemoValue as an Int32 scalar

Address editor fieldMeaning
Tag pathNamed segments; Motor and Speed become Motor.Speed. Adding a segment does not create another variable.
Tag/member nameActual engineering name. A segment cannot contain .[];=. Use Program:MainProgram as the first segment for a program-local path.
Array indicesElement start, not byte offset. Use the PLC’s declared dimensions; the variable’s separate array length sets the element count. Each index is 0–65535 and must be within actual bounds.
Byte-order overrideInherits DCBA when unset. Affects conversion, not the PLC type, route or service.
Encoding overrideString decoding only; string write payloads still use UTF-8.
String byte lengthDefault conversion capacity 100 bytes. Confirm actual DATA capacity; bytes are not characters or array elements.
BCD overrideLeave unset for normal CIP numbers. Use only for data actually stored in the selected representation.
Variable string length overrideLength-based conversion by default. Cannot increase PLC STRING capacity or enable STRING arrays.

ControlLogix tag path, indices and conversion overrides

Examples: for Samples : INT[10] with elements 3–5 equal to 100, 200 and 300, enter Samples[3], Int16, length 3. For Motor.Speed : REAL = 12.5, enter Motor.Speed, Float, length 1. Use Program:MainProgram.Counter for a local Counter tag.

Data layout and fragmentation

BOOL scalars are individual logical values. BOOL arrays use little-endian DWORD packing: 32 logical elements per wire DWORD. Confirm boundaries such as 31/32/33 elements instead of interpreting them as one byte per BOOL.

String reads validate the structure identifier, LEN and returned data. Writes update .LEN and .DATA[0] using UTF-8 byte length; odd byte payloads are padded while LEN retains the unpadded length. Empty strings set LEN=0. Check the actual controller’s DATA capacity. Separate subservices can fail, so this is not an atomic update. STRING arrays and complete UDTs need separate verification.

The driver computes array fragments from encoded paths, element widths, BOOL DWORD packing, MaxPack and ActualConnectionSize. It checks service/type/status/offsets and does not replay fragments already confirmed when cancellation occurs. A tag whose minimum request cannot fit returns a budget error.

Logical modes require a current project snapshot: reads use Physical metadata for firmware V20 and earlier or Symbol Instance for V21 and later; writes use Symbol Instance. After an online edit, download or changed snapshot, refresh the directory before using these mappings. Both Logical choices share the current address-conversion contract.

Special methods

This plugin has no additional special methods. Variables use tag names directly.

Device debug

LogixHost software-server example

Use the EthernetIPSharp LogixHost example . Keep its V32.11 identity and server creation code. Replace its tag initialization with the following, set the listener to await adapter.ListenAsync(IPAddress.Loopback, 15018);, and update the console address message to match.

logix.Tags.AddTag("flag", LogixDataTypes.BOOL).Write(0, true); logix.Tags.AddTag("intValue", LogixDataTypes.INT).Write(0, (short)1234); logix.Tags.AddTag("rate", LogixDataTypes.DINT).Write(0, 534); logix.Tags.AddTag("temperature", LogixDataTypes.REAL).Write(0, 72.5f); var counts = logix.Tags.AddTag("counts", LogixDataTypes.INT, elementCount: 10); for (int i = 0; i < counts.ElementCount; i++) counts.Write(i * counts.ElementSize, (short)(100 + i)); logix.Tags.AddTag("Program:MainProgram", LogixDataTypes.DINT); logix.Tags.AddTag("Program:MainProgram.ProgramCounter", LogixDataTypes.DINT).Write(0, 2026); var template = logix.Tags.AddTemplate("STRING", new TemplateMember("LEN", LogixDataTypes.DINT), new TemplateMember("DATA", LogixDataTypes.SINT, LogixDataTypes.StringMaxLength)); var textTag = logix.Tags.AddTag("TextTag", template); var bytes = System.Text.Encoding.UTF8.GetBytes("A中"); textTag.SetData(BitConverter.GetBytes(bytes.Length)); textTag.SetData(bytes, LogixDataTypes.StringDataOffset);

Run dotnet run --project tests/LogixHost/LogixHost.csproj from the project root and leave the console open. Press Ctrl+C to stop. The original program uses a fixed port 44818; edit the listener before running it. Adding numeric command-line arguments to that original program does not change its port.

The server listens on loopback 127.0.0.1:15018. The initialization sets rate : DINT = 534, intValue : INT = 1234, temperature : REAL = 72.5, flag : BOOL = true, and counts : INT[10] to 100–109. TextTag contains UTF-8 A中 with a 4-byte LEN; program tag ProgramCounter is 2026. Use the address below when the gateway and server run on the same computer.

Gateway TCP client targeting LogixHost at 127.0.0.1:15018

Select ControlLogix CIP, Symbolic, slot 0 and backplane 1, with an empty CIP route. Set connection size and request budget to500 bytes. Start with rate / Int32 / length 1, then add the tags shown below. Use counts / Int16 / length 3 for the zero-start array. This software server ignores the start index in counts[3]; a returned100 is not element3, whose initialized value is103.

ControlLogix software settings: Symbolic, slot 0, backplane 1 and 500 bytes

Current cyclic reads from the local Logix software endpoint 127.0.0.1:15018 returned DINT rate=534, REAL temperature=72.5, program tag Program:MainProgram.ProgramCounter=2026, BOOL flag=true, STRING TextTag=A中, and the first three INT elements of counts as [100,101,102].

ControlLogix software scalar, program, string and zero-start array results

Open Development Configuration → Collection Configuration, select the ControlLogix device and enable approved method calls in its basic settings. Save and refresh the debug object, then select Protocol Debug → Operations. The refresh action is unavailable for a disabled device, missing runtime or disallowed method calls.

FeaturePurpose
OperationsRefresh, filter, page, export, and import the controller’s readable tags.
Channel Log / Device LogInspect session establishment, CIP requests, responses, and connection errors from the workspace tabs.

Browse, export, and import tags

Click Refresh tag directory to load global and Program Scope tags. The summary distinguishes the snapshot’s total tag count, filtered root count, and importable count, and shows the actual CIP route and negotiated connection capacity.

Expand Program, structure, or array parents to load their direct children. Pagination uses root nodes: the page sizes of 20, 50, and 100 do not count expanded child rows. Search by tag or template name; matching children’s ancestors remain visible so you can expand the path. Check each leaf’s type, dimensions, and External Access before importing.

Selecting a parent also selects every descendant under the current filter, including children that have not been expanded. Clearing a parent clears those descendants. Header selection affects the current page’s roots and their descendants; other pages retain their selection. Selections use stable Symbolic addresses and survive filter changes, so check the selected count before export. Refreshing the directory or changing devices clears old selections.

Export uses the selected tags, or all importable tags matching the current filter when no rows are selected. Structure containers and unsupported or unreadable tags are skipped. Import shows conflicts before confirmation and requires write permission.

Current gateway browsing a local software tag directory and filtering rate

This software endpoint reports an actual connection size of 500 B and route 1,0. Tags with External Access None (3) cannot be imported. Check the controller tag permissions and leaf types, then refresh the directory.

Functions

FunctionPurpose
Read and writeRead a confirmed point and write only to an approved test point.
Channel Log / Device LogView session, protocol status, and error details.

Verify the configuration

  1. Read one known scalar tag and verify its value and data type.
  2. Confirm session creation and a valid response in Channel Log or Device Log.
  3. Then verify array or string tags. Write only to an approved test tag.

Troubleshooting

SymptomCheck
Session cannot be establishedController IP, network, EtherNet/IP service, and existing connection ownership.
Route failsCheck the first interface in RemoteUrl, then each port/link pair and CPU slot. An explicit CIP route overrides Backplane / Slot. Capacities above 511 bytes also require Large Forward Open support.
Tag is not foundTag name, case, program scope, and array index.
Value is incorrectData type, array length, and actual PLC tag type.
Write failsController mode, tag permission, variable permission, and field interlock.