Chapter 6 Applied Instructions 
6-295 
API 
Instruction code  Operand  Function 
1218    BSET  P 
D, n 
Setting the bit in the word device to 
ON 
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#  “$”  DF 
  Pulse instruction
16-bit instruction (5 steps)
32-bit instruction 
Symbol: 
D
:
Device number  Word 
n
:
Bit number  Word 
Explanation: 
1.  The instruction is used to set the n
th
 bit in the register specified by D to 1. 
2.  When the instruction BSET is driven, the specified bit is set to ON. No matter the instruction 
BSET is still driven or not, the bit keeps ON. Users can use the instruction BRST to set the bit 
OFF. 
3.  The operand n should be within the range between 0 and 15. 
Example: 
When X0.0 is ON, the fifth bit in D10 is set to 1. 
 
After the instruction 
is executed
1 1 1 1 1 1 1 1 1 1
0 0 0 0
1 1
b0
b15
D10
1 1 1 1 1 1 1 1 1 1
1 0 0 0
1 1
b0
b15
D10
 
Additional remark: 
If n is less than 0, or if n is larger than 15, the instruction is not executed, SM0 is ON, and the error 
code in SR0 is 16#200B.