Arysearch - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions

ArySearch

The ArySearch instruction searches for the specified value in a one-dimensional array.
Instruction
ArySearch
Array Search
Variables
Name
Meaning
In[] (array)
Array to
search
Size
Number of
elements to
search
Key
Search key
InOutPos
Found
element
number
Out
Search
result
Num
Number
found
* If you omit an input parameter, the default value is not applied. A building error will occur.
Bit strings
In[] (array)
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
Size
Key
InOutPos
Out
OK
Num
2-314
Name
FB/FUN
FUN
I/O
Description
Array to search
Number of elements in In[]
Input
to search
Value to search for
In-out
Array element number
where value was found
Search result
Output
Number found
Arrays of enumerations can also be specified.
OK
Must be same data type as the elements of In[].
OK
OK
Graphic expression
(@)ArySearch
EN
ENO
In
Size
Num
Key
InOutPos
Valid range
Depends on data type.
1 to 65535
Depends on data type.
Depends on data type.
Depends on data type.
Integers
NJ-series Instructions Reference Manual (W502)
ST expression
Out:=ArySearch(In, Size,
Key, InOutPos, Num);
Out
Unit
Default
*
1
---
---
---
---
---
---
Times, durations,
dates, and text strings

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents