PLC API VAR_OUTPUT fOut : FLOAT; eState : E_CTRL_STATE; bError : BOOL; eErrorId : E_CTRL_ERRORCODES; END_VAR Outputs Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_DIGITAL_FILTER_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_DIGITAL_FILTER_PARAMS : STRUCT tTaskCycleTime : TIME; tCtrlCycleTime : TIME := T#0ms; nFilterOrder : USINT; pCoefficientsArray_a_ADR : POINTER TO FLOAT := 0; nCoefficientsArray_a_SIZEOF : UINT; pCoefficientsArray_b_ADR : POINTER TO FLOAT := 0; nCoefficientsArray_b_SIZEOF : UINT; pDigitalFilterData_ADR : POINTER TO ST_CTRL_DIGITAL_FILTER_DATA; nDigitalFilterData_SIZEOF : UINT; END_STRUCT END_TYPE TF4100 91 Version:
2.2.4 Name Type Description fIn FLOAT Input of the digital filter fManValue FLOAT Input whose value is present at the output in manual mode. eMode E CTRL MODE _ _ Input that specifies the operation mode of the function block. Name Type Description fOut FLOAT Output of the digital filter eState E CTRL STATE _ _ State of the function block bError BOOL Becomes TRUE, as soon as an error occurs. eErrorId E CTRL ERROR _ _ CODES Supplies the error number [} 173] when the output bError is set. Name Type Description stParams ST CTRL _ _ DIGITAL FILTER _ PARAMS _ Parameter structure of the function block