Siemens SINUMERIK 840D sl Programming Manual page 28

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

Advertisement

Flexible NC programming
1.1 Variables
Program code
PROC SUB3
...
IF (VAR1==1)
VAR1=VAR1+1
VAR2=1
ENDIF
...
M17
Example 3: Definition and use of user variables of data type AXIS
Program code
DEF AXIS ABSCISSA
DEF AXIS SPINDLE
...
IF ISAXIS(1) == FALSE GOTOF CONTINUE
ABSCISSA = $P_AXN1
CONTINUE:
...
SPINDLE=(S1)
OVRA[SPINDLE]=80
SPINDLE=(S3)
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.
11140
18118
18120
18130
18140
18150
18660
18661
18662
18663
18664
18665
1)
28
Identifier: $MN_
GUD_AREA_ SAVE_TAB
MM_NUM_GUD_MODULES
1)
MM_NUM_GUD_NAMES_NCK
1)
MM_NUM_GUD_NAMES_CHAN
1)
MM_NUM_GUD_NAMES_AXIS
1)
MM_GUD_VALUES_MEM
1)
MM_NUM_SYNACT_GUD_REAL
1)
MM_NUM_SYNACT_GUD_INT
1)
MM_NUM_SYNACT_GUD_BOOL
1)
MM_NUM_SYNACT_GUD_AXIS
1)
MM_NUM_SYNACT_GUD_CHAR
1)
MM_NUM_SYNACT_GUD_STRING
1)
For SINUMERIK 828D, MD can only be read!
Comment
;Subprogram SUB3
;Read PUD
;Read & write PUD
;Error: LUD from SUB2 not known
Comment
;1st geometry axis
;Spindle
;1st spindle
;Spindle override = 80%
;3rd spindle
Meaning
Additional save for GUD blocks
Number of GUD files in the active file system
Number of global GUD names
Number of channel-spec. GUD names
Number of axis-spec. GUD names
Memory location for global GUD values
Number of configurable GUD of the REAL data type
Number of configurable GUD of the INT data type
Number of configurable GUD of the BOOL data type
Number of configurable GUD of the AXIS data type
Number of configurable GUD of the CHAR data type
Number of configurable GUD of the STRING data type
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents