2 Instruction Descriptions
2-464
NJ-series Instructions Reference Manual (W502)
In[] can be an array with two or more dimensions. Out will contain the total number of elements for all
dimensions of In[]. For example, if the input parameter that is passed to In[] is ARRAY[0..1,0..2], the
value of Out will be UINT#6.
Additional Information
def:=SizeOfAry(abc);
LD ST
def
abc ARRAY[0..1,0..2] OF BOOL
abc
SizeOfAry
EN ENO
In
Variable
Data type
In[0,0]=abc[0,0]
In[0,1]=abc[0,1]
In[0,2]=abc[0,2]
In[1,0]=abc[1,0]
In[1,1]=abc[1,1]
In[1,2]=abc[1,2]
Out=def
UINT#6
Number of array elements