Troubleshooting
Why indirect addressing faults an SLC 5/05 with code 2Ch
Short answer
Fault 2Ch on an SLC 5/05 is a non-recoverable runtime major error: an indirect reference resolved to an element beyond the data file's allocated length, as when an index selects element 11 of a file that holds only 10 words. Compare the resolved element with the file length in its properties, then either set the length to the highest intended element plus one or bound-check the index before the access.

On this page
Fault 2Ch on an SLC 5/05 means the program asked for an element that is not there: a runtime indirect reference resolved past the end of its data file, and the processor stopped itself. The code's documented description reads "Referenced indirect address element outside data file limit." The fix follows from one comparison — the resolved element number against the length set in that data file's properties. If the sequence genuinely addresses the higher element, set the file length to the highest intended element plus one; if the index can reach an element nobody intended, bound-check it before the access. The trace below finds which case you have, and the worked example runs the arithmetic on a ten-word N7 file whose index reaches past the end.
What code 2Ch means #
Rockwell's listing of SLC 500 major error codes splits them into recoverable and non-recoverable classes, and 2Ch sits in the non-recoverable class: the processor does not resume on its own. It halts, its outputs take the configured fault state, and the way back to run is to clear the major error and restart. Because the cause is a value the logic computes, the restart runs straight back into the same fault at the same instruction, which is why clearing without tracing is not a fix.
The reference itself looks legal offline. An indirect element number is only evaluated at run time, when the index value decides which element the instruction touches, so offline checks pass and the project can run for hours before the one pass where a counter, recipe or operator selection pushes the number out of range. That also separates this fault from the Default/Faulted mode that follows a bad download, which appears at power-up or transfer time and needs a different diagnosis — why an SLC 5/03 stays Default/Faulted after a bad download covers that case.
Trace the index before you change anything #
Work down the list in order; the first three steps usually settle which side of the comparison is wrong.
- Capture the fault before anyone clears it. Note the code and any location detail the processor reports, because clearing the error takes the state that produced it with it.
- Find every indirect reference on the failing path. Cross-reference the data file letter, then pick out each instruction whose element number is another address rather than a constant; in RSLogix 500 that element sits in square brackets and is replaced at run time by the value in the index address.
- Read the file's allocated length. It is set in the data file's properties, and it is the number the fault is measured against.
- Work out how far the index can reach. Cross-reference the index address and follow its writers: increments, moves of recipe or HMI values, counter presets, and the initialization paths at power-up and mode change.
- Compare reach with allocation. Any resolved element greater than the length minus one faults the processor; an element inside the file is legal even when it selects the wrong record.
- Reproduce the failing cycle if the fault is intermittent. Drive the machine to the selection or end-of-sequence state that precedes the fault, under controlled conditions, and watch the index address live while the access executes; a value read after a restart can hide the transition that faults.
Worked example: a 10-word N7 file that resolves to element 11 #
Inputs. Integer file N7, the file the failing reference addresses; its length is set in the data file properties at 10 words. One indirect access, on a rung that executes during the failing cycle; its index address held 11 when the instruction ran, so the processor saw a request for N7:11. Both numbers are the fault's own inputs: the length as the properties set it, the index as it stood when the processor stopped.
Rule. A data file is zero-based: a file of L words exposes elements 0 through L - 1, and a reference is valid only when the resolved element sits between 0 and L - 1 inclusive; a resolved element beyond that is what 2Ch reports.
Arithmetic.
- Highest valid element: 10 - 1 = 9, so the file covers N7:0 through N7:9.
- Requested element: 11. The limit check fails, and the difference 11 - 9 = 2 is the overshoot.
- Length that would make the request legal: 11 + 1 = 12 words.
Result. The access lands two elements beyond the file's last valid element, so the processor raises major error 2Ch and stops before the rung completes.
Decision. If the sequence only ever needs elements 0 through 9, keep the length and guard the index instead: reject any value above 9, and anything negative, before the access runs. If records through element 11 are genuine, set the length to 12 words in the properties. Both cases follow one sizing rule: length = highest intended element + 1.
Choose the fix: resize the file or guard the index #
Back the program up before you edit anything: upload the running project and archive it, following back up an SLC 500 program by upload before you lose it. Then pick one of the two corrections from the worked example — they solve different problems, and doing both at once hides which one worked.
Resize when the higher element is genuine. Set the length in the data file's properties and transfer the edited project the way your site procedure requires. The added elements hold no application data until you write it, so initialize them from logic before anything can select them: a legal address pointing at empty words misbehaves the machine without ever faulting.
Guard when the index is computed. Put the limit check immediately before the access, on the same branch conditions that enable the access, so no rung between the check and the instruction can overwrite the index. On a failed check, inhibit the operation and report the invalid selection through the plant's normal alarm path; do not quietly substitute another element, because the substituted record drives real outputs.
Do not simply add slack words. A runaway index outruns any length you choose, and slack turns a clean, diagnosable fault into wrong-data operation at an address nobody planned. If the trace shows the index has no ceiling — a counter with no reset at sequence end, a recipe value moved in unchecked — the guard is the fix, not a bigger file.
Test the boundary before you return to run #
Write the index directly from a data monitor rather than waiting for the machine to wander into the failing state:
- Set it to the first valid element and confirm the instruction touches the intended data.
- Set it to the last valid element and confirm both the address and the record the machine acts on.
- Step it one past the end: with a guard, expect a rejected selection and an alarm, not a processor fault; with a resized file, expect the access to land inside the added elements.
- Restart the controller and cycle its operating mode: initialization must leave a valid index in place before the first access.
- Re-run the exact sequence that faulted and watch the index and the fault listing until the cycle completes.
Run these boundary tests with the machine's motion and process outputs controlled under the site's commissioning procedure, because the point of the test is to exercise the very transition that faulted a running machine. When the guard rejects and the resized file holds the right data, the fault is closed: code 2Ch stays gone unless a new path reaches an element the file does not cover.
Questions asked
Does fault 2Ch damage the SLC 5/05 processor?
No. Code 2Ch is a program-addressing fault: the processor stopped itself because an indirect reference fell outside the data file, not because a component failed. A non-recoverable major error stays latched until you clear it and return the processor to run, and because the cause is a computed address, the same values fault it again at the same instruction. Clearing repeatedly without tracing the index only normalizes repeated stops.
How long should the file be if the highest element I really use is 40?
Set the file length to the highest element plus one: element 40 needs 41 words, because the last valid element in a zero-based file is one less than its length. Run the same arithmetic on every file an indirect reference touches; the allocation that matters is on the file the failing instruction addresses, not on a similar file elsewhere in the project.
Why does the fault appear only occasionally, sometimes weeks apart?
The index usually sits inside the file and only leaves it on specific paths: the final record of a sequence, a particular recipe or operator selection, or a counter that keeps counting past its expected end. The project is valid offline the whole time, because the element number only exists at run time. Reproduce the selection that immediately precedes the fault and watch the index during that cycle.
Where do I change the number of words in a data file?
In RSLogix 500 the length is a per-file property: open the data file in the project tree, open its properties, and set the number of words there. The increase needs spare controller memory, so check the controller's memory usage before you transfer the edited project. Each file has its own setting, so a change to one file does nothing for a fault pointing at another.

