Omron C40K Video Game Controller User Manual


 
112
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 the GR, EQ, and LE flags in the
SR area.
Placing other instructions between CMP(20) and accessing the EQ, LE, and
GR flags may change the status of these flags. Be sure to access them be-
fore the desired status is changed.
EQ: ON if Cp1 equals Cp2.
LE: ON if Cp1 is less than Cp2.
GR: ON if Cp1 is greater than Cp2.
Description
Precautions
Limitations
Description
Precautions
DATA COMPARE – CMP(20) Section 5-14