1. Home
  2. Docs
  3. SmartConfig2.1
  4. 5.1 User defined
  5. 5.1.8 Variables, parameters, and runtime placeholders

5.1.8 Variables, parameters, and runtime placeholders

Many action settings can use either a fixed value entered directly or a value selected from the dropdown list. The available choices depend on the action and input field.

For example, the duration of a Delay can be entered directly or selected from an available parameter. In a Compare action, both comparison values can be entered or selected independently.

Selecting a fixed or user-defined value in a Compare action

Sensor variables

The lowercase sensor variables are available only in formulas. They represent the current sensor values supplied to the formula.

VariableDescription
aSensor value 1
bSensor value 2
cSensor value 3
dSensor value 4

These variables are live input values and cannot be used directly as general program parameters outside formulas.

User parameters

User parameters can be edited by the user and used as inputs in program actions and formulas.

VariablesRangeEditableUsage
A B C D E G H J K L M N0–65535YesProgram parameters and formulas

A user parameter is evaluated using its current value whenever the corresponding action is executed. Ensure that the required parameter has been configured before it is used by the program.

Temporary storage

Temporary storage variables hold intermediate values used during program execution.

VariableDescription
UTemporary storage 1
VTemporary storage 2
WTemporary storage 3
XTemporary storage 4
YTemporary storage 5
ZTemporary storage 6

Temporary storage is intended for runtime logic and intermediate results. These variables are not pulse counters.

Formula result

VariableDescription
r or RResult of the most recently executed formula

Using r or R is the recommended method for transferring a calculated formula result into subsequent program logic.

The value of r or R is replaced whenever another formula is executed. If a result must be retained for later use, copy it into a suitable temporary storage variable before executing another formula.

How can we help?