The leader in industrial automation and control solutions

Instruction Parameters

Supported PLC Series

PLC-AESPLC-FBPLC-ES

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.

Ladder Diagram Examples

FF Example

The FF instruction inverts the bit of the BOOL data register, D.

The FF instruction inverts the bit of the BOOL data register, D.

When the contact, M0.0, is powered OFF (0), the bit value of the data register, M10.0, is 0.

When the contact, M0.0, is powered OFF (0), the bit value of the data register, M10.0, is 0.

The bit value of the data register, D, is 0.

The bit value of the data register, D, is 0.

When the contact, M0.0, is powered ON (1), the bit value of the data register, M10.0, is 1.

When the contact, M0.0, is powered ON (1), the bit value of the data register, M10.0, is 1.

The bit value of the data register, M10.0, is 1.

The bit value of the data register, M10.0, is 1.