7 queue table read instructions (qtblr, qtblri), Outline – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual

Page 187

Advertising
background image

1.8 Table Data Manipulation Instructions

1-177

1

1.8.7 QUEUE TABLE READ Instructions (QTBLR, QTBLRI)

„

Outline

The QTBLR/QTBLRI instruction consecutively reads file register table column elements
specified by table name (Table Name), row numbers, and column numbers and stores the
elements in the continuous region starting with the specified register (Read Data). The type
of the element being read is automatically determined according to the specified table. The
type of the storage destination register is ignored and the read data is stored according to the
table element type without converting the data type.

The QTBLR instruction does not change the queue table read pointer. The QTBLRI instruc-
tion advances the queue table read pointer by one row.

If errors such as invalid table names, invalid row numbers, invalid column numbers, insuffi-
cient storage register data length, or empty queue buffers are found, they are reported, data is
not read, and the queue table read pointer does not advance. The contents of the storage des-
tination register are retained.

Upon normal termination, the number of words transferred is set in the [Output], and the
[Status] is turned OFF.

When an error occurs, the corresponding error code is set in the [Output], and the [Status] is
turned ON. The pointer value does not change.

Table 1.38 Queue Table Read Instruction Parameters

ADR

Type

Symbol

Name

Specifications

I/O

0

L

ROW

Table element correspond-
ing row number

Corresponding row number of the target table
element (0 to 65535)

IN

2

L

COL-
UMN

Table element beginning
column number

Beginning column number of the target table
element (1 to 32767)

IN

4

W

CLEN

Number of column
elements

Number of column elements continuously read out
(1 to 32767)

IN

5

W

Reserved

6

L

RPTR

Read pointer

Read pointer of the queue after execution

OUT

8

L

WPTR

Write pointer

Write pointer of the queue after execution

OUT

Advertising
This manual is related to the following products: