XG5000 Variables - Global and Local

XG5000 allows the user to define Global and Local variables. Global variables can be accessed from any Program and Task. Local variables can only be accessed from the Program and Task it is defined in. Variables must be declared before using them in programs and Tasks.

Variable Types

Variable Type Description
VAR_GLOBAL Global variable type available to read/write.
VAR_GLOBAL_CONSTANT Global constant type that is read only.
VAR Local variable type available to read/write.
VAR_CONSTANT Local constant variable that is read only.
VAR_EXTERNAL Declaration to use a Global Variable in local program.
VAR_EXTERNAL_CONSTANT Declaration to use Global Constant in local program.

Declaring a Gobal Variable

Declaring a Local Variable

Using a Global Variable in a Scan Program or Task

Creating a List of Numerically Ascending Variables

Viewing Information about Address Referencing Variables in Ladder

 

 

 

 

 

 

 

 

 

 

 

 

LM109