Delta AH500 Programming Manual page 424

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
1112
BSFR
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 right. The state of
D+n-1 is cleared to 0, and the state of D is transmitted to the carry flag SM602.
2.
Generally, the pulse instruction BSFRP 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 right, the state of M5 is cleared
to 0, and the state of M0 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.
6 - 2 5 6
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 shift
M5
M4
M3
M2
0
0
0
0
Being c leared to 0
Shifting the states of the n bit
devices by one bit to the right
L
SM SR
E
PR
AH500
Carry flag
M1
M0
0
1
Carry flag
M1
M0
1
0
1
Function
K
16# "$"
DF
-
Bit
Word

Advertisement

Table of Contents
loading

Table of Contents