Global variables are valid for the entire project. They are, for example, the input and output contacts of a process or they are used for touch terminals and visualization. Global variables are declared in the global variable list. The global variable list can be accessed from the Project pane or from the Variables pane.
Global variables can be declared with different classes. The global variables can be referenced by the POUs via VAR_EXTERNAL (external variables).
The following variables must be declared in the global variable list:Declaring global variables in a library using the global variable list allows you to:
Check and compare variables automatically
Keep data, i.e. names, data types, and user-defined addresses, consistent throughout projects
Track changes made to variables