EasyManua.ls Logo

LS Industrial Systems XBC-DR10E - Bit Control Instruction in Word Area

LS Industrial Systems XBC-DR10E
542 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
Area Available
Step
Flag
P M K F L T C S Z D.x
R.x
Con
st
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
x
Operators
S
O
O
O
O
O
O
-
O
-
-
-
O
O
O
O
2 - - -
n
O
O
O
O
O
O
O
-
O
-
-
O
O
O
O
O
x Operators Name Condition
Operation
result
Condition
Operation
result
B
Bit of Word
Bit = 1
On
Bit = 0
Off
BN
Inverse Bit of Word
Bit = 0
On
Bit = 1
Off
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
x
S n
LOAD x
Coil
CR1

Table of Contents

Related product manuals