Ramp Function
Ramp Function
RAMP(Rate, Low Limit, High Limit, Increment)
The RAMP function can be used to create a value that increments or decrements through a numeric range. The low limit and high limit should be used to set the desired range. The low or high limits can be adjusted to apply an offset to the data generated. The increment value can be either a positive or negative value. If the increment value is positive, the value generated ramps from the low limit to the high limit at the desired rate. If the increment value is negative, the value generated ramps from the high limit to the low limit at the desired rate. The values of low limit, high limit, and increment can be entered either as whole numbers or in floating-point format.
 
Supported Data Types
Byte, Char, Word, QWord, DWord, Short, Long, LLong, Float, Double
 
Examples
RAMP(120, 35, 100, 4)
This creates a value that ramps up from 35 to 100 incremented by 4 every 120 milliseconds.
 
RAMP(300, 150.75, 200.50, -0.25)
This creates a value that ramps down from 200.50 to 150.75 decremented by 0.25 every 300 milliseconds.
 
Was this helpful?