S.AVE
- 183 -
Execution conditions
The execution conditions for S.AVE are as shown below.
Average value command OFF
S.AVE
ON
Executed per scan
Executed per scan
Program example
(1) Program to average the details of D882 to D888 when XB turns ON, and to output the results to
D0.
Coding
No. of
steps
Com-
mand
Device
10 LD XB
11 S.AVE D882 D0 K7
S.AVE
D0D882
K7
XB
10
16
D882
D883
D884
D885
D886
D887
D888
123
10
123
500
20
123
123
7 data items
146
D0
Average value
Averaging of data with S.AVE command
(Note) Fractional values are omitted.