| Volume pwrb | |
| Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class | Code  ClassTree | INDEX NO INDEX |
Class Ramp
|
||
|---|---|---|
| Version | 1.0 | |
| Modified | 08-MAR-2026 11:05:32.00 | |
| Code | rt_plc_arithm.c | |
Limits a quantity's rate of change.

Separate limit rates at increase respectively decrease; RampUp and RampDown. Sets du = RampUp * ScanTime and dn = RampDown * ScanTime. An input signal determines the output signal in the following way

An external signal may also be used as feedback. See example below.Example
In this example an external signal is connected to the FB-input of the Ramp object. The feedback connection from the Select object to the Ramp object is of the type analog feedback. As long as Control is FALSE the output of the Select object is ramped up and down. When Control is TRUE the output gets the constant value of RampUp ScanTime .

| RtBody attributes pwr_sClass_ramp | |||
|---|---|---|---|
| Float32 | In | IN | Value of the input signal. |
| Float32 | FeedB | FB | External feedback. If the input is left open the VAL-output will be used as an internal input signal. |
| Float32 | ActVal | VAL | Output signal, se above. |
| Pointer to Float32 | ScanTime | ScanTime | Program cycle time in seconds. |
| Float32 | RampUp | RampUp | Maximum increase per second. If RampUp <= 0 no limitation upwards is done. |
| Float32 | RampDown | RampDown | Maximum decrease per second. If RampDown <= 0 no limitation downwards is done. |
| Boolean | RampUpAbs | RampUpAbs | If RampUpAbs is set, RampUp is the limit when the absolute value is increasing, and RampDown the limit when the absolute value is decreasing. |
| Int32 | AccUp | AccUp | The operator's authorities to change RampUp respectively RampDown. 0 -- Changes not allowed. != 0 -- Changes allowed. |
| Int32 | AccDown | AccDown | |
| Float32 | MinUp | MinUp | The minimum and maximum allowed value of RampUp at changes made by an operator. |
| Float32 | MaxUp | MaxUp | |
| Float32 | MinDown | MinDown | The minimum and maximum allowed value of RampDown at changes made by an operator. |
| Float32 | MaxDown | MaxDown | |
| DevBody attributes | |||
|---|---|---|---|
| PlcNode | PlcNode | ||
| GraphPlcNode | |
|---|---|
| object_type | 126 |
| parameters[0] | 2 |
| parameters[1] | 0 |
| parameters[2] | 1 |
| parameters[3] | 0 |
| subwindows | 0 |
| graphmethod | 0 (standard, individual attributes) |
| graphindex | 0 |
| default_mask[0] | 1 |
| default_mask[1] | 1 |
| segname_annotation | 1 |
| compmethod | 32 |
| compindex | 0 |
| tracemethod | 0 |
| traceindex | 0 |
| executeordermethod | 2 |
| objname | Ramp |
| graphname | Ramp |
| debugpar | |
| In Input | ||
|---|---|---|
| Class | Input | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | IN | |
| Body | RtBody | |
Value of the input signal.
| FeedB Input | ||
|---|---|---|
| Class | Input | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | FB | |
| Body | RtBody | |
External feedback. If the input is left open the VAL-output will be used as an internal input signal.
| ActVal Output | ||
|---|---|---|
| Class | Output | |
| Type | Float32 | |
| Flags | STATE | NOEDIT | REDUTRANSFER | |
| GraphName | VAL | |
| Body | RtBody | |
Output signal, se above.
| ScanTime Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Pointer to Float32 | |
| Flags | INVISIBLE | POINTER | PRIVATE | |
| GraphName | ScanTime | |
| Body | RtBody | |
Program cycle time in seconds.
| RampUp Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | RampUp | |
| Body | RtBody | |
Maximum increase per second. If RampUp <= 0 no limitation upwards is done.
| RampDown Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | REDUTRANSFER | |
| GraphName | RampDown | |
| Body | RtBody | |
Maximum decrease per second. If RampDown <= 0 no limitation downwards is done.
| RampUpAbs Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Boolean | |
| Flags | REDUTRANSFER | |
| GraphName | RampUpAbs | |
| Body | RtBody | |
If RampUpAbs is set, RampUp is the limit when the absolute value is increasing, and RampDown the limit when the absolute value is decreasing.
| AccUp Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Int32 | |
| Flags | ||
| GraphName | AccUp | |
| Body | RtBody | |
The operator's authorities to change RampUp
respectively RampDown.
0 -- Changes not allowed.
!= 0 -- Changes allowed.
| AccDown Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Int32 | |
| Flags | ||
| GraphName | AccDown | |
| Body | RtBody | |
| MinUp Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MinUp | |
| Body | RtBody | |
The minimum and maximum allowed value of RampUp at changes made by an operator.
| MaxUp Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MaxUp | |
| Body | RtBody | |
| MinDown Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MinDown | |
| Body | RtBody | |
The minimum and maximum allowed value of RampDown at changes made by an operator.
| MaxDown Intern | ||
|---|---|---|
| Class | Intern | |
| Type | Float32 | |
| Flags | ||
| GraphName | MaxDown | |
| Body | RtBody | |
| PlcNode Buffer | ||
|---|---|---|
| Class | Buffer | |
| Type | PlcNode | |
| Flags | INVISIBLE | |
| Body | DevBody | |