7 read queue table (qtblr and qtblri), 1 ) operation – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 284

Advertising
background image

5.9 Table Manipulation Instructions

5.9.7 Read Queue Table (QTBLR and QTBLRI)

5-215

Instructions

5

5.9.7 Read Queue Table (QTBLR and QTBLRI)

( 1 ) Operation

Column elements of the table data that are specified by the table name, row number, and column number are continu-
ously read and stored in a continuous area that starts at a specified register. The data types of the elements that are read
are automatically determined by the table that is specified. The data types of the destination registers are ignored and
the data is stored according to the data types in the table without any conversion.
The QTBLR instruction does not change the queue table read pointer. The QTBLRI instruction advances the queue
table read pointer by one row.
If an error occurs when accessing the table, such as a table name error, an out of range row number, or an empty queue
buffer, an error is output, no data is read, and the pointer is not advanced.
The contents of the destination registers will be retained.
If the instruction ends normally, the number of words that were moved is output, and the Status bit is turned OFF. If an
error occurs, an error code is output and the Status bit is turned ON.

[ a ] If the Read Succeeds

[ b ] If the Read Fails

Œ

If the read fails, the data at the destination will retain the contents from before the instruction was executed.

Table Data

Read pointer

With the QTBLRI
instruction, the
pointer is
advanced after
instruction execution.

First address of destination data

Read.

Advanced.

With the QTBLR
instruction, the
pointer is not
advanced after
instruction execution.

Number of

words moved

Output data

Status

0 (OFF)

Error code

Output data

Status

1 (ON)

Advertising
This manual is related to the following products: