Programming example

This example describes path milling of a contour path defined in the NC program.

Here, a tool radius compensation on the left-hand side is defined. A quadrant was also defined as the approach movement and this is used to feed the tool in Z during the approach.

Programing Example

prg_example

Path milling

T12 D12                    ( Tool data )

M6                         ( Tool change )

G00 G90 M03 S6000 F5000    ( Technology data )

; cycle call parameter:

#VAR

V.L.SurfacePosition = 0 ; Z position of workpiece surface

V.L.RetractionPlane = 100 ; Z position of retraction plane

V.L.SafetyClearance = 10 ; relative value of safety clearance

V.L.FeedRateXY = 2000 ; machining feedrate in XY

V.L.FeedRateZ = 1000 ; plunging feedrate in Z

V.L.Depth = 20 ; depth of path milling

V.L.MaxIncrementZ = V.L.Depth / 2 ; maximum infeed in Z

V.L.MachiningMode = 1 ; roughing

V.L.TrcMode = 1 ; trc on left side

V.L.ApprMode = 2 ; approaching with quarter circle

V.L.ApprRad = 10 ; approaching with radius 10

V.L.PlungingModeZ = 2 ; plunging during approaching

#ENDVAR

; contour definition:

#CONTOUR BEGIN[ID = 1]

G1 G90 X25 Y25 (start point)

G1 G91 X50

G302 I12.5

G1 G91 Y50

G301 I12.5 J12.5

G1 G91 X50

G02 G91 X25 Y-25 I0 J-25

#CONTOUR END

G0 ZV.L.RetractionPlane

; cycle call:

L CYCLE [NAME = SysMillContourPath.ecy @P1 = V.L.SurfacePosition,\

@P2 = V.L.RetractionPlane, @P3 = V.L.SafetyClearance @P4 = V.L.Depth\

@P5 = V.L.MachiningMode @P7 = V.L.MaxIncrementZ @P8 = V.L.FeedRateZ\

@P9 = V.L.TrcMode @P10= V.L.FeedRateXY @P15 = V.L.PlungingModeZ\

@P16 = V.L.ApprMod @P17 = V.L.ApprRad @P50= 1 ]

M30