11 POSITIONING INSTRUCTION
11.1 Positioning Instruction
659
11
Positioning by multiple table operation
DRVTBL
This instruction executes positioning operation set in multiple data tables with the engineering tool in continuous operation or
stepping operation. To execute such operation, this instruction needs to be executed only once.
■Descriptions, ranges, and data types
■Applicable devices
*1 T, ST, C cannot be used.
This instruction executes positioning operation set in multiple data tables with the engineering tool in the continuous operation
or stepping operation. To execute such operation, this instruction needs to be executed only once.
• For (d1), specify the axis number from which pulses are output.
• For (n1), specify the start table to be executed according to the output specified in (d1).
• For (n2), specify the last table. When (n1) and (n2) are the same, only one table is executed. The table operation keeps
executing until the last table or a table that is not set with parameters is executed.
• For (n3), specify the table execution method. (K0 = Stepping operation, K1 = Continuous operation)
• For (d2), specify the bit device of the normal complete flag or abnormal end flag.
For details on the function and error code, refer to Built-in positioning manual.
Two devices are occupied from the device specified in (d2). Make sure that these devices are not used in other controls.
For other precautions, refer to Built-in positioning manual.
Ladder diagram Structured text
ENO:=DRVTBL(EN,n1,n2,n3,d1,d2);
Operand Description Range Data type Data type (label)
(d1) Axis number from which pulses are to be output K1 to 4 16-bit signed binary ANY16
(n1) Start table number to be executed 1 to 100 16-bit unsigned binary ANY16_U
(n2) Last table number to be executed 1 to 100 16-bit unsigned binary ANY16_U
(n3) Table execution method K0, K1 16-bit unsigned binary ANY16_U
(d2) Bit device number of the positioning complete flag or abnormal end flag Bit ANY_BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(d1)
(n1)
(n2)
(n3)
(d2)
*1