The Enhanced Ramp function block allows you to specify parameters to be ramped in a target function block. These parameters are specified through the configuration of external reference parameters in the Enhanced Ramp function block. You must specify the MODE parameter of the target function block, as well as the parameter that should be ramped in the target function block when it is in the respective mode. The Enhanced Ramp function block can ramp target function block parameters in the AUTO, MAN, RCAS, ROUT, and LO modes, but are not permitted when the target function block mode is CAS.
| External reference parameter | Description | Mode | Example |
|---|---|---|---|
| REF_MODE | The target function block mode parameter. This parameter must be configured. | n/a | PID1/MODE |
| REF_RAMP_AUTO | The target function block parameter to be ramped when its mode is: | AUTO | PID1/SP |
| REF_RAMP_LO | LO | PID1/TRK_VAL | |
| REF_RAMP_MAN | MAN | PID1/OUT | |
| REF_RAMP_RCAS | RCAS | PID1/RCAS_IN | |
| REF_RAMP_ROUT | ROUT | PID1/ROUT_IN |
For ramp modes that are not used, specify #IGNORE to prevent a warning message from being generated during download.
You can specify the time units for ramp calculation with the TIME_UNIT parameter.
In some cases, it is desirable to enforce limits when ramping by specifying the Obey the limits option of the ERAMP_OPTS parameter. If the Obey the limits option is enabled, you can configure a low limit (LO_LIM) and a high limit (HI_LIM) to be used.
An entry or value that is lower than LO_LIM or higher than HI_LIM is clamped to the configured limit value. By default, the Obey the limits option is disabled.
The Variable endpoint option of the ERAMP_OPTS parameter allows for the execution of a ramp without a static endpoint.
| Option | Setting if Variable endpoint option enabled |
|---|---|
| Autotracking | Enabled |
| Reset if IN value changes | Disabled |
| Use REF_RAMP_VAL as IN | Enabled |
When the absolute value of the difference between the IN and ERAMP_END_VALUE parameter values is less than or equal to the VAR_THRESHOLD parameter value, the IN parameter values is set to the ERAMP_END_VALUE parameter value.
If Ramp up or Ramp down is specified for the ERAMP_DIR parameter, a ramp can function in one direction only. If you specify Ramp down for the ERAMP_DIR parameter after the REF_RAMP_VAL parameter is already below the ERAMP_END_VALUE parameter value, the ramp stops.
The ERAMP_DIR parameter, if specified as Ramp up or Ramp down, is prioritized over the ERAMP_RATE parameter value (or the ramp rate implied by the IN and ERAMP_END_VALUE parameter values).
A ramp does not start until the operator or other function block logic sets ramp parameters and enables the ramp. A ramp is enabled when the ERAMP_ENABLE parameter input transitions from 0 (False) to 1 (True). The operator or other function block logic can enable a ramp.
While a ramp is active, the OUT parameter is written to the target block parameter to be ramped, REF_RAMP_VAL. If the Obey the limits option of the ERAMP_OPTS parameter is enabled and the OUT parameter is outside the configured limits, OUT is clamped to the appropriate limit, and then written to the target block ramp parameter.
If the Use REF_RAMP_VAL as IN option of the ERAMP_OPTS parameter is enabled, the current REF_RAMP_VAL parameter value is used as the ramp starting point. If the IN parameter value is wired, the wired value is used.
If the Obey the limits option of the ERAMP_OPTS parameter is enabled and the ramp starting point is out of range, it is clamped to the limit value, and the ramp ends. As needed, the Enhanced Ramp function block calculates the ramp rate.
If the ERAMP_ACTIVE parameter is 1 (True), the current target block mode does not match the ERAMP_IN_MODE parameter value, and the Pause if mode changes option of the ERAMP_OPTS parameter is not enabled, the ramp is disabled.
When a paused ramp is resumed, the TIME_REMAIN and ERAMP_RATE parameter values at the time the ramp was paused persist.
If the operator or other function block logic sets the ERAMP_ENABLE parameter value to 0 (False) when a ramp is paused, it is disabled. The TIME_REMAIN, ERAMP_STATE, and OUT parameter values are set appropriately. For more information, refer to Disable a ramp.
If the ERAMP_ENABLE parameter is wired, you must explicitly set it to 0 (False) before starting another ramp.