74
4-1
Variables Used for Data Processing
4-1-1
Arrays
The CJ2 and other traditional PLCs use Data Memory Area as a memory area for data
processing and storage.
The NX1P does not have Data Memory Area and uses variables as memory used for data
processing.
Arrays
All_Data[n] shown above is called an “array”.
The elements of an array are expressed by adding a [subscript] to the name of the variable
that represents the entire array.
An element expressed by “variable name [subscript]” (e.g., All_Data[3]) is used as a
variable in programs.
Only one data type can be set for an array variable.
One name can be used for multiple variables, making the program easy to understand and
read.