Navigation:  Programming > Variables >

Variables in Structured Text

Previous pageReturn to chapter overviewNext page

The structured text variables are divided into two distinct types:

 

1) The local variables that are declared in the Structured Text Program:

 

Figure 1: Declaration of local variables

 

2) Global variables are declared in Structured Text Variables:

 

Figure 2: Declaration of global variables

 

Note that in Figure 2 there are two variables declared differently:

GLOBAL VARIABLE: unaddressed variable of the REAL type.
VARIABLE GLOBAL_MBUSS: variable with Modbuss address "0" of type REAL and with initial value 150.