Move Not - Mvn(22); Data Compare - Cmp - Omron SYSMAC C20P Operation Manual

Sysmac programmable controllers
Hide thumbs Also See for SYSMAC C20P:
Table of Contents

Advertisement

Data Comparison
5–13–2 Move NOT – MVN(22)
Description
Precautions
Flags
5–14 Data
Compare – CMP(20)
Limitations
Description
82
Ladder Symbol
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
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.
This section describes the instruction used for comparing data. CMP(20) is
used to compare the contents of two words.
Ladder Symbols
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.
Operand Data Areas
S : Source word
IR, SR, DM, HR, TC, #
D : Destination word
IR, DM, HR
Destination word
Bit status
inverted.
Operand Data Areas
Cp1 : First compare word
IR, SR, DM, HR, TC, #
Cp2 : Second compare word
IR, SR, DM, HR, TC, #
Section 5–14

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c28pSysmac c40pSysmac c60p

Table of Contents