237
Data Movement Instructions Section 5-17
Note The zeroes are shifted “upward” if C=4000, and the entire shift register is set
to zero if C=8000.
5-17 Data Movement Instructions
5-17-1 MOVE – MOV(21)
Limitations DM 6144 to DM 6655 cannot be used for D.
Description 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.
Precautions TC 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).
Flags ER: Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
EQ: ON when all zeros are transferred to D.
Example he following example shows @MOV(21) being used to copy the content of
IR 001 to HR 05 when IR 00000 goes from OFF to ON.
S: Source word
IR, SR, AR, DM, HR, TC, LR, #
D: Destination word
IR, SR, AR, DM, HR, LR
Ladder Symbols Operand Data Areas
MOV(21)
S
D
@MOV(21)
S
D
Source word Destination word
Bit status
not changed.
@MOV(21)
001
HR 05
00000
Address Instruction Operands
00000 LD 00000
00001 @MOV(21)
001
HR 05
0 1 1 1 0 0 1 1 1 0 0 0 1 0 1
HR 05
0 1 1 1 0 0 1 1 1 0 0 0 1 0 1
IR 000
0
0