Delta DVP-ES2 User Manual
Page 179
3 . I n s t r u c t i o n S e t
3 - 6 3
API Mnemonic Operands
Function
12
D MOV P
Move
Controllers
ES2/EX2 SS2
SA2
SE
SX2
Bit Devices
Word devices
Program Steps
Type
OP
X Y
M S K H KnX KnY KnM KnS T C D E F
S
* *
*
*
*
*
*
*
*
*
*
D
*
*
*
*
*
*
*
*
MOV, MOVP: 5 steps
DMOV, DMOVP: 9 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Operands:
S: Source of data D: Destination of data
Explanations:
1.
When this instruction is executed, the content of S will be moved directly to D. When this
instruction is not executed, the content of D remains unchanged
2. If
operand
S and D use index register F, only 16-bit instruction is applicable
Program example:
1.
MOV will move a 16-bit value from the source location to the destination.
a) When X0 = OFF, the content of D0 remains unchanged. If X0 = ON, the data in K10 is
moved to D0.
b) When X1 = OFF, the content of D10 remains unchanged. If X1 = ON, the data of T0 is
moved to D10 data register.
2.
DMOV will move a 32-bit value from the source location to the destination.
a) When X2 = OFF, the content of (D31, D30) and (D41, D40) remain unchanged.
b) When X2 = ON, the data of (D21, D20) is moved to (D31, D30) data register. Meanwhile, the
data of C235 is moved to (D41, D40) data register.
X0
X1
X2
MOV
K10
D0
MOV
T0
D10
DMOV
D20
D30
DMOV
C235
D40