97
CHAPTER 8 FUNCTIONS
8
8.6 A/D Conversion Method
(c) Moving average
This processing averages the digital output values taken in at each sampling cycle for a specified number of
times, storing the average value into CH Digital operation value (RWr2 to RWr5, RWr12 to RWr15).
Because the averaging processing is performed on a moving set of sampling processing, the latest digital
operation values can be obtained.
The moving average processing for a set number of times of four is shown below:
(3) Setting procedure
The setting procedure for the main A/D converter module is as follows:
(a) Sampling processing
1. Set "Method selection" to "Parameter write".
"CC IE Field Configuration" window Select the main A/D converter module from "List of stations"
[CC IE Field Configuration] [Online] [Parameter Processing of Slave Station]
2. In "Basic module parameter", set "CH A/D conversion enable/disable setting" to "0: Enable".
3. In "Basic module parameter", set "CH Averaging process setting" to "0: Sampling processing".
For the extension A/D converter module, make the settings for each item of "Ext. module 1_Module parameter".
1st storage (a)
1) + 2) + 3) + 4)
4
2) + 3) + 4) + 5)
4
3) + 4) + 5) + 6)
4
2nd storage (b) 3rd storage (c)
Changes of data of CH1 Digital operation value (RWr2, RWr12)
1)
2)
3) 4)
5)
6)
7)
8) 9)
10)
11)
12)
0
0
(a) (b) (c)
3rd storage (c)
Time [ms]
2nd storage (b)
1st storage (a)
Sampling period
Digital output value
CH1 Digital operation
value (RWr2, RWr12)
CH1 A/D conversion
completed flag
(RX10, RX20)
ON
16000
8000