beckhoff TF4100 — 4.2.1.8.5 FB_CTRL_SETPOINT_GENERATOR

PLC API Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_RAMP_GENERATOR_EXT_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_RAMP_GENERATOR_EXT_PARAMS : STRUCT tTaskCycleTime : TIME; tCtrlCycleTime : TIME; fVeloPos : FLOAT; fVeloNeg : FLOAT; END_STRUCT END_TYPE 4.2.1.8.5 FB_CTRL_SETPOINT_GENERATOR The function block provides a setpoint generator that outputs the setpoint selected from a table. Changing from one setpoint to another can be implemented continuously or discontinuously. TF4100 168 Version:

2.2.4 Name Type Description fOut FLOAT Output of the ramp generator fVeloOut FLOAT Current velocity of the ramp generator bValueReached BOOL This output indicates by going TRUE that the output fOut has reached the value "fTargetValue". eState E CTRL _ _ STATE State of the function block eErrorId E CTRL _ _ ERRORCODES Supplies the error number [} 173] when the output bError is set. bError BOOL Becomes TRUE as soon as an error situation occurs. Name Type Description stParams ST CTRL RAMP _ _ GENERATOR E _ _ XT _ PARAMS Parameter structure of the ramp generator Name Type Description tTaskCycleTime TIME 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. tCtrlCycleTime TIME Cycle time with which the function block is called. If the function block is called in every task cycle this corresponds to the task cycle time of the calling task. fVeloPos FLOAT Velocity (>0.0) in unit/s, with which the output is changed from a lower value to a higher one. fVeloNeg FLOAT Velocity (>0.0) in unit/s, with which the output is changed from a higher value to a lower one.