Dynamic variable names

Top  Previous  Next

The RTS is able to generate variable names dynamically. In other words, the name is generated during the runtime from the values of one or several variables. These variables are called index variables.

These index variables must be placed between two percentage characters.

 

Example

/Plch/Plc1/VarArr1[%/Plch/Plc1/Idx1%]

 

Possible result:        /Plch/Plc1/VarArr1[3]

 

 

Difference to EPAM3

PLC variables can be used as well as system variables.
Index variables can be of any Basic type.
If one of the index variables used changes, the variable is regenerated again, and so a page change is not necessary.