RAMP_REAL (FB)ΒΆ
FUNCTION_BLOCK RAMP_REAL
Limits the slope of a value to a certain value
The function block is similar to RAMP_INT with the difference that the inputs IN,
ASCEND, DESCEND and the output OUT are of the type REAL.
RAMP_REAL takes more computing time but calculates more precisely than RAMP_INT.
Bemerkung
A reset of the function block ( RESET = TRUE) stops the calculation and the last output value OUT is maintained.
So if afterwards the ramp gets restarted by RESET = FALSE, it will start with this last output value!
- InOut:
Scope
Name
Type
Comment
Input
INREALInput value
ASCENDREALMaximum positive slope
DESCENDREALMaximum negative slope (non-negative!)
TIMEBASETIMEReference forASCEND/DESCEND:t#0s:ASCEND/DESCENDdefined per callElse :ASCEND/DESCENDdefined per specified timeRESETBOOLResets the function block
Output
OUTREALFnction value with limited slope