4 search for table column (tblsrc), 1 ) operation – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 275

5.9 Table Manipulation Instructions
5.9.4 Search for Table Column (TBLSRC)
5-206
5.9.4 Search for Table Column (TBLSRC)
( 1 ) Operation
The TBLSRC instruction searches for the search data in row elements of the table data that is specified by the table
name, column numbers, and row number. The search result is output as the column number of the data that matches the
search data. The type of the data to be searched is automatically determined by the data types of the specified row ele-
ments.
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 column 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)
Row
↓
Data type for each column
Table Data
Search area selected
by first column number,
last column number,
and row number
Search
Search data
Column number
Output data
Status
0 (OFF)
Search result
for parameters
1: Matching
column exists
0
Output data
Status
0 (OFF)
Search result
for parameters
0: No matching
column
Error code
Output data
Status
1 (ON)