Skip to main content

Set Carry Flag (1)

Instruction Parameters​

Supported PLC Series​

XPnA/1RXPnBXPnEXPnFCP3A/B/P/U
CP4A~D/U
CPnECPnFBPPLC-S
✓✓✓✓✓✓✓✓✓

Supported Data Registers​

MXYKLFTCSZRQD@DConstant
---------------

Supported Flags​

FlagBitSupport
ErrorF11.0-
ZeroF11.1-
CarryF11.2✓

Number of Steps​

Steps
1

Notice​

Instruction Behavior

The STC instruction behaves as follows:

  • The STC instruction sets the carry flag, F11.2, to ON (1), when the operation condition is ON (1).
  • When the operation condition of the STC instruction is OFF (0) or ON (1), there is no change in the carry flag, F11.2.
Operational Differences

There are operational differences with the carry flag, F11.2, between the CPU types BP, XPnA/1R, CP3A/B/P/U, CP4A~D/U, and the CPU types PLC-S, XPnB/E/F, CPnE/F.
Refer to the carry flag, F11.2, for more information.

Examples​