3 search for table row (tblsrl), 1 ) operation – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 272

5.9 Table Manipulation Instructions
5.9.3 Search for Table Row (TBLSRL)
5-203
Instructions
5
5.9.3 Search for Table Row (TBLSRL)
( 1 ) Operation
The TBLSRL instruction searches for the search data in column elements of the table data that is specified by the table
name, row numbers, and column number. The search result is output as the row number of the data that matches the
search data. The type of the data to be searched is automatically determined by the data type of the specified column
elements.
If the instruction ends normally and the search data is found, the search result in the input parameter table is set to 1, the
output data is set to the row number, and the status is turned OFF. If the search data is not found, the search result and
output data are set to 0. If an error occurs, an error code is set in the output data and the status is turned ON.
[ a ] Search Data Found
[ b ] Search Data Not Found
[ c ] Search Error
Columns →
(W) (W) (L) (L) (W)
Rows
↓
Data type for each column
Table Data
Search area selected
by first row number,
last row number, and
column number
Search
Search data
Row number
Output data
Status
0 (OFF)
Search result
for parameters
1: Matching
row exists
0
Output data
Status
0 (OFF)
Search result
for parameters
0: No matching row
Error code
Output data
Status
1 (ON)