EasyManua.ls Logo

Delta AH500 - Page 463

Delta AH500
749 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 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
D
n
Pulse instruction
16-bit instruction (5 steps)
32-bit instruction
AH500
AH500
-
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.

Table of Contents

Other manuals for Delta AH500

Related product manuals