PLC-API TYPE ST_CTRL_2POINT_PARAMS : STRUCT tCtrlCycleTime : TIME := T#0ms; (* controller cycle time [TIME] *) tTaskCycleTime : TIME := T#0ms; (* task cycle time [TIME] *) pDataTable_ADR : POINTER TO FLOAT := 0; nDataTable_SIZEOF : UINT := 0; nDataTable_NumberOfRows : UINT := 0; END_STRUCT END_TYPE 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. 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. pDataTable_ADR : Address of the n x 2 array on which linear interpolation is to be carried out pDataTable_SIZEOF : Size of the n x 2 array. pDataTable_NumberOfRows : Number of rows of the array. Requirements 5.6.2 FB_CTRL_NORMALIZE This function block can be used to linearise a non-linear transfer element, with the aid of an inverse characteristic curve. The characteristic curve of the transfer element that is to be linearised is stored in the table associated with this block.
The function block uses this to calculate the inverse characteristic curve with which the linearisation can be carried out. Sample: The following valve characteristic curve is stored in the table with 4 interpolation points. TS4100 109 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