1
04.00 Flexible NC Programming
1.2 Variable definition
1
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
1-29
Additional notes
A variable of type AXIS stores axis names and
spindle identifiers of a channel.
Note:
Axis names with extended addresses must be
enclosed in parentheses.
Programming example with local variables
DEF INT COUNT
LOOP: G0 X…
;Loop
COUNT=COUNT+1
IF COUNTER<50 GOTOB LOOP
M30
Programming example
Scan for existing geometry axes
DEF AXIS ABSCISSA;
;1st geometry axis
IF ISAXIS(1)==FALSE GOTOF CONTINUE
ABSCISSA = $P_AXN1
…
CONTINUE:
Indirect spindle programming
DEF AXIS SPINDLE
SPINDLE=(S1)
OVRA[SPINDLE]=80
;Spindle override= 80%
SPINDLE=(S3)
…