Skip to content

Calculate Parameter Value

The Calculate Parameter Value job assigns the result of a mathematical calculation to a selected variable whenever the job is triggered.

Name

Define a name for the job. This name will be displayed in the job overview.

Job Parameter

Result

Select a Device Variable or an Interface Variable that will receive the calculated value when the job is triggered.

Formula

Define the mathematical formula to be evaluated each time the job is triggered.

The formula supports a wide range of elements and operators:

Supported Elements

Variables

  • Variables are written inside square brackets, e.g. [Engine Speed]
  • Whitespaces inside the brackets are allowed
  • Device Variables and Interface Variables may be referenced
  • Popup suggestion: When you type the first bracket [, a list of available variables opens automatically, allowing you to quickly select a variable without typing the full name

Values

  • Decimal and floating-point numbers are allowed
  • Signed values are supported (e.g. -3, +1.25)

Functions

  • The only supported function is square root:
  • sqrt(value)
  • Example: sqrt(9)

Brackets

  • Parentheses can be used to control evaluation order:
  • ( [Var] + 3 ) * 2

Multi-line Expressions

  • Formulas can span multiple lines for readability
  • The complete multi-line expression is evaluated as a single formula

Supported Operators

Category Operators
Arithmetic +    -    *    /    ^
Comparison =    <>    <    <=    >    >=
Logical AND    OR    NOT    XOR

Logical operators evaluate to boolean values.

Comparison operators return either 1 (true) or 0 (false), which can then be used in further calculations.

Example Formula

[Test Variable] * (3 + -1.0)
+ sqrt(9)
>= [Comparison]

This example demonstrates: - Variable references with brackets - Signed floating-point arithmetic - Parentheses - Function usage (sqrt) - Comparison producing a boolean result - Multi-line formatting

Description

A user-editable field for entering a custom description of the job.

This can document the intended role or usage of the job within your configuration.