Supplementary conditions
Global user variables (GUD)
In the context of the definition of global user variables (GUD), the following machine data has
to be taken into account:
No. Identifier: $MN_ Meaning
11140 GUD_AREA_ SAVE_TAB Additional save for GUD blocks
18118
1)
MM_NUM_GUD_MODULES Number of GUD files in the active file system
18120
1)
MM_NUM_GUD_NAMES_NCK Number of global GUD names
18130
1)
MM_NUM_GUD_NAMES_CHAN Number of channel-specific GUD names
18150
1)
MM_GUD_VALUES_MEM Memory location for global GUD values
18660
1)
MM_NUM_SYNACT_GUD_REAL Number of configurable GUD of the REAL data
type
18661
1)
MM_NUM_SYNACT_GUD_INT Number of configurable GUD of the INT data
type
18662
1)
MM_NUM_SYNACT_GUD_BOOL Number of configurable GUD of the BOOL data
type
18663
1)
MM_NUM_SYNACT_GUD_AXIS Number of configurable GUD of the AXIS data
type
18664
1)
MM_NUM_SYNACT_GUD_CHAR Number of configurable GUD of the CHAR data
type
18665
1)
MM_NUM_SYNACT_GUD_STRING Number of configurable GUD of the STRING da‐
ta type
1)
For SINUMERIK 828D, MD can only be read!
Cross-channel use of an NC-global user variable of the AXIS data type
An NC-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 beginning of the NC program or, as
in the following example, the AXNAME(...) function (see "Axis functions (AXNAME, AX, SPI,
AXTOSPI, ISAXIS, AXSTRING, MODAXVAL) (Page 875)") 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 NC program
3.1.1.6 Redefinition of system data, user data, and NC commands (REDEF)
The REDEF command changes the attributes of system data, user data, and NC 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 REDEF
command must be programmed for each attribute to be changed.
If several concurrent attribute changes are programmed, the last change is always active.
Work preparation
3.1 Flexible NC programming
NC programming
402 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0