Skip to main content

Flip-Flop Bit

Instruction Parameters​

Supported PLC Series​

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

Supported Data Registers​

MXYKLFTCSZRQD@DConstant
D✓-✓✓✓------✓✓✓-

Supported Flags​

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

Number of Steps​

Steps
1

Operands​

OperandDescription
DThe only operand.
Entries are only BOOL data registers.
This is the bit to toggle.

Flip-Flop Behavior​

Before FF executionAfter FF execution
0
OFF
1
ON
1
ON
0
OFF

Notice​

Instruction Behavior

The FF instruction behaves as follows:

  • The FF instruction toggles the bit at the BOOL data register, D.
  • Once the FF instruction is executed, bit of the BOOL data register, D, is inverted.

Examples​