Recmax And Recmin - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions

RecMax and RecMin

RecMax:
Searches the specified member in the structures of an array of structures for the
maximum value.
RecMin:
Searches the specified member in the structures of an array of structures for the
minimum value.
Instruction
RecMax
Maximum Record
Search
RecMin
Minimum Record
Search
Variables
Name
Meaning
In[] (array)
Array to
search
Size
Number of
elements to
search
Member
Member to
search
InOutPos[]
Found
(array)
element
number
Out
Search
result
Num
Number
found
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In[] (array)
Size
2-526
Name
FB/FUN
FUN
FUN
I/O
Description
Array of structures to search
Number of array elements to
Input
search
Member of In[] structure to
search
In-out
Found element number
Search result
Output
Number found
Specify an array of structures.
OK
Graphic expression
(@)RecMax
EN
ENO
In
Size
Num
Member
InOutPos
(@)RecMin
EN
ENO
In
Size
Num
Member
InOutPos
Valid range
---
Depends on data type.
Depends on data type.
Depends on data type.
Integers
NY-series Instructions Reference Manual (W560)
ST expression
Out:=RecMax(In, Size,
Member, InOutPos, Num);
Out
Out:=RecMin(In, Size,
Member, InOutPos, Num);
Out
Unit
Default
*
1
---
*
---
---
---
---
Times, durations,
dates, and text strings

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents