256
MOV, MOVP, DMOV, DMOVP
6.4 Data Transfer Instructions
: Data to be transferred or the number of the device where the data to be transferred is stored (BIN 16/32 bits)
: Number of the device where the data will be transferred (BIN 16/32 bits)
Function
MOV
(1) Transfers the 16-bit data from the device designated by to the device designated by .
DMOV
(1) Transfers 32-bit data at the device designated by to the device designated by .
Operation Error
(1) There is no operation error in the MOV(P) or DMOV(P) instruction.
Program Example
(1) The following program stores input data from X0 to XB at D8.
[Ladder Mode] [List Mode]
6.4.1 MOV, MOVP 16-bit data tran sfer
DMOV, DMOVP 32-bit data transfer
6.4.1
MOV, MOVP, DMOV, DMOVP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– ––
Basic
Process
High
performance
Redundant
Universal
LCPU
P
Command
Command
MOV, DMOV
MOVP, DMOVP
S
D
S D
indicates an instruction symbol of MOV/DMOV.
S
D
S
D
S
D
b15
1
Before transfer
0 1 1 0 1 0 0 0 1 1 1 0 0 10
b0
b15
1
0
1 1
0
1
0 0 0
1 1 1
0 0
1
0
b0
After transfer
Transfer
S
D
S
D
1
Before transfer
0 1 101 0 0 0 1 110 0 10
b15 b0 b0b15
After transfer
1
0
1 1
0
1
0 0 0
1 11
0 0
1
0
b15 b0 b0b15
+1
+1
S
D
D
S
D
S
Transfer
Step
Instruction
Device