7 queue table read instructions (qtblr, qtblri) – Yaskawa Ladder Works Programming Manual User Manual
Page 171
8.7 QUEUE TABLE READ Instructions (QTBLR,QTBLRI)
8-14
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 instruction
advances the queue table read pointer by one row.
If errors such as invalid table names, invalid row numbers, invalid column numbers, insufficient
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 destination 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 of Queue Table Read Instruction Parameters
ADR
Type
Symbol
Name
Specification
I/O
0
L
ROW
Relative row number
for table elements
Relative row number of the target table elements
(1 to 65535)
IN
2
L
COLU
MN
Head column number
of table element
Head column number of the target table element
(1 to 32767)
IN
4
W
CLEN
Number of column
elements
Number of column elements to be continuously read
out (1 to 32767)
IN
5
W
Reserve
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
[Format]
Symbol : QTBLR
QTBLRI
Full Name : Queue Table Read
Queue Table Read
Category : TABLE
Icon :
,