Data Movement Instructions
Example
00000
5-18 Data Movement Instructions
5-18-1 MOVE – MOV(21)
Limitations
Description
Precautions
Flags
The following example shows instruction ASFT(17) used to shift words in an
11-word shift register created between DM 0100 and DM 0110 with C=#6000.
Non-zero data is shifted towards St (DM 0110).
DM 0100
DM 0101
DM 0102
DM 0103
DM 0104
DM 0105
DM 0106
DM 0107
DM 0108
DM 0109
DM 0110
Note The zeroes are shifted "upward" if C=4000, and the entire shift register is set
to zero if C=8000.
Ladder Symbols
MOV(21)
S
D
DM 6144 to DM 6655 cannot be used for D.
When the execution condition is OFF, MOV(21) is not executed. When the
execution condition is ON, MOV(21) copies the content of S to D.
Source word
TIM/CNT numbers cannot be designated as D to change the PV of the timer
or counter. You can, however, easily change the PV of a timer or a counter by
using BSET(71).
ER:
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
Address Instruction
ASFT(17)
00000
#6000
00001
DM 0100
DM 0110
Before
After one
execution
execution
1234
1234
0000
0000
0000
2345
2345
0000
3456
3456
0000
4567
4567
0000
5678
5678
6789
6789
0000
789A
789A
0000
@MOV(21)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
S
D
IR, SR, AR, DM, EM, HR, LR
Bit status
not changed.
Section 5-18
Operands
LD
00000
ASFT(17)
#
6000
DM
0100
DM
0110
After seven
executions
1234
2345
3456
4567
5678
6789
789A
0000
0000
0000
0000
Operand Data Areas
S: Source word
D: Destination word
Destination word
269
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?