EasyManuals Logo

Omron NJ501-1500 User Manual

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
Page #548 background imageLoading...
Page #548 background image
2 Instruction Descriptions
2-500
NJ-series Instructions Reference Manual (W502)
These instructions search Size elements in an array of structures In[]. The search range is therefore
from In[0] to In[Size
−
1]. The instruction searches member to search Member in the structures.
One of the members to search in the elements of In[] is passed as an argument to Member. The ele-
ment number of the element with the maximum or minimum value is assigned to InOutPos[0] and the
number of elements that were found is assigned to Num. If more than one element was found, the ele-
ment number of the lowest element with the maximum or minimum value in In[] is assigned to InOut-
Pos[0].
Always attach the element number to input parameter that is passed to In[], e.g., array[3].
z RecMax
The RecMax instruction searches for the maximum value. The maximum value of the member to
search is assigned to search result Out.
z RecMin
The RecMin instruction searches for the minimum value. The minimum value of the member to search
is assigned to search result Out.
The following example shows the RecMax instruction when Size is UINT#5.
InOutPos[]
(array)
OK
Out OKOKOKOKOKOKOKOKOKOK
Num OK
Function
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
ghi:=RecMax(abc[0], UINT#5, abc[0].m, def, jkl);
LD ST
abc[0]
UINT#5
def
ghi
abc[0].m
jkl
def
RecMax
EN ENO
In
Size Num
Member
InOutPos

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals