152
Sequence program
Basic instruction (16-bit)
3.26.7 Data transfer instruction
The data transfer instruction is an instruction that executes the transfer of data.
Data transferred by the data transfer instruction is retained until new data is transferred.
3.26.8 Data transfer instruction:
16-bit data transfer ... MOV, MOVP
Function
16-bit data from the device specified with is transferred to the device specified with .
Execution condition
The execution conditions for transfer instructions are as follows.
Program example
• Program that stores 155 as a binary value in D8 when X8 turns ON.
Applicable device
Digit
specification
Error flag
Bit device Word (16-bit) device Constant Level
X Y M T C D K H N (SM0)
MOV,
MOVP
K1 to K4
MOV
MOV
D
Setting data
Start number of the transfer
source data or the device in
which the data is stored
Start number of transfer
destination device
Before
transfer
After
transfer
16 bits
Transfer
MOV
MOVP
Transfer
command
Executed every
scan.
Executed every
scan.
Executed only once.
Executed only once.