Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 79

Process control function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
■Standard filter processing
This function block outputs the mean value of SN pieces of data of the input (IN) value collected at the data collection interval
ST_ (s) from the output variable OUT_.
This function block performs the following operations.
IN1+IN2+IN3+
+IN
SN
OUT_=
SN
SN: Sampling count, IN1 to IN
: Input value, OUT_: Output value
SN
The data is refreshed in the following cycle. (The resultant value is rounded off to the nearest whole number.)
ST_
ΔT
T: Execution cycle
Until the input (IN) reaches the sampling count (SN), the mean value of the input (IN) values that have been collected so far is
output (OUT_).
Set the data collection interval (ST_) as follows: ST_= n  T. (n is an integer.)
The following table lists the relation between the range of the sampling count (SN) and processing.
Sampling count (SN)
0 < SN  48
SN = 0
SN < 0 or 48 < SN
Operation error
Error code
Description
(SD0)
3400H
An invalid operation (such as division by zero) is performed.
3402H
Input data (IN) or operation constant (ST_) is a subnormal number or NaN (not a number).
3403H
An overflow has occurred.
3405H
The sampling count (SN) is less than 0 or greater than 48.
The execution cycle (T) setting is less than 0.
The data sampling interval (ST_) is less than 0.
(Data sampling interval (ST_)  execution cycle (T)) is greater than 32767.
Processing
The standard filter processing is performed.
Output (OUT_) = 0
An operation error occurs.
5 CORRECTION OPERATION
5.3 Standard Filter (moving average) (M+P_FLT)
5
77

Advertisement

Table of Contents
loading

Table of Contents