PLC-API TYPE ST_CTRL_2POINT_PARAMS : STRUCT tTaskCycleTime : TIME; (* task cycle time [TIME] *) tCtrlCycleTime : TIME; (* controller cycle time [TIME] *) fThreshold : FLOAT; fOutMaxLimit : FLOAT; (* max limit for heating *) fOutMinLimit : FLOAT; (* min limit for heating *) tMinWaitTime : TIME; END_STRUCT END_TYPE tTaskCycleTime : Cycle time with which the function block is called. If the function block is called in every cycle this corresponds to the task cycle time of the calling task. tCtrlCycleTime : Cycle time with which the control loop is processed. This must be greater than or equal to the TaskCycleTime.
The function block uses this input value to calculate internally whether the state and the output values have to be updated in the current cycle. fThreshold : Switching threshold, see image above. fOutMaxLimit : Max limit, which is passed on to the controller. fOutMinLimit : Min limit, which is passed on to the controller. tMinWaitTime : Waiting time (see description above) Requirements 5.4.7 FB_CTRL_PI The function block provides a PI transfer element in the functional diagram. Behaviour of the output: TS4100 51 Version:
1.1 Development Environment Target System 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