Mitsubishi Electric M800VW Series Programming Manual page 328

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.9 Data Processing Instructions
S.AVE: Average value calculation
Setting
Bit devices
data
X
Y
M
L
F
S
D
n
[Instruction symbol] [Execution condition]
S.AVE
 Setting data
Setting data
S
Head No. of the device which stores the data to calculate the average
D
Device No. at the output destination
n
Average value
 Functions
S.AVE
 The average of n points of devices counting from the device specified by S is calculated and output to the device specified
by D.
S
S+1
calculation
S+2
n
S+(n-2)
S+(n-1)
 The device specified by S is calculated with signs.
 Operation errors
 There are no arithmetic errors associated with the S.AVE instruction.
Usable devices
B SB
T SM V
T
C
Command
Meaning
Average
D
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
307
Digit
Pointer
designa-
Index
tion
H
P
S.AVE
S
D
n
Data type
BIN 16 bits
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents