Mitsubishi Electronics FX2N-5A Insect Control Equipment User Manual


 
FX2N-5A Special function block Buffer Memory (BFM) 7
7-16
7.2.3 BFM 2 to BFM 5 Number of averaging times (READ/WRITE)
The number of averaging times of BFM 2 to BFM 5 specify the number of samples that is used
to calculate the average values which are displayed in BFM 6 to BFM 9.
The setting range of the number of averaging times is 1 to 256.
When the number is set to K1, the immediate data (current values) are stored in BFM 6 to BFM
9. This data is the same as those data displayed in BFM 10 to BFM13.
When the number of averaging times is set to K0, the value is automatically changed to K1. If
the value is set to K257 or more it is also changed to K1 automatically. In either case, a number
of averaging times setting error (BFM 29 b10) occurs.
The initial value of BFM 2 to BFM 5 is K8.
Update of average data
The average data of (BFM 6 to BFM 9) are updated every time the A/D conversion processing
is performed.
BFM 6 to 9 will always contain the most recent average sum of the number of samples
specified in BFM 2 to BFM5 divided by this number. For example the formula for BFM 6 is as
follows:
If the averaging process has just started or when the number of average samples has been
changed during operation, the sampling values that have not been converted until that time are
not considered for the calculation. In that case the number of samples used to calculate the
average value is calculated based on the number of available samples at this time.