beckhoff TF4100 — 4.2.1.4.1 FB_CTRL_ACTUAL_VALUE_FILTER

PLC API This function block allows a plausibility check to be carried out on a measured input value. 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 value. The behavior of the output is illustrated in the diagram above. VAR_INPUT fIn : FLOAT; fManValue : FLOAT; eMode : E_CTRL_MODE; END_VAR Inputs Outputs VAR_OUTPUT fOut : FLOAT; eState : E_CTRL_STATE; eErrorId :

E_CTRL_ERRORCODES; bError : BOOL; END_VAR VAR_IN_OUT stParams : ST_CTRL_ACTUAL_VALUE_FILTER_PARAMS; END_VAR Inputs/ outputs stParams consists of the following elements: TYPE ST_CTRL_ACTUAL_VALUE_FILTER_PARAMS: STRUCT tCtrlCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; fDeltaMax : FLOAT; END_STRUCT END_TYPE TF4100 86 Version: 2.2.4 Name Type Description fIn FLOAT Input value of the filter fManValue FLOAT Input value that is output in manual mode. eMode E CTRL MODE _ _ Input that specifies the operation mode [} 173] of the function block.

Name Type Description fOut FLOAT Output of the function block eState E CTRL _ _ STATE State of the function block eErrorId E CTRL _ _ ERROR CODES Supplies the error number [} 173] when the output bError is set. bError BOOL Becomes TRUE, as soon as an error occurs. Name Type Description stParams ST CTRL ACTU _ _ AL VALUE FILTE _ _ R _ PARAMS Parameter structure of the actual value filter element