4 column search instruction (tblsrc) – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual

Page 181

Advertising
background image

1.8 Table Data Manipulation Instructions

1-171

1

„

Parameter

* Possible to omit.

„

Program Example

The table defined as TABLE1 is searched for data which matchers MW00100 (when the
type of the searched table is integer) with DW00010 to DW00014 as a parameter table.

1.8.4 COLUMN SEARCH Instruction (TBLSRC)

„

Outline

The TBLSRC instruction searches for the row element of the file register table specified by
a table name (Table Name), row number, and column number. If there is data that matches
the data of the specified register (Search Data), the instruction reports that column number.
The type of the data to 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 row 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 col-
umn 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.

Parameter Name

Setting

Table Name

Table name

Search Data

• Register address
• Register address with subscript

Parameter

• Register address
• Register address with subscript

[Output]*

• Any integer type register (except for # and C registers)
• Any integer type register with subscript
• Subscript register

[Status]*

• Any bit type register (except for # and C registers)
• Any bit type register with subscript

Advertising
This manual is related to the following products: