Set the Value of a Variable

To set the value of any of a single-value Variable (other than a Constant Double Variable), you can use the Value method, or set the value using Logic. With the exception of a Constant Double Variable or Variant Variable, you can also use the Set Value pick action. For information on using the Set Value pick action (which has the same arguments as the Value method), see Set Value.

To set the value of a Variable array, you use the Set Element pick action (other than with a Variant Array), SetElement method, or set the value using Logic. For information on using the Set Element pick action, see Set Element.

The value of a Constant Double Variable is, as its name implies, expected not to change once it has been configured. As such, you specify a Constant Double’s value using the Value field on the Constant Double Variable Form (see Configure the Basic Properties of a Variable).

A Variant Variable, or Variant Variable array can have a value, or series of values, of any type. The value(s) of this type of Variable or Variable array have to be set via Logic or the Automation Interface. For an example that demonstrates how a Variant Variable’s value might be set, see Using a Variant Variable to Store USINT Data in a Logic Program.


Disclaimer

ClearSCADA 2017 R2