EasyManua.ls Logo

Delta DVP-20PM

Delta DVP-20PM
580 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...
5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-58
API
Applicable model
20PM
39
SFRD
P
P
Moving a value and reading it from a
word device
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D V Z
S
D
n
Note: The instruction supports V devices and Z devices. (If the 16-bit
instruction is used, Z devices can not be used. If the 32-bit
instruction is used, V devices can not be used.)
Please refer to specifications for more information about device
ranges.
If KnX/KnY/KnM/KnS is used, it is suggested that X/devices/Y
devices/M device numbers/S device numbers should start from a
number which is a multiple of 16 in the octal numeral system or in the
decimal numeral system, e.g. K1X0 (octal numeral system), K4SY20
(octal numeral system), K1M0 (decimal numeral system), and K4S16
(decimal numeral system).
16-bit instruction (9 steps)
SFRD
Continuity
instruction
SFRD P
Pulse
instruction
32-bit instruction
Flags
Ox O100
M1808 M1968 Zero flag
Explanation
The values in the n word devices star
ting from S are defined as first in, first out
values, and S is taken as a pointer. When the instruction is executed, the value
in S decreases by one, the value in S+1 is written into D, the values in
S+n-1~S+2 are moved rightwards, and the value in S+n-1 is unchanged.
When the value in S is equal to 0, the instruction does not process the reading
of the values, and a zero flag is ON.
S: Initial device; D: Device into which a value is written; n: Number of devices
When the value in S is equal to 0, the instruction does not process the reading
of the values, and the zero flag M1020 is ON.
Generally, the pulse instruction SFRDP is used.
2n512
Example
When X0 is turned from OFF to ON, the value in D1 is written into D21, the
values in D9~D2 are moved rightwards, the value in D9 is unchanged, and the
value in D0 decreases by one.
The value in D1 is moved and written into D21 in the way described below.
The value in D1 is written into D21.
The values in D9~D2 are moved rightwards.
The value in D0 decreases by one.
X0
SFRDP
D0
D21
K10
Pointer
n=10
D21
The value in D1 is read
.
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals