Andom Umbers; Random Number (Parameter 79) - GSE 60 SERIES Technical Reference Manual

Programmable process controllers
Table of Contents

Advertisement

i
The 460 Series indicators will not
generate a true (pseudo) random
number without the optional time &
date module installed. Without this
module, the random number
generator seed value will likely be
the same each time the indicator is
powered up.
R
N
ANDOM
UMBERS
The random number parameter will generate and display a true random
number. This feature is useful in quality assurance applications to
randomly select items for weight verification.
R
N
ANDOM
UMBER
The random number parameter generates a random number between
0.0000000 à 1.0000000 exclusive of the end points. A random number is
produced by copying 79P to another operating parameter (usually a float
type variable) or by copying 79P to the entry buffer:
80.1P=79P%o
79P%o
80.1P=79P*100%o
80.2P=80.1P+.5%o
80.1P=79P*100%o
80.2P=80.1P+1%o
80.1P=79P*90%o
80.2P=80.1P+10.5%o
The random number parameter can be seeded to reproduce a series of
values:
79P=x%o
Restart the random number generator at a random value after seeding it
by assigning a value of zero (0):
79P=0%o
Operating Parameters 7-27
(P
79)
ARAMETER
stores a random number in variable #1 (float)
copies a random number to the entry buffer
stores a random number from 0 à 100 in
variable #2 (integer)
stores a random number from 1 à 100 in
variable #2 (integer)
stores a random number from 10 à 100 in
variable #2 (integer)
seeds the random number generator (x > 0)
restart generator at a random point
60 Series Technical Reference Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents