Troubleshooting
Why node-red-contrib-cip-st-ethernet-ip cannot read array tags
Short answer
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.

On this page
Scalar tags read fine through node-red-contrib-cip-st-ethernet-ip and arrays do not, because the st-ethernet-ip client library underneath the node implements no array read. That is a library limit, not a configuration mistake: the node asks for each variable's name, address and declared type plus a read cycle time, and no entry in that list produces an array transfer. Reinstalling Node-RED, repairing the tag browser or remapping the tag cannot add the missing operation. For a batch of about 20 values that mixes strings and DINTs, the working fix is to have the PLC write every batch into fixed scalar tags and map those names once. When a true array read is a hard requirement, move to a client whose documentation lists array support, or publish the batch over OPC UA.
Rule out the fixes that cannot add array support #
Four dead ends keep coming up around this node. None of them changes what the client library can read, so settle them before touching the PLC project:
- Reinstalling Node-RED or the tag browser. The browser discovers and selects tags; the missing array read lives in the client library underneath, and an install cannot add an operation the library does not implement.
- Renaming a mapped tag. Mapping selects which name the node requests each cycle, nothing more. In the reported case a remap changed only the name being read, which is all mapping ever does; a different name does not turn a scalar read into an array read.
- Hunting for an array type in the tag list. The configuration wants a name, an address and a declared type per variable, and the reported type chart offers no array or object entry to pick. A declared type tells the client how to interpret a value; it does not create a read operation.
- Reading one element and calling the array solved. A single indexed element exercises the scalar path the node already has. It proves nothing about a bulk transfer, which is the separate operation that fails.
What the working scalar reads already prove #
Every scalar tag that returns correctly proves the connection, the path to the controller and the typed scalar read all work, so do not re-diagnose the link. Split the rest of the node's machinery into separate checks:
- The browser is discovery, not transfer. A browser that lists nothing means the browse exchange failed; it says nothing about whether the controller can serve a tag, and reads can work all day with the browser broken. Check the controller address and the tag scope before reaching for a reinstall.
- Tag scope is its own setting. The node reads global tags by default. In the reported setup, local tags that first refused to read were read successfully later, so scope access is possible with this node; how that was made to work was not documented, so verify the scope handling in the configuration of the version you have installed.
- A tag appearing in a list is not array support. Discovery, type selection and data transfer are separate capabilities. Presence in a browser or a type map proves the first, never the third.
Why the tag name changes between batches #
Array[123] returning as Array[124] a few seconds later needs one decision before any mapping work: what does the PLC actually expose? In Logix-style tag notation, brackets mark an array element, so a number that moves through the day is either a rolling index into one declared array or part of the application's own naming. Open the controller tag declaration and settle it, because the two cases need different handling:
- A declared array with a rolling index would need the map to follow the index, and the mapping is static: it fixes the name requested every cycle. A name that changes every few seconds cannot be chased by remapping.
- Separately named scalar tags that come and go would need the producer logic itself to change, because no static map follows names that appear and disappear.
The contents settle the rest. A native Logix array has one element type across all its members, so a batch mixing strings and DINTs is not one native array; it is a structure, a set of separate tags, or a conceptual batch, and reading it as one object needs structured-read support. That is where this node is thinnest: its issue tracker carries a report of a mismatch when reading a nested UDT array inside a UDT. Treat that as a reported symptom rather than a tested result, and check the structure handling of whichever client you settle on.
Mapping a 20-value batch of strings and DINTs as fixed scalar tags #
The inputs, all from the reported case and the node's documentation:
- 20 values per batch, mixed strings and DINTs.
- A new batch a few seconds after the previous one.
- The node reads its configured variables once per cycle, at the cycle time set in its configuration.
The rule: one read of an N-value array becomes one mapped entry per value. Each entry gets a fixed tag name and the declared type of that one value, and the PLC writes every new batch into the same names, so the map never changes. One extra entry holds a batch sequence number so the flow can tell batches apart.
The arithmetic: 20 values give 20 mapped entries, and the string/DINT mix decides each entry's declared type, not the entry count — 20 values, 20 entries. Adding the sequence entry makes 21. The names are fixed, for example Batch_Lot (string) and Batch_Count (DINT), and the rolling name disappears: instead of following Array[123] to Array[124], the producer overwrites the same 21 tags every batch.
The result: one pass of the node returns all 21 values every cycle with no re-mapping as batches arrive. In the flow, read the sequence entry first and accept the batch only when it is unchanged at the end of the pass, because independent scalar reads are not synchronized.
The decision: at 21 fixed entries the map is small and stays constant for every batch — keep this node and map the batch. Once a batch would need hundreds of mapped entries, the scale at which mapping stops being maintainable, change the interface instead.
When to change the client or the interface #
If the PLC side is fixed — a rolling index you cannot flatten, arrays that grow, structures you must read whole — change the data path rather than the map. Two documented directions:
- A different CIP client. Pick one whose own documentation, for the version you install, lists array reads explicitly. One Node-RED CIP package listing, node-red-contrib-cip-suite, describes reads and writes of array elements and ranges; verify that claim against your controller's actual tag declaration before building the flow, because a listing is a vendor claim, not a tested result on your controller.
- A different protocol. Publish the batch tags from the controller or an OPC server and read them with Node-RED's OPC UA client; that keeps array handling out of the CIP mapping entirely. The article on how Node-RED reads PLC data over OPC UA, MQTT or Modbus lays out that choice.
Watch the package name while you choose: node-red-contrib-cip-st-ethernet-ip is not st-one-io's node-red-contrib-cip-ethernet-ip. They are separate nodes with separate limits, and that sibling node's failure with a Mitsubishi FX5U has its own article. Whatever you install, the supported read types are stated for that version, so read the documentation for the version you installed.
Pin the versions while you change anything #
Whichever path wins, pin it. A gateway that maps plant tags is only as stable as the node versions behind it: record the installed package versions, keep copies of the exact nodes you deploy for offline installs, and change one thing at a time so a read that stops arriving traces back to the change that caused it. The practice is laid out in stable Node-RED gateway flows with vendor-pinned nodes.
Questions asked
Can I read one element such as myArray[0] to confirm array support?
A single element is worth trying as a diagnostic, because in Logix-style notation an indexed element is itself a scalar with one declared type, the kind of read the node already performs. It proves that one element only. A whole-array transfer, a range and a structure are separate operations the library must implement, so one element returning a value does not establish array support.
Why does the tag browser fail while scalar reads still work?
Discovery, type selection and data transfer are separate code paths in a CIP client, and the browser only does the first. When the browser shows nothing, you can still type each tag name and declared type into the node's variable list by hand and read it; manual entry needs no browsing at all. Check the controller address and the tag scope first, and treat a reinstall as the last step.
How do I stop the flow from mixing values from two batches?
Have the PLC write all values of one batch into the fixed tag set, then update a sequence number or done bit last. Read that sequence before and after the value reads and accept the batch only when it did not change. If it did, discard the pass; with a new batch arriving every few seconds, waiting one cycle is harmless.
Which Node-RED package should I use for Rockwell array reads?
Pick a client whose own documentation, for the version you install, explicitly lists array reads. One CIP package listing describes reads and writes of array elements and ranges; verify that claim against your controller's tag declaration before building the flow. The other documented route is to publish the batch tags over OPC UA and read them with Node-RED's OPC UA client, then test one known array value end to end.
Why can I not declare the array once in the tag list and read it whole?
The tag list is per variable: one name, one address and one declared type each. Mapping twenty separate entries that cover the twenty values is the supported shape, with one entry per value. The unsupported shape is a single entry naming the whole array with an array type, because the type chart offers no such entry and the library has no handler behind it.


