IMD SolutionComputing LibraryShop main store

Troubleshooting

Why a Reading Tag Group timeout persists after PLC reconnect

Edge computing and IIoT Published 6 min read By IMD Solution engineering team

Short answer

The Reading Tag Group timeout from node-red-contrib-cip-ethernet-ip is a connection-interruption symptom, not a tag-configuration fault: an unplugged CompactLogix cannot answer the grouped read, and after connectivity returns the node can keep the stale error until the project is redeployed. Verify PLC reachability first, keep the tag names unchanged, redeploy as a controlled reset, then confirm tag values actually update rather than only the error disappearing.

On this page
  1. What the message names
  2. Why an unplugged controller times out the group read
  3. Check reachability before touching the tag list
  4. A disconnect test with the arithmetic
  5. Redeploy as the controlled reset
  6. Prove recovery on changing values
  7. The decision for each case
  8. Questions asked

When node-red-contrib-cip-ethernet-ip reports Error communicating with the PLC: Error: TIMEOUT occurred while writing Reading Tag Group while the CompactLogix values keep arriving, the tag list is not the fault. In the reported setup everything reads fine until the controller is unplugged; from then on the message repeats — values still arrive — and only redeploying the Node-RED project clears it, even when the deploy just moves a node. The order of work is therefore fixed: confirm the controller is reachable, leave the tag names exactly as they were, redeploy as a controlled reset, and prove recovery by watching values update. The sections below separate that case from the genuine connection and compatibility faults that print the same message.

What the message names #

The string names an operation, not a tag. With the All Tags option the node gathers the configured variables into a tag group and issues the read as one operation — the Reading Tag Group the error refers to — and the message means that operation did not complete inside the node's wait. A wrong tag name does not behave this way: it fails on every read from the first deploy, with the cable plugged in or not. The reported combination — correct values plus a repeating group timeout — shows reads completing between failed operations, a pattern a broken link or a half-recovered session produces, so read the message against the connection, not against the tag list. The wait itself is not printed anywhere in the text; the node's cycle time for reading the variables is a configuration value, so read it from the node's edit panel before concluding anything from how fast the error repeats.

Why an unplugged controller times out the group read #

The node speaks CIP over EtherNet/IP directly to the Logix controller, with no gateway software answering on its behalf — the same direct path explained in reading Allen-Bradley PLC data without RSLinx running. ODVA's EtherNet/IP carries those explicit messages over a TCP session to port 44818 on the controller, and every tag read needs an answer on that session. Pull the cable and the session dies with it: nothing can answer, so each group read runs out its wait and ends in the same timeout. While the controller is offline, that message is the correct report, and there is nothing to fix in Node-RED. The defect is what happens after the link returns: the node's reconnect logic does not always recover, and the reported behavior — the error repeating against a reachable controller until a deploy — fits stale session state in the running node.

Check reachability before touching the tag list #

Run these checks from the computer that runs Node-RED, in this order:

  • Confirm the controller is powered and its Ethernet link indicator is up after any power or cable event.
  • Ping the controller address (for example 192.168.1.50). A reply proves the IP path and nothing more.
  • Run a TCP connect test to that address on port 44818, because the node needs the CIP port answering, not ping. A controller that pings but refuses that connection has the ControlLogix TCP timeout that appears while ping works — a different fault with a different fix.
  • Open the node's configuration and confirm the address and connection settings still match the known-working values; do not guess substitutes.
  • Fix the start time of the message: a PLC power-off, a cable pull, a program download or a controller swap all fit the disconnect case; a first deploy with new tags does not.
  • Change no tag names or addresses. They were reading correctly, and editing them destroys the evidence while adding a possible second fault.

A disconnect test with the arithmetic #

With reachability confirmed, log one controlled cycle with timestamps. The timeline below is an example of how to record it, not a measurement from your site:

  • 10:31:05 — cable pulled.
  • 10:31:06 — first Reading Tag Group timeout in the debug output, 1 s after the pull.
  • 10:32:00 — cable restored; ping answers at 10:32:02.
  • 10:35:12 — full deploy; fresh values at 10:35:15.

The 1 s gap between the pull and the first message is consistent with a read cycle of about a second. The number that matters is the stale stretch: 10:35:15 - 10:32:02 = 193 s of repeating timeouts against a controller that was already answering — on the order of 190 consecutive failed group reads at that cycle. No single in-flight wait lasts anywhere near that long, so once both reachability tests pass, a message that keeps repeating for more than a handful of read cycles is stale node state by elimination. The decision from that arithmetic: stop diagnosing the network and reset the node.

Redeploy as the controlled reset #

A full deploy stops and restarts every node in the flow, and the CIP node builds its session again from scratch — which is why it clears an error that survived the reconnect. Run it as a procedure, not a guess:

  1. Restore power and the link, and confirm both reachability tests pass.
  2. Watch the debug output across several read cycles and note that the message still repeats.
  3. Deploy the full flow; restart the Node-RED service if a deploy does not clear it. The reported case cleared even on a deploy that only moved a node, so any successful deploy is evidence the state was stale — but the full deploy is what makes the procedure repeatable.
  4. Record the outcome and how long recovery took.

A deploy or service restart interrupts every node in that flow for a moment, so on an instance that also writes setpoints or starts sequences, run the reset at a point the process tolerates.

Check the installed version too: the package's repository tracks the reconnect problem under the issue title 'Plc is not automatically reconnected', and one report there describes automatic reconnection after a PLC program download working on node-red-contrib-cip-st-ethernet-ip 2.0.2. Treat that as a single report, not a guarantee — read your version under Manage palette and write it into the record before you escalate.

Prove recovery on changing values #

A silent error output is not recovery. Pick a value that changes continuously and watch it in the debug output: fresh readings within a few read cycles prove the group read completes again. If the message stops while the displayed value stays frozen, the reads are still failing and the flow is showing old data. Where the process allows it, repeat the disconnect once on purpose — unplug, confirm the message appears, restore, and record whether the node recovers by itself or needs the deploy again. That one record turns a mystery into a known behavior with a known reset, and it is exactly what a package maintainer asks for.

The decision for each case #

  • The controller is offline or was just unplugged: the timeout is the expected report. Restore power or the cable; change nothing in Node-RED and nothing in the tag list.
  • The controller is reachable, ping and the port test pass, and the message keeps repeating: stale node state. Deploy the full flow or restart the Node-RED service, then verify changing values.
  • The message still repeats after a full deploy on a reachable controller: stop changing settings. Compare the installed package version with the repository's current release and escalate with the exact error text, the version, both test results and the disconnect timeline. If the node never read a value on this connection at all, work the initial-connection path instead; if the target is not a Logix-class controller, the node may simply not serve it — why node-red-contrib-cip-ethernet-ip fails with a Mitsubishi FX5U is that class of fault.

Questions asked

Will the timeout return the next time the PLC is unplugged?

Plan on it. The reported behavior tied the message to every disconnect and cleared it only on a deploy, which makes the deploy a workaround with a known trigger rather than a repair. If your own repeat test shows the node now recovers alone, note what changed, for example a package update or a controller firmware change, because that difference identifies where the fix lives.

Can the timed-out group read harm the CompactLogix program?

No. A read that receives no answer changes nothing in the controller; the timeout exists only on the Node-RED side. If the same flow also writes tags, a stale connection can delay those writes until the reset, which is one more reason to confirm fresh values afterward instead of trusting the silence.

Does a shorter read cycle time fix the timeout?

No. The cycle time sets how often the node starts a group read; it does not repair a session that stopped recovering after a disconnect. A shorter cycle only makes the stale error repeat faster and adds load for values that did not change. Set the cycle for the rate your values actually move, and clear the stale state with the deploy.

Is this the same fault as a TCP connection timeout while ping works?

No. That fault appears on the very first connection attempt and means the session to the controller never opened, which points at the network path or controller settings. The Reading Tag Group timeout appears on a connection that already worked and follows a disconnect. The quickest separator is one question: did the node ever deliver values on this exact connection?

Should I switch to reading each tag individually instead of as a group?

Not as a fix for this error. The timeout follows the connection, so separate reads would time out on the same dead session and only multiply the messages. Grouped reading is the node's normal mode with the All Tags option; keep it, and spend the effort on the reachability checks and the reset.

Keep reading

  • Troubleshooting

    Why node-red-contrib-cip-st-ethernet-ip cannot read array tags

    Scalar tags read fine through node-red-contrib-cip-st-ethernet-ip while arrays fail because the st-ethernet-ip client library it uses implements no array read. Reinstalling the browser or remapping the tag changes discovery and names only. For a batch of about 20 values that mixes strings and DINTs, have the PLC write each batch into fixed scalar tags and map those 20 names; if you need real array reads, move to a client whose documentation lists array support, or publish the batch over OPC UA.

    Edge computing and IIoT

  • Troubleshooting

    Node-RED ControlLogix offline: TCP timeout after ping works

    The logged TCP connection timeout means Node-RED never completed the TCP session to the controller on port 44818, and ping success proves nothing about that session. Test the TCP connection from the Node-RED host, check host firewall and network ACLs, then controller connection limits — and leave tag names alone until TCP connects.

    Edge computing and IIoT

  • Troubleshooting

    Why MQTT Engine shows online status after an edge node drops

    An Info/Online tag that stays true with Good quality is not proof the edge node is alive: Engine's online state comes from the node's Sparkplug death certificate, and earlier Engine versions marked tags stale only on Engine shutdown. Read Info/Online, tag quality and Store & Forward stored metrics as three separate indicators, retest on Engine 4.0.8 with Ignition 8.0.16 or later, and compare against a node that reports correctly before escalating.

    Edge computing and IIoT

Why tag history misses short-lived alarm codes