PLC-API tAveragingTime : Time across which the sliding average value filter calculates the average value. pWorkArray_ADR : address of a FLOAT array with size tAveragingTime / tCtrlCycleTime. (see description of the function block FB_CTRL_MOVING_AVERAGE) nWorkArray_SIZEOF : size of a FLOAT array with size tAveragingTime / tCtrlCycleTime. (see description of the function block FB_CTRL_MOVING_AVERAGE) Requirements 5.3.5 FB_CTRL_P The function block provides a P-transfer element in the functional diagram. Transfer function: VAR_INPUT VAR_INPUT fIn :FLOAT; eMode :E_CTRL_MODE; END_VAR fIn : Input of the P element. eMode : Input that specifies the block's operating mode.
VAR_OUTPUT VAR_OUTPUT fOut :FLOAT; eState :E_CTRL_STATE; eErrorId :E_CTRL_ERRORCODES; bError :BOOL; END_VAR fOut : Output of the P element. 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_P_PARAMS; END_VAR TS4100 31 Version: 1.1 Development environment Target platform PLC libraries to include TwinCAT v2.8 PC (i386) TcControllerToolbox.lib TwinCAT v2.9 from Build 947 BC [} 10] TcControllerToolbox.lb6 TwinCAT v2.9 from Build 956 BX [} 10] TcControllerToolbox.lbx