Operator - Namespace for Global Variables ListsΒΆ

This operator is an extension of the IEC 61131-3 standard.

You can use the name of a global variables list (GVL) as a namespace identifier for the variables that are defined in the list. This makes is possible to use variables with the same name in different global variables lists and still access specific variables uniquely. You use a dot (.) to prepend the name of the global variables list to the variable name.

<global variable list name>.<variable>

Example

globlist1.varx := globlist2.varx;

The globlist1 and globlist2 global variables lists each contain a varx variable. CODESYS copies the varx global variable from the globlist2 list to varx in the globlist1 list.

If you reference a variable that is declared in several global variables lists without referencing the prepended list name, then an error message is printed.