Chapter 6 Instruction Details
XBC E-Type Main Unit 6-308 Ve r. 1
6.45 Bit Control Instruction in Word Area
6.45.1 Bit of Word (B, BN)
Instruction
Step
P M K F L T C S Z D.x
R.x
U N D R
x
Operators
2 - - -
x Operators Name Condition
Condition
Operand Description Data Size
S Word area of the relevant device WORD
n n
th
bit in Word area WORD
*Note: Compare instruction must be used in Input (Contact) Position of ladder rung. This instruction uses 3
contact points.
1) LOAD x (B, BN)
a) Ladder Structure: “B” takes the n
th
bit of Word. If it is 1, coil CR1 will be On. “BN” takes nth bit reversed
value. If n
th
bit is 1, result will be 0, and coil CR1 will be Off. Both functions take only the lower 4 bits of
“n” value to decide bit position. No error will be given when “n” value exceeds the Word’s range.
b) Example: If bit 4 of D00001 is 1, P0001D will be On.
c) Example: If bit 5 of D00001 is 0, P0001E will be ON.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
n
th
bit
Input Positions
Output
Position