Substitution

Previous chapterNext chapter Show allShow all    Hide allHide 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 Example

Suppose we have the data points xyz_RM, abcRM and bool_RM.

Our mask is '*_RM'.

Datapoint name

Substitution text

Result

Comment

xyz_RM

xyz

xyz_RM

Data point exists, allocation successful

abcRM

<empty>

_RM

The masks is not correct, because _ is missing. Data point does not exist.

bool_RM

bool

bool_RM

Data point exists, allocation successful

 

info 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.