The ramp begins when the ENABLE input transitions from False (0) to True (1).
When the TRK_IN_D parameter is True (1), IN is the ramp starting value.
When TRK_IN_D is False, the previous OUT value is the ramp starting value.
The END_VALUE parameter specifies the ramp endpoint and the target end value of OUT.
Specify ramp calculation
You specify the time duration of the ramping output with the RAMP_TIME parameter, or you specify the ramp rate directly with the RAMP_RATE parameter. The RAMP_TYPE parameter indicates whether to use RAMP_TIME or RAMP_RATE for ramp calculation:
When the RAMP_TYPE parameter is True (1), rate equals RAMP_RATE.
When RAMP_TYPE is False (0), RAMP_TIME is used for the rate parameter calculation.
Ramp execution
When the RAMP_TYPE, IN, or END_VALUE parameters change during the execution of the block, the ramp is reset with the new values. In addition, the ramp is reset when the selected RAMP_TYPE, RAMP_TIME, or RAMP_RATE parameter is changed during execution.
The TIME_REMAIN parameter is the time left until COMPLETE transitions to TRUE. The transition of the COMPLETE parameter to TRUE signals the end of ramp calculation. The output will equal END_VALUE at this time.
The ramping OUT and TIME_REMAIN values can be stopped and held at their current value when the PAUSE parameter transitions to True. After PAUSE transitions from True to False, the block resets using the new END_VALUE, IN, RAMP_TYPE, RAMP_TIME, or RAMP_RATE values. The block resets only if one or more of these values change.
When ENABLE is False, the COMPLETE and PAUSE parameters are set False and TIME_REMAIN is set to zero seconds.
The following table shows the relationship between the ENABLE, TRK_IN_D, PAUSE, COMPLETE, and OUT parameters in the Ramp function block:
|
ENABLE |
TRK_IN_D |
PAUSE |
COMPLETE |
Ramp Starting Point |
OUT |
|---|---|---|---|---|---|
|
False |
False |
Forced False |
False |
N/A |
Last OUT |
|
True |
False |
False |
True at OUT = END_VALUE |
Last OUT |
Ramp |
|
False |
True |
Forced False |
False |
N/A |
IN |
|
True |
True |
False |
True at OUT = END_VALUE |
IN |
Ramp |
|
True |
False |
True |
True at OUT = END_VALUE |
N/A |
Last OUT |
|
True |
True |
True |
True at OUT = END_VALUE |
N/A |
Last OUT |
Output tracking
You select output tracking by configuring the TRK_IN_D parameter. When TRK_IN_D is True, OUT tracks IN.
When the ENABLE input transitions from True to False:
When the TRK_IN_D parameter is False, the OUT parameter is held at its last value.
When TRK_IN_D is True, OUT tracks IN.