961
Other Instructions Section 3-29
3-29 Other Instructions
This section describes instructions for manipulating the Carry Flag, extending
the maximum cycle time, saving/loading Condition Flag status, and converting
memory addresses.
3-29-1 SET CARRY: STC(040)
Purpose Sets the Carry Flag (CY).
Ladder Symbol
Variations
Applicable Program Areas
Description 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.
Flags
Precautions 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.
3-29-2 CLEAR CARRY: CLC(041)
Purpose Turns OFF the Carry Flag (CY).
Ladder Symbol
Instruction Mnemonic Function code Page
SET CARRY STC 040 961
CLEAR CARRY CLC 041 961
EXTEND MAXIMUM CYCLE TIME WDT 094 962
SAVE CONDITION FLAGS CCS 282 964
LOAD CONDITION FLAGS CCL 283 966
CONVERT ADDRESS FROM CV FRMCV 284 967
CONVERT ADDRESS TO CV TOCV 285 971
STC(040)
Variations Executed Each Cycle for ON Condition STC(040)
Executed Once for Upward Differentiation @STC(040)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Name Label Operation
Error Flag ER ---
Equals Flag = ---
Carry Flag CY ON
Negative Flag N ---
CLC(041)