Programming and Operating Manual (Milling)
156
6FC5398-4DP10-0BA1, 01/2014
N10 G90 F30 S500 M3 T10 D1
; Specification of the technological
values for the machining step
N20 G17 G90 X20 Z105 Y30
; Approach start position
N30 MCALL CYCLE82(105, 102, 2, 22, 0, 1)
; Modal call of drilling cycle
N40 HOLES1(20, 30, 0, 10, 20, 5)
; Call of row-of-holes cycle; the cycle
starts with the first hole; only the
drill positions are approached in this
cycle
N50 MCALL
; Deselect modal call
...
; Change tool
N60 G90 G0 X30 Z110 Y105
; Approach position next to 5th hole
N70 MCALL CYCLE84(105, 102, 2, 22, 0, , 3, , 4.2, ,300, )
; Modal call of the tapping cycle
N80 HOLES1(20, 30, 0, 10, 20, 5)
; Call of row of holes cycle starting
with the fifth hole in the row
N90 MCALL
; Deselect modal call
N100 M02
; End of program
Programming example: Grid of holes
Use this program to machine a grid of holes consisting of five rows with five holes each, which are arranged in the XY plane,
with a spacing of 10 mm between them. The starting point of the grid is at X30 Y20.
The example uses R parameters as transfer parameters for the cycle.
R10=102
R11=105
R12=2
R13=75
R14=30
R15=20
R16=0
R17=10
R18=10
R19=5
R20=5
R21=0
R22=10
; Reference plane
; Retraction plane
; Safety clearance
; Drilling depth
; Reference point for the row of holes in the first axis of
the plane
; Reference point for the row of holes in the second axis of
the plane
; Starting angle
; Distance from first hole to reference point
; Distance between the holes
; Number of holes per row
; Number of rows
; Row counter
; Distance between the rows