Instruction Parameters
Supported PLC Series
| PLC-AES | PLC-FB | PLC-ES |
|---|---|---|
| ✓ | ✓ | ✓ |
Supported Data Registers
| M | X | Y | K | L | F | T | C | S | Z | R | Q | D | @D | Constant | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| D | ✓ | – | ✓ | ✓ | ✓ | – | – | – | – | – | – | ✓ | ✓ | ✓ | – |
Supported Flags
| Flag | Bit | Support |
|---|---|---|
| Error | F11.0 | – |
| Zero | F11.1 | – |
| Carry | F11.2 | – |
Number of Steps
| Steps |
|---|
| 1 |
Operands
| Operand | Description |
|---|---|
| D | The only operand. Entries are only BOOL data registers. This is the bit to toggle. |
Flip-Flop Behavior
| Before FF execution | After 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.

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.

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.
