beckhoff TS4100 — 5.9.5 FB_CTRL_SETPOINT_GENERATOR

PLC-API VAR_IN_OUT VAR_IN_OUT stParams : ST_CTRL_RAMP_GENERATOR_EXT_PARAMS; END_VAR stParams : Parameter structure of the ramp generator. This consists of the following elements: TYPE ST_CTRL_RAMP_GENERATOR_EXT_PARAMS : STRUCT tTaskCycleTime : TIME; (* task cycle time [TIME] *) tCtrlCycleTime : TIME; (* controller cycle time [TIME] *) fVeloPos : FLOAT; (* velocity ramp by time range: > 0.0 *) fVeloNeg : FLOAT; (* velocity ramp by time range: > 0.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 task cycle this corresponds to the task cycle time of the calling task. fVeloPos : Velocity (>0.0) in unit/s, with which the output is changed from a lower value to a higher one. fVeloNeg : Velocity (>0.0) in unit/s, with which the output is changed from a higher value to a lower one. Requirements 5.9.5 FB_CTRL_SETPOINT_GENERATOR The function block provides a set value generator that outputs the set value selected from a table.

Changing from one set value to another can be implemented continuously or discontinuously. TS4100 153 Version: 1.1 Development environment Target system type PLC libraries to be linked TwinCAT v2.8 PC (i386) TcControllerToolbox.lib TwinCAT v2.9, build 947 onwards BC [} 10] TcControllerToolbox.lb6 TwinCAT v2.9, build 956 onwards BX [} 10] TcControllerToolbox.lbx