IMDHMIControls LibraryShop main store

Troubleshooting

Why an MSG connection failure points to the message path

Industrial networks Published 8 min read By IMDHMI controls team

Short answer

An MSG connection failure almost always means the message path is wrong, not the data. An older CompactLogix with an RS-232 port and no front USB needs the full route 1,1,2,destination IP, because the Ethernet interface sits on the backplane as a separate device; a 5370-series controller with a front USB port accepts the short route 2,destination IP. Set the receiving tag to INT to match 16-bit MicroLogix N registers.

On this page
  1. Why does the MSG instruction report connection failure?
  2. How do you tell a 5370 CompactLogix from an older one?
  3. What path sends the MSG from an older CompactLogix to a MicroLogix 1100?
  4. When is the shorter MSG path enough?
  5. Should the destination tag be INT or DINT?
  6. Why does the MicroLogix stay out of the CompactLogix I/O tree?
  7. How do you verify the MSG read after the fix?
  8. What if the connection failure remains after every check?
  9. Questions asked

A connection failure on this message is a path fault before it is anything else. On an older CompactLogix with an RS-232 port and no front USB port, an MSG to a MicroLogix 1100 must name every hop between the two controllers: the backplane, the Ethernet interface sitting on it, then the port that leaves for the destination. A 5370-series controller, the one with a front USB port, reaches the same peer with the port number and the address alone. Set the receiving tag to INT, because a MicroLogix N register is a 16-bit integer, and keep the MicroLogix out of the CompactLogix I/O tree, which has no role in this exchange. The sections below identify the controller from its ports, build the matching path, fix the tag type and prove the read with one controlled message.

Why does the MSG instruction report connection failure? #

A connection failure means the message never established its link to the destination, so the fault sits in the path, the destination address or the reachability between the two controllers, not in the tag mapping that carries the data afterwards. The instruction works in two layers: it first asks the destination for a connection, and only when that link exists does it move any register data. The report arrives immediately and on every trigger, before a single N file value changes, which is why tag and type changes cannot clear it on their own.

The MSG used here is an explicit message, the same request-and-response pattern as reading EtherNet/IP module register data with explicit messaging, and it inherits the same rule: every hop between the two controllers must appear in the path, in order.

How do you tell a 5370 CompactLogix from an older one? #

Look at the front panel before you touch the path: a front USB port identifies a 5370-series CompactLogix and allows the short route, while an RS-232 port with no USB identifies the older architecture whose Ethernet interface sits on the backplane as a separate device.

This check decides the route, so make it before any edit to the message. A 5370-series controller carries no serial port of its own: the documented way to reach an RS-232 network from one is an added 1734-232ASC module at firmware revision 4.002 or later, which is exactly why a serial jack on the controller marks the older family. The controller in the reported case has an RS-232 port and no USB port, so its message must cross from the CPU over the backplane to the Ethernet interface before it can leave for the network. Decide from the ports on the chassis in front of you, not from a program comment or a different panel elsewhere in the plant. The two front panels and the paths that fit them:

Front panel Path that fits
RS-232 port, no USB port 1,1,2, then the destination IP
Front USB port (5370 series) 2, then the destination IP

What path sends the MSG from an older CompactLogix to a MicroLogix 1100? #

An older CompactLogix reads a MicroLogix 1100 with the path 1,1,2,192.168.105.41, where each element walks the message from the CPU across the backplane to the Ethernet interface and out to the destination address.

Enter it as alternating port and address pairs, and read each element as one instruction to the router inside the sending controller:

  • 1 — port: leave the CPU for its backplane.
  • 1 — address: the Ethernet interface, which sits at address 1 on that backplane.
  • 2 — port: the interface's Ethernet port, leaving toward the plant network.
  • 192.168.105.41 — address: the MicroLogix 1100 itself, at the IP address configured in its Ethernet setup.

That sequence is the whole repair in the reported case. The attempts that failed used the two-element form, which begins at the Ethernet port of the CPU itself — a port this older controller does not have — so the request stopped before it ever reached the interface. A second fault hid inside the same string: the octets as typed were 192, 158, 105 and 41, and the second octet reads 158 where the MicroLogix holds 168. One digit sends the request toward a different network. Compare all four octets character by character against the address configured in the MicroLogix before blaming anything else.

When is the shorter MSG path enough? #

A 5370-series CompactLogix reaches the same MicroLogix with 2,192.168.105.41 alone, because its Ethernet port belongs to the controller itself and the message leaves without crossing the backplane to a separate interface.

The short form begins at port 2, the CPU's own Ethernet port, and it is valid only where that port exists. Entered on an older controller, it skips the CPU-to-interface hop and the failure returns on every trigger, no matter how the destination tag is declared. Spaces after the commas change nothing; the number of elements and their order change everything. Once one route works it also scales: the same field-by-field logic is how one MSG route reaches multiple Modbus TCP slaves, with only the final address changing from peer to peer.

Should the destination tag be INT or DINT? #

Set the receiving tag to INT: a MicroLogix N register stores a 16-bit integer, so the CompactLogix destination must be declared INT as well, and a tag name that suggests a wider value does not make it one.

Keep the two fault layers separate while you work: the route decides whether the message arrives, and the type decides whether the returned register fits once it does. The INT change alone could never clear the reported failure, and it did not — the route was still short two elements. After the route works, the type still decides the result: read one N register into one INT, and read a block into an INT array with one element per register. Do not substitute a DINT array because 32-bit tags are the habit elsewhere in the program; that changes the element width and scrambles every value after the first. A write in the other direction maps the same way.

The N file you are reading is a data-table address on the MicroLogix side. If you ever map the same registers from a different client, the distinction in why a PCCC N-file address is not a CIP class instance path tells you which addressing scheme each client expects.

