Inverted Bit Status
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 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| S1 | - | - | - | - | - | - | - | - | - | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| S2 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Supported Flags
| Flag | Bit | Support |
|---|---|---|
| Error | F11.0 | ✓ |
| Zero | F11.1 | - |
| Carry | F11.2 | - |
Number of Steps
| Steps |
|---|
| 3 |
Operands
| Operand | Description |
|---|---|
| S1 | The first operand. Entries are only BOOL data registers. This is the data register to find the status bit. |
| S2 | The second operand. Entries are WORD data registers or constants. This is the bit value number to find the ON or OFF status of. The value range is 0 ~ 15. |
Notice
Error Flag (F11.0) Notice
The error flag, F11.0, will be ON for one scan when the address of the data register assigned by @D exceeds the range of the data register, D. The range of the data register, D, is dependent on the CPU type.
Instruction Behavior
The BTI instruction as an execution condition behaves as follows:
- The referred status of bit data assigned to the data register, S2, is used as a contact
- With the referred status of bit data, the BTI instruction starts a contact B operation.
- An ON or OFF execution condition is created based on the OFF status (0) of the specified bit, S2, in the BOOL data register, S1.
- The BTI instruction is connected to the bus bar or used at the beginning of a logic block.
- The value range of the specified bit, S2, is 0 ~ 15.
- If the specified bit value, S2, is greater than 16, the remainder from S2 ÷ 16 is the equivalent.
- Example: if S2 = 17, the remainder is 1. This is the same as S2 = 1.
- If the specified bit value, S2, is greater than 16, the remainder from S2 ÷ 16 is the equivalent.