Redefinition Of System Variables, User Variables, And Nc Language Commands (Redef) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Program-global user variables (PUD)
Note
Visibility of program-global user variables (PUD)
Program-global 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-global 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
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 has to be used.
Program code
DEF NCK STRING[5] ACHSE="X"
...
N100 AX[AXNAME(ACHSE)]=111 G00
1.1.5
Redefinition of system variables, user variables, and NC language commands
(REDEF)
Function
The
variables and NC language commands. A fundamental condition of redefinition is that it has
to post-date the corresponding definition.
Multiple attributes cannot be changed simultaneously during redefinition. A separate
statement has to be programmed for each attribute to be changed.
If two or more concurrent attribute changes are programmed, the last change is always
active.
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
command can be used to change the attributes of system variables, user
REDEF
data type initialized during definition in the data
AXIS
Comment
;Definition in the data block
;Use in the part program
Flexible NC programming
1.1 Variables
REDEF
29

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents