Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 368

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Comparison Instructions
Flags
Precautions
Example
328
Correct Use of ZCP(088)
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).
Incorrect Use of ZCP(088)
Name
Error Flag
Greater Than Flag
Greater Than or Equal Flag
Equal Flag
Not Equal Flag
Less Than Flag
Less Than or Equal Flag
Negative Flag
Do not program another instruction between ZCP(088) and an input condition
that accesses the result of ZCP(088) because the other instruction might
change the status of the Arithmetic Flags.
When CIO 000000 is ON in the following example, the 16-bit unsigned binary
data in D00000 is compared to the range 0005 to 001F hex (5 to 31 decimal)
and the result is output to the Arithmetic Flags.
CIO 000200 is turned ON if 0005 hex
CIO 000201 is turned ON if the content of D00000 > 001F hex.
CIO 000202 is turned ON if the content of D00000 < 0005 hex.
ZCP
Arithmetic Flag
(Example: Equal Flag)
Arithmetic Flag
(Example: Equal Flag)
Label
Operation
ER
ON if LL > UL.
>
ON if CD > UL.
OFF in all other cases.
> =
Left unchanged.
=
ON if LL
CD
UL.
OFF in all other cases.
<>
Left unchanged.
<
ON if CD < LL.
OFF in all other cases.
< =
Left unchanged.
N
Left unchanged.
content of D00000
Section 3-7
CD
LL
UL
A
ZCPL
CD
LL
UL
Instruction
B
A
001F hex.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents