EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 257

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
224
Comparison Instructions Section 3-6
Using CMPL(060) Results in the Program
Do not program another instruction between CMPL(060) and the instruction
controlled by the Arithmetic Flag because the other instruction might change
the status of the Arithmetic Flag. In this case, the results of instruction B might
change the results of CMPL(060).
Flags
Precautions Do not program another instruction between CMPL(060) and an input condi-
tion that accesses the result of CMPL(060) because the other instruction
might change the status of the Arithmetic Flags.
CMPL
S1
S2
A
Incorrect Use of CMPL(060)
Instruction
B
Arithmetic Flag
(Example: Equals Flag)
Name CX-Programmer
label
Operation
Greater Than Flag P_GT ON if S
1
+1, S
1
> S
2
+1, S
2
.
OFF in all other cases.
Greater Than or Equal Flag P_GE ON if S
1
+1, S
1
S
2
+1, S
2
.
OFF in all other cases.
Equal Flag P_EQ ON if S
1
+1, S
1
= S
2
+1, S
2
.
OFF in all other cases.
Not Equal Flag P_NE ON if S
1
+1, S
1
S
2
+1, S
2
.
OFF in all other cases.
Less Than Flag P_LT ON if S
1
+1, S
1
< S
2
+1, S
2
.
OFF in all other cases.
Less Than or Equal Flag P_LE ON if S
1
+1, S
1
S
2
+1, S
2
.
OFF in all other cases.

Table of Contents

Related product manuals