EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-501
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Stack and Table Instructions
2
RecMax and RecMin
In[] can be a member of a higher-level structure.
Example: In[0]=str0.str1[0]
In[] can be an array with two or more dimensions. If In[] is a two-dimensional array, the element num-
ber in the first dimension of the element that matches the search conditions is assigned to InOut-
Pos[0] and the element number in the second dimension is assigned to InOutPos[1].
If In[] is a three-dimensional array, the element number in the first dimension of the element that
matches the search conditions is assigned to InOutPos[0], the element number in the second dimen-
sion is assigned to InOutPos[1], and the element number in the third dimension is assigned to InOut-
Pos[2].
If you use a different data type for Member and Out, use only the following data types and make sure
the valid range of Out includes the valid range of Member.
USINT, UINT, UDINT, ULINT, SINT, INT, DINT, LINT, REAL, and LREAL
If Member is a real number, depending on the value of Member, the desired results may not be
achieved due to error.
When an element in the array is passed to In[], all elements below the passed element are pro-
cessed.
If the value of Size is 0, the values of Out and Num are 0. The values in InOutPos[] do not change.
An error occurs in the following cases. ENO will be FALSE, and Out, InOutPos[], and Num will not
change.
The value of Size exceeds the array area of In[].
Member is not a member of In[].
The array size of InOutPos[] is smaller than the number of dimensions of In[].
An array without a subscript is passed to In[].
Member is not integer or real number data.
Additional Information
Precautions for Correct Use
Out = ghi
InOutPos[0] = def
Num = jkl
Member m
0000
1234
0000
Size=UINT#5
0000
2345
0000
0000
3456
0000
0000
1234
0000
0000
3456
0000
In[0]=abc[0]
In[1]=abc[1]
In[2]=abc[2]
In[3]=abc[3]
In[4]=abc[4]
Member=abc[0].m
INT#3456
UINT#2
UINT#2

Table of Contents

Related product manuals