3. Instruction Set
API
Mnemonic Operands Function
272 D
BANI
Connect NC Contact in Series by
Specified Bit
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
BANI: 5 steps
DBANI: 9 steps
SS2
SX2
SS2
SX2
SS2
SX2
Operands:
S: Reference source device n: Reference bit
Explanations:
1. For ES2/EX2 models, only V1.20 or above supports the function
2. Available range for the value in operand n: K0~K15 for 16-bit instruction; K0~K31 for 32-bit
instruction.
BANI instruction is used to connect NC contact in series, whose state is defined by the reference bit
n in reference device D, i.e. if the bit specified by n is ON, the NC contact will be ON, and vice
versa.
Program Example:
Instruction: Operation:
LDI X1 Load NC contact X1
BANI D0 K0 Connect NC contact in series
, whose state is defined by
bit0 of D0
OUT Y0 Drive coil Y0