Why does the MicroLogix stay out of the CompactLogix I/O tree? #

Leave the MicroLogix 1100 out of the CompactLogix I/O tree: the two controllers cannot hold a cyclic I/O connection with each other, and a tree entry for a peer that will never produce one can interfere with the explicit messages you actually need.

The I/O tree is for devices that hold scheduled, cyclic connections, and this exchange is explicit messaging on demand. The MSG instruction establishes its own connection when it executes: a ControlLogix-family system sets up connections for its communication links as it needs them, and an explicit message manages that link without any tree entry. If an entry for the MicroLogix was added while the fault was being chased, delete it and retest. The working exchange in the reported case ran with no tree entry at all.

How do you verify the MSG read after the fix? #

Prove the repair with one controlled read: write -1 into a MicroLogix N register, trigger the MSG once, and confirm -1 arrives in the CompactLogix INT destination, because all 16 bits set can only read back correctly when the destination type is right.

The arithmetic behind the test: a 16-bit register holding every bit set is -1 as a signed value, and the same bits read 65535 when interpreted as an unsigned value, so the sign on the received word tells you the width survived the trip. Work the list once, in order:

  1. Remove any MicroLogix entry that was added to the I/O tree during the earlier attempts.
  2. Enter the path that matches the front panel, as one continuous sequence of port and address pairs.
  3. Compare all four destination octets character by character against the address configured in the MicroLogix itself.
  4. Set the destination tag to INT, or to an INT array with one element per register requested.
  5. Trigger one execution and watch the completion and error status; retriggering the rung while the instruction is still in flight can bury the first useful failure.
  6. Change the source value, trigger again, and confirm the new value arrives — a single unchanged value proves nothing about the reads that follow.

What if the connection failure remains after every check? #

If the connection failure survives a corrected path, walk the checks in order from the CPU outward, because each one eliminates a whole layer of the route: hardware identification, element order, address octets, then ordinary Ethernet reachability between the two configured interfaces.

  • Re-identify the controller from its own ports; a 5370-series panel elsewhere in the plant proves nothing about the chassis you are editing.
  • Rebuild the path as port and address pairs and count the elements; a dropped element fails as completely as a wrong one.
  • Read the destination address out of the MicroLogix's own Ethernet configuration, not out of a note, a drawing or a spreadsheet.
  • Test plain network reachability: both controllers on the subnet you intend, masks and gateways as designed, and a ping from a laptop on the same switch.

Resist hardware changes at this stage, because no added module repairs a missing element in a path string. A ping, when you run one, proves the network layer only; it cannot vouch for the elements between the controllers. Judge the route before the payload: only when the message completes do data faults become visible. The habit is not Ethernet-specific either — on a legacy DH+ network, the same hop-by-hop check is how the DH+ buffer-not-armed and destination-has-no-buffers errors on an SLC-5/04 network get sorted out.

Questions asked

What error codes does a failed MSG instruction report?

The fault appears as an error code in the message instruction's status word. The manufacturer's MSG troubleshooting guide lists 16#0203 and 16#0204 as common codes on ControlLogix and CompactLogix controllers, and 7 and 37 as their counterparts on MicroLogix and SLC controllers, with the documented cause of each code.

Does the MicroLogix 1100 need an extra Ethernet module for this exchange?

No. The MicroLogix 1100 carries its own Ethernet port and joins the message path through it, so a separate Ethernet module adds nothing; the working exchange in this case ran entirely between the built-in ports. Spend the effort on the path string and the destination tag type instead, and keep the peer out of the I/O tree.

Why did 2,192.158.105.41 fail even after the destination tag was changed to INT?

Two faults stacked in that attempt. The path skipped the backplane hops that an RS-232-port controller requires, and the second octet read 158 instead of 168, which sends the request toward a different network. Either fault alone produces a connection failure, and no tag type change can repair a route that never arrives.

Does the same route style reach other Ethernet peers from the same controller?

Yes. The hops in front of the path describe the sending controller only, so they stay identical for every peer; the final field changes to each device's address. Read the destination list one device at a time and count the elements before you add peers, because the sequence must still match the hardware the packet actually crosses.

Keep reading

  • Troubleshooting

    Fixing a TwinCAT EtherNet/IP slave connection from an Omron PLC

    The CIP1 fault is a Forward Open mismatch: each Omron direction must carry the full serialized TwinCAT assembly, not the process variables alone. With 2 bytes in and 2 bytes out, the 4-byte ConnCtrl on outputs and ConnState on inputs make each direction 6 bytes, and the instances must follow producer and consumer roles. If a capture shows the request and a rejection, read the sizes and instances the originator actually serialized.

    Industrial networks

  • Troubleshooting

    Reaching PLC-5 and SLC 500 data through a ControlLogix DH+ bridge

    Yes. An OPC UA server reaches PLC-5 and SLC 500 processors through a ControlLogix Ethernet-to-DH+ bridge when its Allen-Bradley driver documents routed legacy access. Confirm the driver, inventory the bridge modules, build each connection path to the DH+ node, and prove one read — the 1756-DHRIO carries 32 connections per DH+ channel.

    Industrial networks

  • Troubleshooting

    Fix EtherNet/IP HMI access to an older SLC 5/05

    The RSLinx Ethernet driver reaches the controller because early SLC 5/05 firmware speaks CSP, the AB Ethernet protocol that predates EtherNet/IP; an EtherNet/IP HMI driver cannot open a session with it. Update the processor: a 1747-L552 Series A at OS500 Series A FRN 1 accepted a ControlFLASH update to FRN 11 and then communicated with an EtherNet/IP HMI. Updated or not, a 5/05 never accepts EtherNet/IP I/O connections.

    Industrial networks