2 ) format, 3 ) programming example – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 293

5.9 Table Manipulation Instructions
5.9.9 Clear Queue Table Pointers (QTBLCL)
5-224
( 2 ) Format
∗ 1. Optional.
∗ 2. C and # registers cannot be used.
Error Codes
( 3 ) Programming Example
In the following programming example, the queue pointers for the specified queue table are initialized when switch 2
(DB000003) turns ON.
When the power is turned ON, values of the read pointer and write pointer are undefined. Always execute the QTBLCL instruc-
tion before using the QTBLR, QTBLRI, QTBLW, or QTBLWI instruction.
An operation error may occur if the QTBLR, QTBLRI, QTBLW, or QTBLWI instruction is executed without first executing the
QTBLCL instruction.
Parameter Name
Applicable Data Types
B
W
L
F
A
Index
Constant
Output data (Out)
*1
×
{
*2
×
×
×
{
×
Status (Sts))
*1
{
*2
×
×
×
×
×
×
Status
Output data
Table name
Icon:
Key entry: QTBLCL
Error Code
Error Name
Meaning
0001 hex
Table undefined
The target table is undefined.
0002 hex
Outside range of row numbers
The row number of the table element is outside the target table.
0003 hex
Outside range of column num-
bers
The column number of the table element is outside the target table.
0004 hex
Incorrect number of elements
The number of target elements is invalid.
0005 hex
Insufficient storage area
The storage area is insufficient.
0006 hex
Insufficient element type
The data type specified for the element is wrong.
0007 hex
Queue buffer error
An attempt was made to read from an empty queue buffer, or to write to a
full queue buffer by advancing the pointer.
0008 hex
Queue table error
The specified table is not a queue table.
0009 hex
System error
An unexpected error was detected in the system during instruction execu-
tion.
INFO