beckhoff TS4100 — 5.9.4 FB_CTRL_RAMP_GENERATOR_EXT

PLC-API > 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 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.

Requirements 5.9.4 FB_CTRL_RAMP_GENERATOR_EXT This function block represents a parameterisable ramp generator. In contrast to FB_CTRL_RAMP_GENERATOR it supports the E_CTRL_MODEs. Description: This function block generates a ramp connecting the starting value fStartValue and the final value fTargetValue . The slope of the ramp (i.e. the velocity) is given in units/s by means of the fVeloPos and fVeloNeg parameters. The starting value is adopted when eCTRL_MODE_RESET changes to eCTRL_MODE_ACTIVE, and calculation of the ramp begins.

As long as the block remains in eCTRL_MODE_ACTIVE the target value can be changed, and the output value changes, taking the form of a ramp as it moves from the current value to the presently active target value. The current velocity is output at fVeloOut. It is possible to use this for feed forward in the control loop. TS4100 151 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