EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 276

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...
243
Comparison Instructions Section 3-6
Arithmetic Flag Status
The following table shows the status of the Arithmetic Flags after execution of
ZCP(088).
Using ZCP(088) Results in the Program
When ZCP(088) is executed, the result is reflected in the Arithmetic Flags.
Control the desired output or right-hand instruction with a branch from the
same input condition that controls ZCP(088), as shown in the following dia-
gram. In this case, the Equals Flag and output A will be turned ON when
LL
CD UL.
Do not program another instruction between ZCP(088) 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 ZCP(088).
Flags
ZCP(088)Result Flag status
>=<
CD > UL ON OFF OFF
CD = UL OFF ON
LL < CD < UL
CD = LL
CD < LL OFF ON
A
ZCP
CD
LL
UL
Correct Use of ZCP(088)
Arithmetic Flag
(Example: Equal Flag)
A
ZCPL
CD
LL
UL
Incorrect Use of ZCP(088)
Arithmetic Flag
(Example: Equal Flag)
Instruction
B
Name Label Operation
Error Flag ER ON if LL > UL.
Greater Than Flag > ON if CD > UL.
OFF in all other cases.
Greater Than or Equal Flag > = Left unchanged.

Table of Contents

Related product manuals