Complex free-form surfaces
6.2
© Siemens AG All rights reserved. SINUMERIK, Manual, 5-axis machining
94
Example program code
The NC programs for producing the manta ray involve a number of roughing, pre-finishing, and
finishing strategies. The key components of the NC programs are illustrated below on the basis
of the start program and a roughing program.
Example start program Within the start program, it is sometimes a good idea to make all the settings in the geometry
subprograms, particularly as far as individual part production and the test phase are concerned.
The start program will only call those subprograms that contain all the specifications such as tool,
CYCLE832. This is particularly helpful in cases where the post processor is perfectly attuned to
the SINUMERIK system and all higher-order functions have already been integrated. In test
mode, it is advisable to execute the subprograms individually; jump labels can be used within the
start program, for example, for the purpose of launching the required subprogram.
N100 G90 G17 G54 ;
;
Absolute dimension specification, select working plane
and work offset
N105 ORIWKS ORIAXES ; Workpiece coordinate system, axis interpolation
N110 GOTOF _ROUGH_01 ;
;
;
;
Subprogram jump label for calling roughing with the
ROUGH_01.MPF program.
This program is explained in greater detail on the next
page.
N120 ;GOTOF _ROUGH_02 ; Unused jump labels are
; commented out for the test phase.
... ;
N210 ;GOTOF _FINISH_05 ;
N220 _ROUGH_01: ; Jump destination for GOTOF
N230 EXTCALL "ROUGH_01" ; Call for roughing 01 subprogram
N240 STOPRE ;
;
;
Preprocessing memory stopped, i.e. the subsequent NC
blocks will only be read in once all the previous NC
blocks have been executed.
N250 M00 ; Program stop
N280 ...
N360 _FINISH_05: ;
N370 EXTCALL "FINISH_05 ; Subprogram call for the last finishing program
N380 STOPRE ;
N390 M00 ;
N400 M30 ; End of program