Delta AH500 Programming Manual page 463

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
1218
BSET
Device X
Y
M
D
n
Symbol:
Explanation:
1.
The instruction is used to set the n
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.
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.
Operand
D, n
P
S
T
C
HC
D
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction
AH500
D : Device number
n : Bit number
th
bit in the register specified by D to 1.
b15
1 1 1 1 1 1 1 1 1 1
After the i nstruction
is executed
b15
1 1 1 1 1 1 1 1 1 1
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Setting the bit in the word device to
ON
L
SM SR
E
PR
AH500
Word
Word
D10
b0
0
0 0 0 1 1
D10
b0
1
0 0 0 1 1
Function
K
16# "$"
DF
-
6 - 2 9 5

Advertisement

Table of Contents
loading

Table of Contents