1 sampling processing, 2 moving average processing, Melsec-a – MITSUBISHI ELECTRIC AJ65SBT-64AD User Manual
Page 24: 3 specification 3.4.1 sampling processing
3 - 9
MELSEC-A
3 SPECIFICATION
3.4.1 Sampling processing
The A/D conversion is performed successively for the analog input, and the converted
digital output values are stored in the remote register.
The processing time to store the digital output value into the remote register after the
sampling processing differs depending on the number of A/D conversion enabled
channels.
(Processing time) Number of A/D conversion enabled channels) 1 (ms)
Maximum conversion speed
[Example] When three channels, channels 1, 2, and 3 are enabled for conversion:
3×1 = 3 (ms)
3.4.2 Moving average processing
The specified count of digital output values imported per sampling time are averaged to
find a value, which is then stored into the remote register.
Since average processing is performed with data shifted per sampling, the most recent
digital output value is available.
Average processing can be performed without changing the conversion speed.
Use moving average processing count setting (address RWwm+2) to set the number
of moving average processings.
The count can be selected from among four types: 4, 8, 16 and 32 times.
Moving average processing at the count setting of 4 times
4
4
4
4000
2000
0
1
2
3
4
5
6
7
8
9
10
11
12
A/D conversion value
Sampling time
Remote register
Stored first time
Stored second time
Stored third time
Digital output value
A/D conversion completion flag ON
Time [ms]
Data transition inside remote register
Stored first time
Stored second time
Stored third time
+ + +
1
2
3
4
5
+ + +
2
3
4
6
5
+ + +
3
4