Local not valid program global (V.L.)

The code "V.L. ....” permits the definition of self-defined variables which are valid local at the current program level and in directly called subroutines. They are deleted when the program level in which they were created is left (return).

A V.L. variable may be redefined with the same name at a lower program level and assigned a new value. This value is valid until this program level is left (return). The V.L. variable with the same name then has the original value.

V.L. variables may be assigned values in REAL format.

V.L.<FREE_DEF>                                                         local variable not program global

<FREE_DEF>

whereby FREE_DEF is a name chosen arbitrarily. It may consist of any number of characters (excluding blank characters, tabulators, comments, comparison operators, mathematical operators, square brackets).

Programing Example

prg_example

Local not program global (V.L.)

Create V.L.LOC_VAR and initialise with the value 10. Then linear interpolation in X direction is carried out with the value of this variable, i.e. 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 non-global variables is fixed [6]-6.23. At the start of the program, all names and values of those V.L. variables are deleted.