Omron NJ-series User Manual page 237

Machine automation controller cpu unit software
Hide thumbs Also See for NJ-series:
Table of Contents

Advertisement

6 Programming
Variable Table
Variable name
abc
abc[0]
abc[1]
abc[2]
abc[3]
abc[4]
 Array Variable Specifications
Item
Maximum number
of elements for an
array variable
Element numbers
Subscripts
 Dimensions of Array Variables
You can regard the elements of a one-dimensional array as one-dimensional data lined up in a sin-
gle row. You can set two-dimensional and three-dimensional arrays in the same way. The array ele-
ments are expressed by adding the same number of subscripts to the array variable name as the
number of dimensions. Arrays can have a maximum of three dimensions.
6-50
Data type
ARRAY [ 0 .. 4 ] OF INT
Array
65,535
0 to 65535
The number for the first element in an array does not have to be 0.
Constants: Integer value between 0 and 65535
Variables:
Classification
Integer
Basic data type
Boolean, bit string, real, duration, date, time of
day, date and time, or text string data
Derivative data
Structures, unions, and enumerations
types
POU instances
Arithmetic expressions: Arithmetic expressions can be specified only in ST.
Example: y:= x[a+b];
Represents the data type of the array variable.
Represents the last number of the elements of the array.
Represents the first number of the elements of the array.
Specification
Data type
SINT, INT, DINT, USINT, UINT,
or UDINT
LINT or ULINT
NJ-series CPU Unit Software User's Manual (W501)
Usage
Supported.
Not sup-
ported.
Not sup-
ported.
Not sup-
ported.
Not sup-
ported.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents