EasyManua.ls Logo

Delta AH500 - Page 411

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-243
API
Instruction code Operand Function
1104 SFWR P
S, D, n
Shifting the data and writing it into
the word device
Device
X Y M S T C HC D L SM SR E PR K 16# $” DF
S
D
n
Pulse instruction
16-bit instruction (7 steps)
32-bit instruction
AH500
AH500
-
Symbol:
S
Device in which the data is shifted Word
D
Initial device Word
n
Data length Word
Explanation:
1. The data in the n word devices starting from the device specified by D is defined as a first in,
first out data type, and the device specified by D is taken as a pointer. When the instruction is
executed, the value of the pointer increases by one, and the data in the device specified by S
is written into the device specified by the pointer. When the value of the pointer is larger than or
equal to n-1, the instruction does not process the writing of the data, and the carry flag SM602
is ON.
2. Generally, the pulse instruction SFWRP is used.
3. The operand n should be within the range between 2 and 512.
Example:
1. The value of the pointer D0 is cleared to 0 first. When X0.0 is switched from OFF to ON, the
data in D20 is written into D1, and the value in D0 becomes 1. When X0.0 is switched from
OFF to ON again, the data in D20 is written to D2, and the value in D0 becomes 2.
2. The data in the word device is shifted and written in the following way.
The data in D20 is written into D1.
The value in D0 becomes 1.

Table of Contents

Other manuals for Delta AH500

Related product manuals