Other Instructions
3-31-1 SET CARRY: STC(040)
Ladder Symbol
Variations
Applicable Program Areas
Description
Flags
Precautions
3-31-2 CLEAR CARRY: CLC(041)
Purpose
Ladder Symbol
Variations
1166
Instruction
DISABLE PERIPHERAL SERVICING IOSP
ENABLE PERIPHERAL SERVICING
Sets the Carry Flag (CY).
STC(040)
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
When the execution condition is ON, STC(040) turns ON the Carry Flag (CY).
Although STC(040) turns the Carry Flag ON, the flag will be turned ON/OFF
by the execution of subsequent instructions which affect the Carry Flag.
Name
Error Flag
ER
Equals Flag
=
Carry Flag
CY
Negative Flag
N
Note In CS1-H, CJ1-H, CJ1M, and CS1D (for Single-CPU System) CPU Units,
these Flags are left unchanged.
In CS1 and CJ1 CPU Units, these Flags are turned OFF.
ROL(027), ROLL(572), ROR(028), and RORL(573) make use of the Carry
Flag in their rotation shift operations. When using any of these instructions,
use STC(040) and CLC(041) to set and clear the Carry Flag.
Turns OFF the Carry Flag (CY).
CLC(041)
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Mnemonic
IORS
Step program areas
OK
Label
Unchanged (See note.)
Unchanged (See note.)
ON
Unchanged (See note.)
Section 3-31
Function code
Page
287
1183
288
1185
STC(040)
@STC(040)
Not supported.
Subroutines
Interrupt tasks
OK
OK
Operation
CLC(041)
@CLC(041)
Not supported.
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?
Questions and answers