Example: Cylinder surface with Cycle 27

 
Tip
  • Machine with B head and C table
  • Cylinder centered on rotary table
  • Preset is on the underside, in the center of the rotary table

0 BEGIN PGM 5 MM

1 BLK FORM CYLINDER Z R25 L100

2 TOOL CALL 3 Z S2000

; Tool call (diameter: 7)

3 L Z+250 R0 FMAX M3

; Retract the tool

4 PLANE SPATIAL SPA+0 SPB+90 SPC+0 TURN MB MAX FMAX

; Tilt to position

5 CYCL DEF 14.0 CONTOUR

6 CYCL DEF 14.1 CONTOUR LABEL1

7 CYCL DEF 27 CYLINDER SURFACE ~

Q1=-7

;MILLING DEPTH ~

Q3=+0

;ALLOWANCE FOR SIDE ~

Q6=+2

;SET-UP CLEARANCE ~

Q10=-4

;PLUNGING DEPTH ~

Q11=+100

;FEED RATE FOR PLNGNG ~

Q12=+250

;FEED RATE F. ROUGHNG ~

Q16=+25

;RADIUS ~

Q17=+1

;TYPE OF DIMENSION

8 L C+0 R0 FMAX M99

; Pre-position the rotary table, cycle call

9 L Z+250 R0 FMAX

; Retract the tool

10 PLANE RESET TURN MB MAX FMAX

; Tilt back, cancel the PLANE function

11 M30

; End of program

12 LBL 1

; Contour subprogram

13 L X+40 Y-20 RL

; Rotary axis data in mm (Q17 = 1)

14 L X+50

15 RND R7.5

16 L Y-60

17 RND R7.5

18 L IX-20

19 RND R7.5

20 L Y-20

21 RND R7.5

22 L X+40 Y-20

23 LBL 0

24 END PGM 5 MM