Delta Electronics AH500 Manual page 179

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
45
D
MEAN
Device
X
Y
M
S
D
n
 S: Initial device; D: Device in which a mean is stored; n: Number of
E xp la nat io n
 After the values in the n devices starting from S are added up, the mean
 If a remainder appears in a calculation, it will be left out.
 If S is not in a valid range, only the devices in the valid range will be
 If KnM/KnS is used, it is suggested that M device numbers/S device
 If n is not in the range of 1 to 64, an operation error will occur.
 n=1~64
 When X1.0 is ON, the values in the three registers starting from D0 are
E xa mple
Operand
P
S, D, n
S
K
16#
F
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (8 steps)
devices
of the sum is stored in D.
processed.
numbers should start from a number which is a multiple of 16 in the
decimal numeral system, e.g. K1M0 and K4S16 (decimal numeral
system).
added up. After the values are added up, the sum will be divided by 3.
The quotient is stored in D10, and the remainder is left out.
X1.0
MEAN
(D0+D1+D2)/3
D0
K100
D1
K113
K125
D2
KnM KnS
D
W
D10
D0
D10
After the i ns tr uction
D10
is executed
T he quotient 2 is left out.
Function
Mean
T
C
V
Z
K3
K112
5 - 6 4

Advertisement

Table of Contents
loading

Table of Contents