-

Managing Global Variables in a Data List

Variables and variables groups can be managed and created in the variables tables of POUs and, in case of global variables, in the Data List of the controller.

If a Safety PLC is available, it also provides a Data List.

In the Data Lists, several commands for the variables management are available in the context menu and on the toolbar. See topics "Declare Variables" and "Manage Vafriables" ‣ Declaring Variables/FB Instances
×‣ Managing Declarations in Tables
×
for further information.

Note
When declaring an external variable in the variables table of a POU (by setting 'Usage = External'), the relating global declaration (with the 'Global' keyword) is automatically inserted in the controller/Safety PLC Data List provided that the respective POU is already instantiated. This does not work the other way around: after inserting the 'Global' declaration first, the relating External declaration must be manually inserted in the POU where the variable is going to be used.

The information given here do not apply to the PLCnext Port List as it is not possible to create or manage ports in the Port List. Creation of ports is possible in the variables table of program POUs.