Table Functions Search For Array Values - GE VersaMax PLC User Manual

Table of Contents

Advertisement

• Search Equal
• Search Not Equal
• Search Greater Than
• Search Greater Than or Equal
• Search Less Than
• Search Less Than or Equal
Instruction Set Reference
For public disclosure
%I0001
ARRAY
MOVE_
BOOL
SR
%M0009
CONST
00003
SNX
CONST
DNX
00005
CONST
N
00007
10.8.1.4 Example 3:
Using word memory, for SR and DS, the third least significant bit of %R0001 through the
second least significant bit of %R0002 of the array containing all 16 bits of %R0001 and
four bits of %R0002 is read and then written into the fifth least significant bit of %R0100
through the fourth least significant bit of %R0101 of the array containing all 16 bits of %
R0100 and four bits of %R0101. 0001 and %R0100 are declared as type BOOL of length
20).
%I0001
ARRAY
MOVE_
BOOL
SR
%M0009
CONST
00003
SNX
CONST
DNX
00005
CONST
N
00007

10.8.2 Table Functions Search for Array Values

Use the Search functions listed below to search for values in an array.
When the Search function receives power, it searches the specified array. Searching
begins at the starting address (AR) plus the index value (NX).
enable
SRCH_
EQ_
INT
AR
FD
Starting address
NX
NX
Input index
IN
Object of search
DS
%Q0022
DS
%Q0022
• Equal to a specified value
• Not equal to a specified value
• Greater than a specified value
• Greater than or equal to a specified value
• Less than a specified value
• Less than or equal to a specified value
Found indication
Output index
GFK-1503E User Manual 181

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents