Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

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

Advertisement

Bit strings
Member
InOutPos[]
(array)
Out
Num
* You can specify TIME, DATE, TOD, DT, and STRING data with CPU Units with unit version 1.01 or later and Sysmac Studio
version 1.02 or higher.
Function
These instructions search Size elements in an array of structures In[]. The search range is therefore
from In[0] to In[Size
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].
The relationship between values with data types that are not integers or real numbers are determined
as given in the following table.
Data type
TIME
DATE, TOD, or DT
STRING
 RecMax
The RecMax instruction searches for the maximum value. The maximum value of the member to
search is assigned to search result Out.
 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.

NY-series Instructions Reference Manual (W560)

Integers
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
Specify the same data type as the search member of In[].
OK
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
OK
1]. The instruction searches member to search Member in the structures.
The numerically larger value is considered to be larger.
Later dates or times of day are considered to be larger.
The specifications are the same as for the LTascii, LEascii, GTascii, and
GEascii instructions (page 2-104). Refer to the specified page for details.
2 Instruction Descriptions
Times, durations,
dates, and text strings
Relationship
*
2
*
2-527

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents