Condition Flags - Omron CP1L CPU Getting Started Manual

Cp1l cpu unit
Hide thumbs Also See for CP1L CPU:
Table of Contents

Advertisement

A-1 Channel/Relay Numbers

Condition Flags

A
98
SYSMAC CP1L Getting Started Guide
Condition flags are used to reflect the processing results during or after the
execution of instructions. Whether a flag is used or not will depend on the
instruction. These flags are used in ladder programs as contacts.
Name
Label
Error flag
ER
Access error flag
AER
Carry flag
CY
Equals flag
=
< >
Unequal flag
Greater than flag
>
>=
Greater than or
equals flag
<
Less than flag
Less than or
<=
equals flag
Negative flag
N
Overflow flag
OF
Underflow flag
UF
Always ON flag
ON
Always OFF flag
OFF
In CX-P
P_ER
• Turns ON when an instruction handling BCD
data attempts to execute using non-BCD data.
• Turns ON when an operand value specified by
the instruction is invalid (e.g. a value outside
the work area).
P_AER
Turns ON when unauthorized access is
attempted on an area that is not meant to be
accessed.
P_CY
• Turns ON when the number of digits is
increased or decreased as a result of
executing an arithmetical instruction.
• Data shift instructions and some arithmetical
instructions may handle the carry as part of
their processing.
P_EQ
• Turns ON when data comparison returns an
"equal".
• Turns ON when data becomes 0 as a result of
calculations or transfers.
P_NE
Turns ON when data comparison returns an
"unequal".
P_GT
Turns ON when data comparison returns
"data1>data2".
P_GE
Turns ON when data comparison returns
"data1>=data2".
P_LT
Turns ON when data comparison returns
"data1<data2".
P_LE
Turns ON when data comparison returns
"data1=<data2".
P_N
Turns ON when the MSB becomes 1 as a result
of calculations.
P_OF
Turns ON when the calculation result overflows.
P_UF
Turns ON when the calculation result
underflows.
P_ON
Remains ON at all times. Used as an execution
condition for instructions that cannot be
connected directly to the bus bar.
P_OFF
Remains OFF at all times.
Function

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents