Precautions; Condition Flags - Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual

Programmable controllers
Table of Contents

Advertisement

Precautions

2-2

Precautions

2-2-1

Condition Flags

Using Condition Flags
58
Conditions flags are shared by all instructions, and will change during a cycle
depending on results of executing individual instructions. Therefore, be sure
to use Condition Flags on a branched output with the same execution condi-
tion immediately after an instruction to reflect the results of instruction execu-
tion. Never connect a Condition Flag directly to the bus bar because this will
cause it to reflect execution results for other instructions.
Example: Using Instruction A Execution Results
Correct Use
The same execution condition (a) is used for instructions A and B to execute
instruction B based on the execution results of instruction A. In this case,
instruction B will be executed according to the Condition Flag only if instruc-
tion A is executed.
Incorrect Use
Condition Flag
Example: =
If the Condition Flag is connected directly to the left bus bar, instruction B will
be executed based on the execution results of a previous rung if instruction A
is not executed.
Note When interrupt tasks are being used, an interrupt task will operate when its
start conditions are met, even during execution of a cyclic task. In this case,
the Condition Flags are returned to their original status when processing
switches back from the interrupt task to the cyclic task, even if those flags
were turned ON/OFF in the interrupt task.
Instruction A
Reflects instruction A
execution results.
Condition Flag
Example: =
Instruction B
Preceding rung
Instruction A
Reflects the execution results of
the preceding rung if instruction
A is not executed.
Instruction B
Section 2-2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents