Global, not valid after part program end(V.P.)

With the code "V.P. ...", it is possible to define individual variables and to assign values to them. The variables are global in the current part program (i.e. after creation known at any point of the part program and all its subroutines), but not valid after program end.

Syntax:

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

<FREE_DEF> whereby FREE_DEF is a name chosen arbitrarily, which can consist of a maximum firmly given number of any characters (excluding blank characters, tabulators, commentaries, comparison operators, mathematic operators, brackets).

Programming example

Creation of V.P.VAR_5 and initialisation with value 20. Thereafter a linear interpolation in X-direction is carried out with the value of this variable (X20).

: 
#VAR
V.P.VAR_5
#ENDVAR
:
N10 V.P.VAR_5 = 20
N20 XV.P.VAR_5
:

or

: 
#VAR
V.P.VAR_5 = 20
#ENDVAR
:
N20 XV.P.VAR_5
:

The maximum number of self-defined variables that are not valid after program end is firmly given [6]-6-21. At the start of the program all names and values of those V.P.-variables are deleted.

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