Delta AS Series Programming Manual page 653

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
API
Instruction code
1208
D
Device
X
S
D
n
Data
type
S
D
n
Symbol
_6
Explanation
1.
This instruction adds up the values in the n devices starting from the device specified by S, and the stores the
mean of the sum in D.
2.
If a remainder appears in the calculation, the instruction discards it.
3.
For 16-bit instructions, n must be between 1–256.
4.
For 32-bit instructions, n must be between 1–128.
5.
Only the 32-bit instructions can use the 32-bit counter, but not the device E.
Example
When X0.0 is ON, the instruction adds up the values in the three registers starting from D0. The instruction divides the
sum by 3. The instruction stores the quotient in D10, and leaves out the remainder.
6 - 3 7 4
MEAN
P
Y
M
S
T
C
S : First device
D : Device where the mean is stored
n : Number of devices
Operand
S, D, n
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
Function
Finding the mean
SR
E
K
16#
"$"
32-bit instruction
AS
AS
F

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents