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

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

Advertisement

2 Instruction Descriptions
Bit strings
In[] (array)
Size
Member
MN
MX
Condition
Refer to Function for the enumerators for the enumerated type _eSEARCH_CONDITION.
Mode
Refer to Function for the enumerators for the enumerated type _eSEARCH_MODE.
InOutPos[]
(array)
Out
OK
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
The RecRangeSearch instruction searches Size elements in the array of structures In[]. The search
range is therefore from In[0] to In[Size
structures for members that match the search condition.
Condition specifies the search condition. Mode specifies the search method. Details are provided
below. One of the members to search in the elements of In[] is passed as an argument to Member.
If any elements that match the search condition are found, the value of search result Out changes to
TRUE. The element number of the matching element is assigned to InOutPos[0] and the number of
matching elements is assigned to Num. If there is more than one matching element, the element num-
ber of the lowest matching element in In[] is assigned to InOutPos[0]. If there are no matching elements,
the value of Out will be FALSE and InOutPos[0] and Num will be 0.
Always attach the element number to input parameter that is passed to In[], e.g., array[3].
The data type of search condition Condition is enumerated type _eSEARCH_CONDITION. The mean-
ings of the enumerators are as follows:
Enumerator
_EQ_BOTH
_EQ_MIN
_EQ_MAX
_NE_BOTH
2-514
Specify an array of structures.
OK
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[].
Must be the same data type as Member.
Must be the same data type as Member.
OK
OK
1]. The instruction searches member to search Member in the
Meaning
MN ≤ Member ≤ MX
MN ≤ Member < MX
MN < Member ≤ MX
MN < Member < MX
Integers

NY-series Instructions Reference Manual (W560)

Times, durations,
dates, and text strings
*

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents