3 row search instruction (tblsrl) – Yaskawa Ladder Works Programming Manual User Manual
Page 163

8.3 ROW SEARCH Instruction (TBLSRL)
8-6
8.3 ROW SEARCH Instruction (TBLSRL)
[Outline]
The TBLSRL instruction searches for the column element of the file register table specified by the
table name(Table Name), row number, and column number. If there is data that matches the data in
the specified register(Search Data), the instruction reports that row number. The type of the data to be
searched is automatically determined according to the specified table.
If errors such as invalid table names, invalid row numbers, invalid column numbers, or insufficient
storage register data length are found, they are reported.
Upon normal termination, if a matching column element is found, 1 is set in the search result, the row
number is set in the [Output], and the [Status] is turned OFF. If no matching column element is found,
0 is set in the search result.
When an error occurs, the corresponding error code is set in the [Output], and the [Status] is turned ON.
Table of Row Search Instruction Parameters
ADR
Type
Symbol
Name
Specification
I/O
0
L
ROW1
Head row number of
table element
Head row number of the target table element
(1 to 65535)
IN
2
L
ROW2
Last row number of
table element
Last row number of the target table element
(1 to 65535)
IN
4
L
COLUMN
Table element column
number
Column number of the target table element
(1 to 32767)
IN
6
W
FIND
Search result
Search results
0 : No matching row
1 : Matching row exists
OUT
[Format]
Symbol : TBLSRL
Full Name : Table Row Search
Category : TABLE
Icon :