Ccs/Ccl - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

CCS/CCL

Instruction
SAVE CONDITION FLAGS
LOAD CONDITION FLAGS
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Flags
CCS
There are no flags affected.
CCL
Changes to the value that was read.
Function
CCS
When the execution condition is ON, CCS(282) stores the current status of the Condition Flags (except
for the ALWAYS ON and ALWAYS OFF Flags) in a separate area in the CPU Unit. The Status of the
following Condition Flags will be preserved: ER, CY, >, =, <, N, OF, UF, >=, <>, and <=.
Note When CCS(282) is executed, it overwrites the previous Condition Flag information that was saved.
CCL
When the execution condition is ON, CCL(283) restores (reads) the status of the Condition Flags
(except for the ALWAYS ON and ALWAYS OFF Flags). The Status of the following Condition Flags will
be restored (read): ER, CY, >, =, <, N, OF, UF, >=, <>, and <=.
The preserved status of the Condition Flags can be read (restored) later only with CCL(283), the LOAD
CONDITION FLAGS instruction. The status can be read in any of the following cases:
• Within a task
• Between different cyclic tasks
• Between cycles
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
CCS
@CCS
CCL
@CCL
CCS
CCS(282)
Block program areas
Step program areas
OK
OK
Function
code
Saves the current status of the Condition Flags in a sepa-
282
rate area within the CPU Unit.
Restores the status of the Condition Flags that were
283
saved in a separate area within the CPU Unit by
CCS(282).
Subroutines
OK
3. Instructions
Function
CCL
CCL(283)
SFC action or transition
Interrupt tasks
programs
OK
OK
3
1025

Advertisement

Table of Contents
loading

Table of Contents