Delta Electronics AH500 Manual page 229

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

A H 5 00 M o ti on C on tr ol M od ul e Ma nua l
API
Instruction code
154
D
RAND
Device
X
Y
M
S
1
S
2
D
 S
 16-bit instruction: The value in S
E xp la nat io n
 The value in S
 If KnM/KnS is used, it is suggested that M device numbers/S device
 When X0.0 is ON, the instruction RAND is used to generate a random
E xa mple
Operand
P
S
1
S
K
16#
F
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (9 steps)
: Minimum random value; S
1
K0 to K32,767.
32-bit instruction: The value in S
K0 to K2,147,483,647.
must be less than the value in S
1
greater than the value in S
numbers should start from a number which is a multiple of 16 in the
decimal numeral system, e.g. K4M0 and K4S16 (decimal numeral
system).
value in the range of the value in D0 to the value in D10, and the random
value is stored in D20.
X0.0
RAND
, S
, D
2
KnM KnS
D
W
: Maximum random value; D: Result
2
and the value in S
1
and the value in S
1
2
, an operation error will occur.
2
D0
D10
Function
Random value
T
C
V
Z
are in the range of
2
are in the range of
2
. If the value in S
is
1
D20
5 - 11 4

Advertisement

Table of Contents
loading

Table of Contents