beckhoff TS4100 — 5.9.3 FB_CTRL_RAMP_GENERATOR

PLC-API VAR_IN_OUT VAR_IN_OUT stParams : ST_CTRL_FLOW_TEMP_SETPOINT_GEN_PARAMS; END_VAR stParams : Parameter structure of the ramp generator. This consists of the following elements: TYPE ST_CTRL_FLOW_TEMP_SETPOINT_GEN_PARAMS: STRUCT tTaskCycleTime : TIME; (* task cycle time [TIME] *) tCtrlCycleTime : TIME; (* controller cycle time [TIME] *) fForeRunTempMax : FLOAT; fForeRunTempMin : FLOAT; fAmbientTempMax : FLOAT; fAmbientTempMin : FLOAT; END_STRUCT END_TYPE 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. 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. fFlowTempMax : Maximum flow temperature (see diagram). fFlowTempMin : Minimum flow temperature (see diagram). fAmbientTempMax : Outdoor temperature for which the minimum flow temperature is specified. fAmbientTempMin : Outdoor temperature for which the maximum flow temperature is specified. Requirements 5.9.3 FB_CTRL_RAMP_GENERATOR The function block provides a parameterisable ramp generator. Description:

This function block generates a ramp connecting the starting value fStart and the final value fTarget . 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 a rising edge appears at bEnable ; calculation of the ramp then begins. As long as the signal bEnable remains TRUE the final 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 final value. TS4100 149 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