PLC-API Behaviour of the output value: VAR_INPUT VAR_INPUT fStartValue : FLOAT; fTargetValue : FLOAT; fManValue : FLOAT; bHold : BOOL; eMode : E_CTRL_MODE; END_VAR fStartValue : Starting value for the ramp. fTargetValue : Finishing value for the ramp. fManValue : Input magnitude to which the output in eCTRL_MODE_MANUAL is set. bHold : Calculation of the ramp is halted at the current value. eMode : Input that specifies the block's operating mode [ } 16] . VAR_OUTPUT VAR_OUTPUT fOut : FLOAT; fVeloOut : FLOAT; bValueReached : BOOL; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR fOut : Output of the ramp generator. fVeloOut : Current velocity of the ramp generator.
bValueReached : This output indicates by going TRUE that the output fOut has reached the value fTargetValue. 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. TS4100 152 Version: 1.1