Skip to main content
Skip table of contents

How can I define constants?

Local and global variables can be defined in SEDRIX, which can be used in function block formulae or assignments, for example.

A variable can be entered in an input field of a function module or an evaluation, just like a normal value. By convention, variable names always begin with a dollar sign, e.g. $Constant1.

This means that a value that is needed in several different places must only be entered in one place.

Constants can be entered in the project properties or measuring point properties. If the name is the same, local variables overwrite global ones.

The name of each variable must begin with the $ character. The following part of the name can be entered freely. The value can be entered after the equal sign; this value will be assigned to the variable.

Syntax for setting variables:

CODE
$VariableName = VariableValue

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.