EasyManua.ls Logo

Delta AH500 - Page 407

Delta AH500
749 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Applied Instructions
6-239
API
Instruction code
Operand Function
1102 WSFR P
S, D, n
1
, n
2
Shifting the data in the word
devices to the right
Device
X Y M S T C HC D L SM SR E PR K 16# “$” DF
S
D
n
1
n
2
Pulse instruction
16-bit instruction (9 steps)
32-bit instruction
AH500 AH500 -
Symbol:
S
Initial device in which the value is shifted Word
D
Initial device in which the value is shifted Word
n
1
Length of the data which is shifted Word
n
2
Number of bits forming a group Word
Explanation:
1. The data in the n
1
word devices starting from D is divided into groups (n
2
words as a group),
and these groups are shifted to the right. The data in the n
2
word devices starting from S are
shifted to the devices starting from D to fill the vacancy.
2. Generally, the pulse instruction WSFRP is used.
3. The operand n
1
should be within the range between 1 and 512. The operand n
2
should be
within the range between 1 and n
1
.
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
Being carried
D27~D24
D23~D20
D31~D28
D27~D24
D35~D32
D31~D28
D13~D10
D35~D32

Table of Contents

Other manuals for Delta AH500

Related product manuals