Flexible NC programming
1.1 Variables
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
29
Program-global user variables (PUD)
NOTICE
Visibility of program-local user variables (PUD)
Program-local user variables (PUD) defined in the main program will only be visible in
subprograms if the following machine data is set:
MD11120 $MN_LUD_EXTENDED_SCOPE = 1
If MD11120 = 0 the program-local user variables defined in the main program will only be
visible in the main program.
Cross-channel use of an NCK-global user variable of the AXIS data type
An NCK-global user variable of the
AXIS data type initialized during definition in the data
block with an axis identifier can then only be used in other NC channels if the axis has the
same channel axis number in these channels.
If this is not the case, the variable has to be loaded at the start of the part program or, as in
the following example, the AXNAME(...) function (see "") has to be used.
Program code Comment
DEF NCK STRING[5] ACHSE="X" ; Definition in the data block
N100 AX[AXNAME(ACHSE)]=111 G00 ; Use in the part program
See also
General information about variables (Page 15)