Flip-Flop Bit
Instruction Parameters
Supported PLC Series
| XPnA/1R | XPnB | XPnE | XPnF | CP3A/B/P/U CP4A~D/U | CPnE | CPnF | BP | PLC-S |
|---|---|---|---|---|---|---|---|---|
| ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
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.