Skip to main content

Inverted Bit Status

Instruction Parameters

Supported PLC Series

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

Supported Data Registers

MXYKLFTCSZRQD@DConstant
S1----------
S2-

Supported Flags

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

Number of Steps

Steps
3

Operands

OperandDescription
S1The first operand.
Entries are only BOOL data registers.
This is the data register to find the status bit.
S2The 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.

Examples