5 I/O Memory
5-26
CP2E CPU Unit Software User’s Manual(W614)
z
Using the Condition Flags
The Condition Flags are shared by all of the instructions. Their status may change after each
instruction execution in a single cycle.
Therefore, be sure to use Condition Flags on a branched output with the same execution condition
immediately after an instruction to reflect the results of instruction execution.
Example: Using Instruction A Execution Results
Precautions for Correct Use
Precautions for Correct Use
The Condition Flags are shared by all of the instructions. This means that program operation can
be changed from its expected course by interruption of a single task. Be sure to consider the
effects of interrupts when writing ladder programs to prevent unexpected operation.
Less Than Flag
P_LT
Turned ON when the first operand of a Comparison Instruction is less
than the second or a value is below a specified range.
Negative Flag
P_N
Turned ON when the most significant bit of a result is ON.
Overflow Flag
P_OF
Turned ON when the result of calculation overflows the capacity of the
result word(s).
Underflow Flag
P_UF
Turned ON when the result of calculation underflows the capacity of
the result word(s).
Greater Than or
Equals Flag
P_GE
Turned ON when the first operand of a Comparison Instruction is
greater than or equal to the second.
Not Equal Flag
P_NE
Turned ON when the two operands of a Comparison Instruction are
not equal.
Less than or Equals
Flag
P_LE
Turned ON when the first operand of a Comparison Instruction is less
than or equal to the second.
Name
Name in CX-
Programmer
Function
Instr
u
ction A
Instr
u
ction B
Condition Flag
Example:
=
Operand
=
Instr
u
ction
LD
Instr
u
ction A
A
N
D
Instr
u
ction B
The res
u
lt from instr
u
ction A
is reflected in the E
qu
als Flag
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......