270
Data Movement Instructions
Section 5-18
EQ:
ON when all zeros are transferred to D.
Example
The 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.
5-18-2 MOVE NOT – MVN(22)
Limitations
DM 6144 to DM 6655 cannot be used for D.
Description
When the execution condition is OFF, MVN(22) is not executed. When the
execution condition is ON, MVN(22) transfers the inverted content of S (spec-
ified word or four-digit hexadecimal constant) to D, i.e., for each ON bit in S,
the corresponding bit in D is turned OFF, and for each OFF bit in S, the corre-
sponding bit in D is turned ON.
Precautions
TIM/CNT numbers cannot be designated as D to change the PV of the timer
or counter. However, these can be easily changed using BSET(71).
Flags
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.)
EQ:
ON when all zeros are transferred to D.
@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
S
:
Source word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
D
:
Destination word
IR, SR, AR, DM, EM, HR, LR
Ladder Symbols
Operand Data Areas
MVN(22)
S
D
@MVN(22)
S
D
Source word
Destination word
Bit status
inverted.