Delta AH500 Programming Manual page 407

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
1102
WSFR
Device X
Y
M
S
D
n
1
n
2
Symbol:
Explanation:
1.
The data in the n
1
and these groups are shifted to the right. The data in the n
shifted to the devices starting from D to fill the vacancy.
2.
Generally, the pulse instruction WSFRP is used.
3.
The operand n
should be within the range between 1 and 512. The operand n
1
within the range between 1 and n
Example 1:
1.
When X0.0 is switched from OFF to ON, the data in the sixteen word devices starting from D20
is divided into groups (four words as a group), and these groups are shifted to the right.
2.
The shift of the data in the word devices to the right during a scan is illustrated as follows.
 D23~D20
 D27~D24
 D31~D28
 D35~D32
 D13~D10
Operand
S, D, n
P
1
S
T
C
HC
D
Pulse instruction 16-bit instruction (9 steps) 32-bit instruction
S : Initial device in which the value is shifted
D : Initial device in which the value is shifted
: Length of the data which is shifted
n
1
: Number of bits forming a group
n
2
word devices starting from D is divided into groups (n
.
1
→ Being carried
→ D23~D20
→ D27~D24
→ D31~D28
→ D35~D32
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Shifting the data in the word
, n
2
devices to the right
L
SM SR
E
AH500
AH500
word devices starting from S are
2
Function
PR
K
16# "$"
DF
-
Word
Word
Word
Word
words as a group),
2
should be
2
6 - 2 3 9

Advertisement

Table of Contents
loading

Table of Contents