Global, valid after part program end(V.S.)

With the code "V.S. ...", it is possible to define individual variables and to assign values to them, which can be accessed in all program levels and all following (main-) programs still under the same names. The value of the variable can be altered only by over-writing. The names of these variables could be deleted only by a restart/startup of the control.

Syntax:

V.S. <FREE_DEF> global variable, valid after program end

<FREE_DEF> whereby FREE_DEF is a name chosen arbitrarily, which consists of characters (excluding blank characters, tabulators, commentaries, comparison operators, mathematic operators, brackets).

Programming example

Creation of the array variable V.S.VAR[5] and initialisation. Thereafter a linear interpolation in X-direction is carried out with the variable V.S.VAR[4] (X20).

: 
#VAR
V.S.VAR[5] = [5,10,10,15,20]
#ENDVAR
:
N20 XV.S.VAR[4]
:

The maximum number of self-defined global variables is firmly given [6]-6.22.

Global, valid after part program end(V.S.) 1: