3 row search instruction (tblsrl), Outline, Format – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual
Page 180

1 Ladder Program Instructions
1.8.3 ROW SEARCH Instruction (TBLSRL)
1-170
1.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.
Format
Table 1.34 Row Search Instruction Parameters
ADR
Type
Symbol
Name
Specifications
I/O
0
L
ROW1
Table element head row
number
Head row number of the target table element
(1 to 65535)
IN
2
L
ROW2
Table element last row
number
Last row number of the target table element
(1 to 65535)
IN
4
L
COL-
UMN
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
Symbol: TBLSRL
Full Name: Table Row Search
Category: TABLE
Icon: