beckhoff TS4100 — 5.5.1 FB_CTRL_ACTUAL_VALUE_FILTER

PLC-API 5.5 Filter / ControlledSystemSimulation 5.5.1 FB_CTRL_ACTUAL_VALUE_FILTER The function block allows a measured input variable to be checked for plausibility and filtered. Behaviour of the output: This block allows a plausibility check to be carried out on a measured input variable. If the difference between two sampling values in sequence (measurements) is larger than the specified window, fDeltaMax , then the current input value is suppressed for a maximum of three cycles. During this time the output value is extrapolated from the previous input values. If the specified window is exceeded for more than three cycles, the output will again follow the input variable.

The behaviour of the output is illustrated in the diagram above. VAR_INPUT VAR_INPUT fIn : FLOAT; fManValue : FLOAT; eMode : E_CTRL_MODE; END_VAR fIn : Input value of the filter. fManValue : Input variable whose value is output in manual mode. eMode : Input that specifies the block's operating mode [ } 16] . VAR_OUTPUT VAR_OUTPUT fOut : FLOAT; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR fOut : Output of the function block. eState : State of the function block. eErrorId : Supplies the error number [ } 16] when the bError output is set. bError : Becomes TRUE, as soon as an error occurs. VAR_IN_OUT VAR_IN_OUT stParams :

ST_CTRL_ACTUAL_VALUE_FILTER_PARAMS; END_VAR TS4100 77 Version: 1.1