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
The following example is for when Size is UINT#5, Key is INT#1234 and Mode is _LINEAR.
LD
abc[0]
UINT#5
abc[0].m
INT#1234
_LINEAR
def[0]
Mode=_LINEAR
In[0]=abc[0]
In[1]=abc[1]
In[2]=abc[2]
Size=UINT#5
In[3]=abc[3]
In[4]=abc[4]
For an ascending binary search, the array elements in the input parameter that is passed to In[] must be
in ascending order before this instruction is executed. Then a binary search is performed by executing
this instruction.
2-510
RecSearch
EN
ENO
ghi
In
Size
Num
jkl
Member
Key
Mode
InOutPos
def[0]
Member=abc[0].m
INT#1234
Key
0000
Member m
3456
0000
0000
2345
0000
0000
1234
0000
0000
3456
0000
0000
1234
0000
ST
ghi:=RecSearch(abc[0], UINT#5, abc[0].m,
INT#1234, _LINEAR, def[0], jkl);
Out = ghi
TRUE
UINT# 2
Num = jkl
InOutPos[0] =
def[0]
UINT#2

NY-series Instructions Reference Manual (W560)

Matches

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents