beckhoff TwinCAT 2 PLC Control — 6.1 Global Variables

Ressources 6 Ressources In the Ressources register card of the Object Organizer, there are objects for configuring and organizing your project and for keeping track of the values of the variables: Global Variables [ } 162] , that can be utilized in the entire project Alarm Configuration [ } 165] for configuring of alarm classes and alarm groups which can be used for example in the visualization. Library Manager [ } 183] for managing all libraries inculded in the project Log [ } 114] for storing in chronological order actions that occur during an Online session.

PLC Configuration [ } 173] for configuring your hardware Sampling Trace [ } 176] for graphic logging of variable values Task Configuration [ } 174] for controlling your program control via tasks Watch- and Recipe Manager [ } 180] for indicating and presetting variable values Workspace Overview of all settings of project options Ressources 6.1 Global Variables In the Object Organizer, you will find three objects in the Ressources register card in the Global Variables folder (default names of the objects in parentheses). Global Variables List Variables Configuration All variables defined in these objects are recognized throughout the project.

If the global variables folder is not opened up (plus sign in front of the folder), you can open it with a doubleclick in the line. Select the corresponding object. The "Object Open" command opens a window with the previously defined global variables. The editor for this works the same way as the declaration editor. Several Variables Lists Global variables, global network variables (VAR_GLOBAL) , and variable configurations (VAR_CONFIG) must be defined in separate objects. If you have declared a large number of global variables, and you would like to structure your global variables list better, then you can create further variables lists.

In the Object Organizer, select the Global Variables folder or one of the existing objects with global variables. Then TwinCAT 2 PLC Control 162 Version: 1.0