L9_SRCH: Search
(Original Document)
Naming
Name in LL984 Editor
Function Block Name
name of legacy 984 instruction
name in other tools and editors like:
  • Type Library Browser
  • Data Editor
  • Animation Tables
  • Search Results
Function Description
The L9_SRCH procedure searches the parameters in a source table for a specific bit pattern. The procedure will search the entire source table in a single scan until either a match is found or the end-of-table is reached.
L9_SRCH has two control inputs. ENABLE initiates the search operation. The state of CONT indicates where the search operation will originate.
L9_SRCH can produce up to two outputs. The state of OUT echoes the state of ENABLE. Power passed from FOUND indicates that the bit pattern being searched for has been found in the source table.
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
OFF to ON initiates the operation.
Middle
CONT
BOOL
OFF = search from beginning
ON = search from last match
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN
SOURCE
ANY_ARRAY_UINT
%IW, %MW
Source table to be searched. To be declared as ARRAY[1..LENGTH] OF UINT, where LENGTH is the value of the LENGTH parameter.
Middle
IN/OUT
PATTERN
ARRAY[1..2] OF UINT
%MW
Pointer to the source table followed by the pattern word to be searched, declared as ARRAY[1..2] OF UINT.
Bottom
IN
LENGTH
UINT
1...100
The number of words in the destination block.
Valid range: 1 to 100
Output Pin
Name
Data Type
Address Range
Meaning
Top
OUT
BOOL
ON indicates the operation succeeded.
Middle
FOUND
BOOL
ON = match found