Siemens SINUMERIK 840D sl Programming Manual page 30

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.1 Variables
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 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 "Axis functions (AXNAME, AX, SPI,
AXTOSPI, ISAXIS, AXSTRING, MODAXVAL) (Page 765)") has to be used.
Program code
DEF NCK STRING[5] ACHSE="X"
N100 AX[AXNAME(ACHSE)]=111 G00
See also
Redefinition of system variables, user variables, and NC language commands (REDEF)
(Page 31)
30
Comment
;
Definition in the data block
;
Use in the part program
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents