Delta AH500 Programming Manual page 423

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
1111
SFL
Device X
Y
M
D
n
Symbol:
Explanation:
1.
The values of the bits in D are shifted by n bits to the left. The vacancies (b0~bn-1) resulting
from the shift is filled by 0, and the value of b16-n is transmitted to SM602.
2.
The operand n should be within the range between 1 and 16.
3.
Generally, the pulse instruction SFLP is used.
Example:
When X0.0 is ON, the values of b0~b15 in D0 are shifted by 6 bits to the right, and the value of b10
is transmitted to SM602. The values of b0~b5 are cleared to 0 after the shift.
The shift of the values of the bits to the left during a scan is illustrated as follows.
→ Being carried (The value of b10 is transmitted to SM602.
b15~b10
→ b15~b6
b9~b0
→ b5~b0
0
b 15
0 0 0
b 15
1 1 0
Additional remark:
If n is less than 0, or if n is larger than 16, 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 involved in the shift
n : Number of bits
0 1 1 1 1 0 0 0 0 1 1 1 1
After the s hift
0 0 0 1 1 1 1 0 0 0 0 0 0
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Shifting the values of the bits in the
16-bit registers by n bits to the left
L
SM SR
E
PR
AH500
Carry flag
b 0
Carry flag
b 0
Being fill ed by 0
Function
K
16# "$"
DF
-
Word
Word
1
6 - 2 5 5

Advertisement

Table of Contents
loading

Table of Contents