PLC-API tCtrlCycleTime : TIME := T#0ms; (* controller cycle time [TIME] *) tTaskCycleTime : TIME := T#0ms; (* task cycle time [TIME] *) fDampingCoefficient: FLOAT := 0.0; (*damping coefficient *) 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. fDampingCoefficient :
The parameter corresponds to k damping in the transfer function. 5.6 Interpolation 5.6.1 FB_CTRL_LIN_INTERPOLATION This block performs linear interpolation to obtain values on the basis of a table of interpolation points. Behaviour of the output: TS4100 107 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 fIn fOut arrTable[1,1] := 10; arrTable[1,2] := 7; arrTable[2,1] := 15; arrTable[2,2] := 10; arrTable[3,1] := 21; arrTable[3,2] := 9; arrTable[4,1] := 22; arrTable[4,2] := 2; arrTable[5,1] := 30; arrTable[5,2] := 3; arrTable[6,1] := 40; arrTable[6,2] := 6;