EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1083 background imageLoading...
Page #1083 background image
1045
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Other Instructions
3
CCS/CCL
The status of the Condition Flags cannot be saved/loaded between a cyclic task and interrupt task.
Hint
Condition Flags are shared by all instructions, so the status of these Flags may change many times
during the PLC cycle as each instruction is executed. Previously, it was necessary to place conditions
using the Condition Flags immediately after the controlling instruction so that the status of the Condition
Flags would not be affected by intervening instructions. The CCS(282) and CCL(283) instructions allow
the controlling instruction to be separated from the execution conditions that rely on the result.
For example, CCS(282) can store the status of the Equals Flag after execution of a Comparison
Instruction and the result can be restored later. The result does not have to be used immediately after
execution of the instruction.
• All of the Condition Flags are cleared when operation switches from one task to another. Use the
CCS(282) and CCL(283) instructions to save and load the Condition Flag status between tasks or
cycles.
A
CCS
CCL
CCS
CCL
A
B
CCS
CCL
Between cycles
Between cyclic tasksWithin a task
CCL(283) is executed to read the status
in the next cycle after CCS(282) was
executed to save the status.
CCS
CMP
CCL
Ta sk
The results of the comparison are stored in the Condition Flags.
(In this case, the results of the COMPARE Instruction can be used
in instruction B even if those results are affected by execution of
instruction A.)
Preserves the status of the Condition Flags in a separate location
in the CPU Unit.
Restores the status of the Condition Flags.
The Equals Flag will reflect the result of the COMPARE instruction,
not the result of instruction A.
Instruction A
Instruction B

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals