Local, not valid after part program end (V.L.)

With the code "V.L. ...", it is possible to define individual variables and to assign values to them. The variables are local for the current subroutine and all the called subroutines. They are deleted when the defining subroutine level is left.

Syntax:

V.L. <FREE_DEF> local variable, not 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 V.L.LOC_VAR and initialisation with value 10. Thereafter a linear interpolation in X-direction is carried out with the value of this variable (X10).

: 
#VAR
V.L.LOC_VAR
#ENDVAR
:
N10 V.L.LOC_VAR = 10
N20 XV.L.LOC_VAR
:

or

: 
#VAR
V.L.LOC_VAR = 10
#ENDVAR
:
N20 XV.L.LOC_VAR
:

The maximum number of self-defined local variables is firmly given [6]-6.23. At the start of the program all names and values of those V.L.-variables are deleted.

Local, not valid after part program end (V.L.) 1: