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-57
API
Applicable model
20PM
38
SFWR
P
P
Moving a value and writing it into 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)
SFWR
Continuity
instruction
SFWRP
Pulse
instruction
32-bit instruction
Flags
Ox O100
M1808 M1968 Zero flag
Explanation
The values in the n word devices star
ting from D are defined as first in, first out
values, and D is taken as a pointer. When the instruction is executed, the value
of the pointer D increases by one, and the value in S is written into the device
to which the pointer D points. When the value of the pointer is greater than or
equal to n-1, the instruction does not process the writing of the value, and a
carry flag is ON.
S: Device which is moved; D: Initial device; n: Number of devices
When the value of the pointer D is greater than n-1, the instruction does not
process the writing of a value, and the carry flag M1022 is ON.
Generally, the pulse instruction SFWRP is used.
2n512
Example
The value of the pointer D0 is cleared to 0 first. When X0 is turned from OFF to
ON, the value in D20 is written into D1, and the value of D0 becomes 1. When
X0 is turned from OFF to ON again, the value in D20 is written to D2, and the
value in D0 becomes 2.
The value in D20 is moved and written into D1 in the way described below.
The value in D20 is written into D1.
The value of D0 becomes 1.
RST
D0
SFWRP D20 D0
X10
X0
K10
The value of D0 is cleared to 0 first.
D20
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
n=10
D 0 =
3 2 1
Pointer
Source
Additional
remark
The instruction SFWR can be used with the instruction SFRD to write a value
and read values.

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals