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-133
API
Applicable model
20PM
154
D
D
RAND
P
P
Random value
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D V Z
S
1
S
2
D
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 (5 steps)
RAND
Continuity
instruction
RANDP
Pulse
instruction
32-bit instruction (7 steps)
DRAND
Continuity
instruction
DRANDP
Pulse
instruction
Flag: None
Explanation
16-bit instruction:
The value in S
1
and the value in S
2
are in the range of K0 to
K32,767.
S
1
: Minimum random value; S
2
: Maximum random value; D: Result
32-bit instru
ction: The v
alue in S
1
and the value in S
2
are in the range of K0 to
K2,147,483,647.
The value in S
1
must be less than the value in S
2
. If the value in S
1
is greater
than the value in S
2
, an operation error will occur.
Example
When X0 is ON, the instruction RAND is used to generate a random value in
the range of the value in D0 to the value in D10, and the random value is
stored in D20.
X0
RAND D0 D10 D20

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals