Substitution |
Manual -> Energy Edition -> Command input -> Engineering in the Editor -> Compiling - Starting the Runtime -> Substitution |
Show all Hide all |
To raise the reusability of the command interlocking, it is possible to substitute variable references. Substitution is possible for response, command and condition variables.
When substituting, the placeholder '*' is automatically replaced by name of the data point associated with the command input.
Example |
||||||||||||||||
Suppose we have the data points xyz_RM, abcRM and bool_RM. Our mask is '*_RM'.
|
Info |
If the data point, for which the command interlocking is to be compiled, matches the response variable, then the substitution text is determined by the response variable. Otherwise, the substitution text is determined by the action variable oft the first action that fits the data point. If the substitution text was successfully determined, the place holder '*' is replaced by this text. |
This is why the following points should be considered for the names.