EasyManuals Logo

Omron SYSMAC CP Series Instruction & Reference Manual

Omron SYSMAC CP Series
467 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #132 background imageLoading...
Page #132 background image
2 Instructions
2-96
CP1E CPU Unit Instructions Reference Manual(W483)
The following table shows the status of the Arithmetic Flags after execution of CMP(020).
* A status of “---” indicates that the Flag may be ON or OFF.
The following table shows the status of the Arithmetic Flags after execution of CMPL(060)
.
* A status of “---” indicates that the Flag may be ON or OFF.
Function
CMP
CMP(020) compares the unsigned binary data in S
1
and S
2
and outputs the result to Arithmetic Flags
(the Greater Than, Greater Than or Equal, Equal, Less Than or Equal, Less Than, and Not Equal
Flags) in the Auxiliary Area.
CMPL
CMPL(060) compares the unsigned binary data in S
1
+1, S
1
and S
2
+1, S
2
and outputs the result to
Arithmetic Flags (the Greater Than, Greater Than or Equal, Equal, Less Than or Equal, Less Than, and
Not Equal Flags) in the Auxiliary Area.
CMP(020) Result
Flag status
> > = = < = < < >
S
1
> S
2
ON ON OFF OFF OFF ON
S
1
= S
2
OFFONONONOFFOFF
S
1
< S
2
OFFOFFOFFONONON
CMPL(060) Result
Flag status
> > = = < = < < >
S
1
+1, S
1
> S
2
+1, S
2
ON ON OFF OFF OFF ON
S
1
+1, S
1
= S
2
+1, S
2
OFFONONONOFFOFF
S
1
+1, S
1
< S
2
+1, S
2
OFFOFFOFFONONON
S1 S2
(>, >=, =, <=, <, <>)
Unsigned binary
comparison
Arithmetic Flags
S1S1+1 S2S2+1
(>, >=, =, <=, <, <>)
Unsigned binary
comparison
Arithmetic Flags

Table of Contents

Other manuals for Omron SYSMAC CP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CP Series and is the answer not in the manual?

Omron SYSMAC CP Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CP Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals