beckhoff TS4100 — 5.9.5 FB_CTRL_SETPOINT_GENERATOR

PLC-API bValueReached : The output is TRUE when the selected set value has been reached, i.e. the ramp leading to the selected value has finished. 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_SETPOINT_GENERATOR_PARAMS; (* parameters *) END_VAR stParams : Parameter structure of the ramp generator. This consists of the following elements: TYPE ST_CTRL_SETPOINT_GENERATOR_PARAMS: STRUCT tCtrlCycleTime : TIME := T#0ms; (* controller cycle time [TIME] *) tTaskCycleTime : TIME := T#0ms; (* task cycle time [TIME] *) pDataTable_ADR :

POINTER TO INTERPOLATION_TABLE_ELEMENT := 0; nDataTable_SIZEOF : UINT := 0; nDataTable_NumberOfRows : UINT := 0; fVeloPos : FLOAT; (* velocity ramp by time range > 0.0 *) fVeloNeg : FLOAT; (* velocity ramp by time range > 0.0 *) bDisableRamping : BOOL := FALSE; 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 output values must be updated in the current cycle.indent: -103; margin-left: 108"> 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 data array. pDataTable_SIZEOF : Size of the data array. pDataTable_NumberOfRows : Number of rows of the data array. fVeloPos : Velocity in unit/s, with which the output is changed from a lower value to a higher one. fVeloNeg : Velocity in unit/s, with which the output is changed from a higher value to a lower one. bDisableRamping : A continuous output value is not calculated if this parameter is TRUE. There is a step change between the output values. Requirements TS4100 155 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