beckhoff TF4100 — 4.2.1.8.3 FB_CTRL_RAMP_GENERATOR

PLC API Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_FLOW_TEMP_SETPOINT_GEN_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_FLOW_TEMP_SETPOINT_GEN_PARAMS: STRUCT tTaskCycleTime : TIME; tCtrlCycleTime : TIME; fForeRunTempMax : FLOAT; fForeRunTempMin : FLOAT; fAmbientTempMax : FLOAT; fAmbientTempMin : FLOAT; END_STRUCT END_TYPE 4.2.1.8.3 FB_CTRL_RAMP_GENERATOR The function block provides a parameterizable ramp generator. Description This function block generates a ramp connecting the starting value fStart and the target 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 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. TF4100 164 Version: 2.2.4 Name Type Description stParams ST CTRL FLOW _ _ TEMP _ _ SETPOINT GEN _ _ PARAMS Parameter structure of the ramp generator Name Type Description tTaskCycleTime 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.

tCtrlCycleTime 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. fForeRunTempM ax FLOAT Maximum flow temperature (see diagram) fForeRunTempMi n FLOAT Minimum flow temperature (see diagram) fAmbientTemp Max FLOAT outdoor temperature for which the minimum flow temperature is specified. fAmbientTemp Min FLOAT outdoor temperature for which the maximum flow temperature is specified.