Mitsubishi Electric M800VW Series Programming Manual page 329

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
 Program example
 In this program the average of D882 to D888 is calculated when XB turns ON, and the result is output to D0.
XB
0
6
D882
123
D883
10
D884
500
D885
123
D886
20
D887
123
123
D888
Note
(1) Digits after the decimal point is truncated.
IB-1501667-B
[Ladder mode]
S.AVE D882 D0 K7
END
Average
value
D0
146
308
[List mode]
Steps
Inst.
Device
0
LD
XB
1
S.AVE
D882
D0
K7
5
END

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents