Cycles
2.5 Turning cycles
Turning Part 2: Programming (Siemens instructions)
172 Programming and Operating Manual, 05/2012, 6FC5398-5DP10-0BA0
The following is the main program:
N10 T1 D1 G0 G95 S500 M3 Z125 X81
; Approach position before cycle
call
N20 CYCLE95("CONTOUR_1", 5, 1.2, 0.6, , 0.2,
0.1, 0.2, 9, , , 0.5)
; Cycle call
N30 G0 G90 X81 ;Reapproach starting position
N40 Z125 ; Traverse axis by axis
N50 M2 ; End of program
The following is the subprogram:
CONTOUR_1.SPF
;Subroutine for contour turning
(for example)
N100 Z120 X37
N110 Z117 X40
; Traverse axis by axis
N120 Z112 RND=5 ;Rounding with radius 5
N130 Z95 X65
N140 Z87
N150 Z77 X29
N160 Z62
N170 Z58 X44
N180 Z52
N190 Z41 X37
N200 Z35
N210 X76
; Traverse axis by axis
N220 M02 ; End of subroutine
Programming example 2: Stock removal cycle
The stock removal contour is defined in the calling program and is traversed directly after the
cycle for finishing has been called.
3
3
3
3
3
=
;
Figure 2-7 Programming example 2: Stock removal cycle