beckhoff TS4100 — 5.9.3 FB_CTRL_RAMP_GENERATOR

PLC-API Behaviour of the output value: VAR_INPUT VAR_INPUT bEnable : BOOL; fStart : FLOAT; fTarget : FLOAT; (* target value *) END_VAR bEnable : Start of ramp generation. fStart : Starting value for the ramp. fTarget : Finishing value for the ramp. VAR_OUTPUT VAR_OUTPUT fOut : FLOAT; bValueReached : BOOL; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR fOut : Output of the ramp generator. bValueReached : This output indicates by going TRUE that the output fOut has reached the value fTarget. eState : State of the function block. eErrorId : Supplies the error number [ } 16] when the bError output is set. bError : Becomes TRUE as soon as an error situation occurs.

VAR_IN_OUT VAR_IN_OUT stParams : ST_CTRL_RAMP_GENERATOR_PARAMS; (* RAMP_Generator parameter struct *) END_VAR stParams : Parameter structure of the ramp generator. This consists of the following elements: TYPE ST_CTRL_RAMP_GENERATOR_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: TS4100 150 Version: 1.1