Ramp
Increases or decreases a tag value by a specified value, or by another tag's value.
Syntax
[/V] <
tag_name
> <
value
|tag
>
where
[/V]
performs a read immediately after the write to verify that the value was actually altered in the programmable controller or OPC server.- This parameter is useful if the network is in poor condition or susceptible to noise interference.
- If the verification fails, the error message is sent to the Factory Diagnostics system.
<tag_name>
is a relative or absolute reference to the tag that will be increased or decreased in value.<value
| tag>
is an amount to add to or subtract from the current value of the specified tag, as follows:- A numeric value with a sign indicating add (+) or subtract (-).
- The value to add or subtract, as a percentage of the total min/max range, with a sign indicating add (+) or subtract (-). The formula is:
- new = old +/- (percentage/100 * (max - min))
- plus (+) or minus (-) a tag
If
Ramp
calculates a value that is outside of a tag's min/max range, it will write the highest or lowest allowable value to programmable controller or OPC server.Remarks
A tag must expose High EU (maximum) and Low EU (minimum) properties for a percentage to be used.
If you use the
Ramp
command in a macro, you must use two percent signs (%%) instead of one. A single percent sign is used in a macro to indicate a parameter. For example, to create a macro that increased the value of Tag1 by 75%, you would write this Ramp Tag1 + 75%%
.This command is run locally on the HMI server,
FactoryTalk View SE
Client, or FactoryTalk View Studio
that issued it.Provide Feedback