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
IN
REAL
Input value
ASCEND
REAL
Maximum positive slope
DESCEND
REAL
Maximum negative slope (non-negative!)
TIMEBASE
TIME
Reference forASCEND/DESCEND
:t#0s
:ASCEND/DESCEND
defined per callElse :ASCEND/DESCEND
defined per specified timeRESET
BOOL
Resets the function block
Output
OUT
REAL
Fnction value with limited slope