Delta AH500 Programming Manual page 425

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
1113
BSFL
Device X
Y
M
D
n
Symbol:
Explanation:
1.
The states of the n bit devices starting from D are shifted by one bit to the left. The state of D is
cleared to 0, and the state of D+n-1 is transmitted to the carry flag SM602.
2.
Generally, the pulse instruction BSFLP is used.
3.
The operand n should be within the range between 1 and 1024.
Example:
When X0.0 is ON, the states of M0~M5 are shifted by one bit to the left, the state of M0 is cleared to
0, and the state of M5 is transmitted to the carry flag SM602.
Additional remark:
1.
If D+n-1 exceeds the device range, the instruction is not executed, SM0 is ON, and the error
code in SR0 is 16#2003.
2.
If n is less than 1, or if n is larger than 1024, 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 : Initial device involve in the shift
n : Data length
M5
M4
M3
M2
0
0
0
1
After the s hift
M5
M4
M3
M2
0
0
1
0
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Shifting the states of the n bit
devices by one bit to the left
L
SM SR
E
AH500
Carry flag
M1
M0
0
1
Carry flag
M1
M0
1
0
0
Being c leared to 0
Function
PR
K
16# "$"
DF
-
Bit
Word
6 - 2 5 7

Advertisement

Table of Contents
loading

Table of Contents