Industrial Engineer · phase 4 of 16
Array
Indexed collection of elements that all share the same data type.
The Explain card
- Plain English
- An array is a row of values that all share one type, reached by an index. Element zero, element one, and so on up to the size you declared.
- Example
- A tag called Zone_Temp with twenty REAL elements holds twenty oven zones. A loop steps the index from 0 to 19 and checks every zone with the same three rungs.
- Why it matters
- Arrays turn twenty copies of the same logic into one copy and a counter. An index that runs past the last element faults the controller on most platforms, and that fault stops the machine in the middle of whatever it was doing.
- Hook
- Same shape, many slots, one name.
Where it sits in the deck
Phase 4: PLC Memory, Tags, and Instructions
The data a program moves and the instructions that move it, from a single true or false value up to a structured array.