Flexible NC programming
1.1 Variables
Job planning
28 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Example 3: Definition and use of user variables of data type AXIS
Program code Comment
DEF AXIS ABSCISSA ; 1st geometry axis
DEF AXIS SPINDLE ; Spindle
...
IF ISAXIS(1) == FALSE GOTOF CONTINUE
ABSCISSA = $P_AXN1
CONTINUE:
...
SPINDLE=(S1) 1st spindle
OVRA[SPINDLE]=80 ; Spindle override = 80%
SPINDLE=(S3) 3rd spindle
General 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-spec. GUD names
18140
1)
MM_NUM_GUD_NAMES_AXIS Number of axis-spec. 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
data type
1)
Not available for SINUMERIK 828D.