EasyManuals Logo
Home>Delta>Controller>DVP-SS2

Delta DVP-SS2 User Manual

Delta DVP-SS2
1006 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
Page #571 background imageLoading...
Page #571 background image
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-450
API
Mnemonic Operands Function
Controllers
ES2/EX2/
EC5
SS2
SA2
SE
SX2
154 D
RAND P
Random number
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
RAND, RANDP: 7 steps
DRAND, DRANDP: 13
steps
S
1
*
*
*
*
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
*
*
*
*
D
*
*
*
*
*
*
*
*
PULSE
16-bit
32-bit
ES2/EX2/
EC5
SS2
SA2
SE
SX2
ES2/EX2/
EC5
SS2
SA2
SE
SX2
ES2/EX2/
EC5
SS2
SA2
SE
SX2
Operands:
S
1
: Lower bound of the random number S
2
: Upper bound of the random number D: Operation
result
Explanations:
1. The range of 16-bit operands S
1
, S
2
: K0≦S
1
, S
2
≦K32,767; the range of 32-bit operands S
1
, S
2
:
K0≦S
1
, S
2
≦K2,147,483,647.
2. Entering S
1
> S
2
will result in operation error. The instruction will not be executed at this time,
M1067, M1068 = ON and D1067 records the error code 0E1A (HEX)
Program Example:
When X10 = ON, RAND will produce the random number between the lower bound D0 and upper
bound D10 and store the result in D20.
X0
RAND D0 D10 D20

Table of Contents

Other manuals for Delta DVP-SS2

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-SS2 and is the answer not in the manual?

Delta DVP-SS2 Specifications

General IconGeneral
BrandDelta
ModelDVP-SS2
CategoryController
LanguageEnglish

Related product manuals