One X word is read per program cycle. 1/K is deducted from the Y value of the last program cycle, and then 1/K of the current X value is added. The result is given at the Y output.
After a coldstart/warmstart, the value X is assigned to the Y output.
The value YMAN is transferred to the Y output.
Moving average with frozen correction factor (K = 50)