Chapter 6 Instruction Details
XBC E-Type Main Unit
6-311
Ver. 1
6.45.3 BSET, BRESET
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)
BSET
BRESET
D
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
Operand
Description
Data Size
S
Word area of the relevant device
WORD
n
n
th
bit in Word area
WORD
1) BSET
(1) In sufficient condition, set n
th
bit of specified D area.
(2) Takes only the lower 4 bits of “n” value to decide bit position. Therefore, it doesn’t cause an error when
“n” value exceeds the Word’s range.
2) BRESET
(1) In sufficient condition, reset n
th
bit of specified D area.
(2) It takes only lower 4 bits of n value to decide bit position. Therefore, it doesn’t occur an error when n
value exceeds the Word’s range.
3) Program Example
If M00002 is ON, it sets the 2nd bit (b2) of D00001. And if M00003 is ON, it resets the 2nd bit (b2) of D00001
BSET
BRESET
D
n
BSET
D
n
BRESET
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...