This functionality is only available for certain module packages. Info / Copyright

Configuration variables: Basics

A configuration variable is a superordinate variable that you can use for the calculation of specific values. This is done by means of a simple formula. You can define manifold dependencies in the formula.

Formulas can be used to calculate the following values:

Configuration variables are displayed as an additional input field to the engineer in the Project Builder. Use configuration variables if you want to give the engineer the possibility to change specific values. During the generation of the project documentation the value of the reference is replaced by the value of the configuration variable.

The following variable types are available:

Variable types Meaning Example
Integer Integer values 1, 2, 3
Double Floating-point number 3.456
String String EPLAN
Boolean Two possible states true or false

The following operators can be used in the formula:

Operators Meaning Valid for Example
+,-,*,/ Arithmetic calculation Integer, double =V1*V2
'...' Literal String ='EPLAN'
+ Linking of strings String ='EPLAN'+'efficient engineering'
==, !=, <, <=, >,>= Comparison operators Integer, double =V1<=V2
not, and, or, xor Logic operators Boolean =(V1<=V2) and (V1>=V3)
&&, || Alternative notation for logic operators and and or Boolean =(V1<=V2) && (V1>=V3)
if Condition then Value1 else Value2 endif

or

Condition ? Value1 : Value2
Conditional values All =if V1==0 then V2 else V3 endif

or

=V1==0?V2:V3

Tip:

You are supported by the software when entering a formula. As soon as you have entered the "equals" sign, all the available configuration variables and their displayed names are displayed in a drop-down list. You can activate the functionality at any time by using the shortcut key Ctrl + Spacebar. The list is filtered automatically during entry.

If predefined values exist for a configuration variable, these values are displayed as soon as you have entered the operators == or !=.

Example:

=V1== pre-defined value

or

=V1!= pre-defined value

Notes:

Read more

Managing configuration variables

Using the value set of a macro

Application examples

EPLAN Help > Working with Macros > Macros > Basics > Placeholder Objects: Structure and Operation

EPLAN Help > Working with Macros > Macros > Proceed as Follows > Creating Placeholder Objects