Analog Control Blocks > Ramp function block

Ramp function block execution

The ramp begins when the ENABLE input transitions from False (0) to True (1).

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:

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:

Table: Ramp Function Block Parameter Settings

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:

Figure: Ramp function block output tracking