82
5–13–2 Move NOT – MVN(22)
S : Source word
IR, SR, DM, HR, TC, #
D : Destination word
IR, DM, HR
Ladder Symbol Operand Data Areas
MVN(22)
S
D
When the execution condition is OFF, MVN(22) is not executed and the next
instruction is moved to. When the execution condition is ON, MOV(21) trans-
fers the inverted content of S (specified word or four-digit hexadecimal con-
stant) 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 corresponding bit in D is turned ON.
Source word Destination word
Bit status
inverted.
TC numbers cannot be designated as D to change the PV of the timer or
counter.
EQ: ON when all zeros are transferred to D.
5–14 Data Compare – CMP(20)
This section describes the instruction used for comparing data. CMP(20) is
used to compare the contents of two words.
Cp1 : First compare word
IR, SR, DM, HR, TC, #
Cp2 : Second compare word
IR, SR, DM, HR, TC, #
Ladder Symbols Operand Data Areas
CMP(20)
Cp1
Cp2
When comparing a value to the PV of a timer or counter, the value must be
four-digit BCD.
When the execution condition is OFF, CMP(20) is not executed and the next
instruction is moved to. When the execution condition is ON, CMP(20) com-
pares Cp1 and Cp2 and outputs the result to GR, EQ, and LE in the SR area.
Description
Precautions
Flags
Limitations
Description
Data Comparison Section 5–14