3 Devices
3.8.2 Index Registers
V0~V7
Index register (V)/(Z)
Z0~Z7
16 index
registers in total
V0
Z0
16 bits
32 bits
V devices are 16-bit registers. Data can be freely written into a
V device, and data can be freely read from a V device. If a V
device is used as a general register, it can only be used in a
16-bit instruction.
Z devices are 32-bit registers. If a Z device is used as a general
register, it can only be used in a 32-bit instruction.
K14 Z1
X0
K8 V0
MOV
DMOV
D3@Z1 D4@V0
D0@V0 D2@Z1MOV
DMOV
If X0 is ON, the value in V0 will be 8, and the value in Z1 will be
14, the value in D8 will be moved to D16, and the value in D17
will be moved to D12.
If a V device or a Z device is an index register used to modify
an operand, the V device or the Z device can be used in a
16-bit instruction and a 32-bit instruction.
Index registers are like general operands in that they can be used in movement instructions and
comparison instructions. They can be used to modify word devices (KnX/KnY/KnM/KnS/T/C/D devices)
and bit devices (X/Y/M/S devices).
There are 8 V devices (V0~V7), and 8 Z devices (Z0~Z7) in a DVP-20PM series motion controller.
※Constants and some instructions do not support the use of index registers. Please refer to section 5.4 for
more information about using index registers to modify operands.
※To prevent error from occurring, if a V device or a Z device is used to modify an operand, the effective
address which is formed can not be in the range of D1000 to D2999, and can not be in the range of
M1000 to M2999.
3.9 Pointers
N Used with a master control loop N0~N7 (8 pointers) Used with a master control loop
Pointer
P Used with CJ, CJN, or JMP P0~P255 (256 pointers) Used with CJ, CJN, or JMP
Pointer (P): A pointer is used with API 00 CJ, API 256 CJN, or API 257 JMP. Please refer to chapter 5 for
more information about the use of CJ/CJN/JMP.
Conditional jump (CJ):
X2
Y2
X1
P1CJ
X0
Y1
P**
0
N
P1
If X0 is ON, the execution of the program will
jump from address 0 to address N, and the
part of the program between address 0 and
address N will not be executed.
If X0 is OFF, the execution of the program
starts from address 0, and the instruction CJ
will not be executed.
DVP-20PM Application Manual
3-14