Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 98

Advertising
background image

6 - 62

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

(9) SUBP 017 (DATA SEARCH) RR after operation:

Ù

(a) Function

The instruction executes search in the table for the data identical to the input data
and stores the address where the identical data are found by the relative address
from the start of the table. If the identical data are not found, an error is output.

Note 1:

When “BYT = 1”, the size of the table must be an even number of bytes.

2:

If the data to be searched exist at more than one place, the data found first

is regarded as the objective data.

3:

The data address to be stored is in units of bytes if “BYT = 0”or in units

of words if “BYT = 1”.

(b) Example

(c) Control conditions

Advertising