Programming example

Programing Example

prg_example

Path milling

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.

 

T12 D12                     ( Tool data )

M6                          ( Tool change )

G90 G54 S6000 M03 F5000     ( Technology data )

 

#VAR

  V.L.SurfacePosition = 0   ( Z position of workpiece surface )

  V.L.RetractionPlane = 10  ( Z position of retraction plane )

  V.L.SafetyClearance = 10  ( relative value of safety clearance )

  V.L.Depth           = 20  ( depth of path milling )

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

  V.L.FeedRateZ       = 100 ( plunging feedrate in Z )

  V.L.PlungingModeZ   = 1   ( plunging during approaching )

  V.L.TrcMode         = 2   ( trc on left side )

  V.L.ApprRad         = 10  ( approaching with radius 10 )

  V.L.ContourID       = 1   ( 50 identification number pocket contour )

#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

 

; polynomial contouring for smooth movements

#CONTOUR MODE [DEV, PATH_DEV = V.G.WZ_AKT.R / 100]

G261

 

L CYCLE [NAME = SysMillContourPath.ecy  \

    @P1  = V.L.SurfacePosition          \

    @P2  = V.L.RetractionPlane          \

    @P3  = V.L.SafetyClearance          \

    @P4  = V.L.Depth                    \

    @P5  = V.L.MaxIncrementZ            \

    @P21 = V.L.FeedRateZ                \

    @P31 = "Roughing"                   \

    @P32 = V.L.PlungingModeZ            \

    @P75 = V.L.TrcMode                  \

    @P90 = "MotionLinear"               \

    @P91 = V.L.ApprRad                  \

    @P50 = V.L.ContourID                \

    ]

 

G260

M30