5-25
5 I/O Memory
CP2E CPU Unit Software User’s Manual(W614)
5-
11 Co
nd
itio
n Fla
g
s
5
5-1-
3
I/O Memor
y
Ar
eas
5-11 Condition Flags
These flags include the flags that indicate the results of instruction execution, as well as the Always ON
and Always OFF Flags. These bits are specified with symbols rather than addresses.
The CX-Programmer treats condition flags as system-defined symbols (global symbols) beginning with P_.
The Condition Flags are read-only; they cannot be written from instructions or from the CX-Program-
mer.
The Condition Flags cannot be force-set and force-reset.
z
Types of Condition Flags
Refer to
4-6 Ladder Programming Precaution
s
for details.
Overview
Notation
Details
Name
Name in CX-
Programmer
Function
Always ON Flag
P_On
Always ON.
Always OFF Flag
P_Off
Always OFF.
Error Flag
P_ER
Turned ON when the operand data in an instruction is incorrect (an
instruction processing error) to indicate that an instruction ended
because of an error.
When the PLC Setup is set to stop operation for an instruction error
(Instruction Error Operation), program execution will be stopped and
the Instruction Processing Error Flag (A295.0
8
) will be turned ON
when the Error Flag is turned ON.
Access Error Flag
P_AER
Turned ON when an Illegal Access Error occurs. The Illegal Access
Error indicates that an instruction attempted to access an area of
memory that should not be accessed.
When the PLC Setup is set to stop operation for an instruction error
(Instruction Error Operation), program execution will be stopped and
the Instruction Processing Error Flag (A4295.10) will be turned ON
when the Access Error Flag is turned ON.
Carry Flag
P_CY
Turned ON when there is a carry in the result of an arithmetic opera-
tion or a 1 is shifted to the Carry Flag by a Data Shift instruction.
The Carry Flag is part of the result of some Data Shift and Symbol
Math instructions.
Greater Than Flag
P_GT
Turned ON when the first operand of a Comparison Instruction is
greater than the second or a value exceeds a specified range.
Equals Flag
P_EQ
Turned ON when the two operands of a Comparison Instruction are
equal or the result of a calculation is 0.
Condition flag name: ER
P_
ER
I/O memory area designator:
P_ (indicates a system sym
b
ol name)
Summary of Contents for SYSMAC CP Series
Page 3: ......
Page 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Page 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Page 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Page 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Page 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Page 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Page 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Page 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Page 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Page 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Page 577: ......