Programming example
; Face milling
T17 D17 ( Tool data )
M6 ( Tool change )
G17 G90 G54 F2000 M03 S6000 ( Technology data )
G00 Z50 ( Go to Z start position )
G00 X-50 Y0 ( position near workpiece mill tool is outside the part )
#VAR
V.L.SurfacePositionZ = 0 ( Z position of workpiece surface )
V.L.RetractionPlane = 20 ( Z position of retraction plane )
V.L.SafetyClearance = 5 ( relative value of safety clearance in Z)
V.L.MaxIncrementZ = 2 ( maximum increment of Z )
V.L.MaxIncrementXY = V.G.WZ_AKT.R*1.2 ( maximum increment of XY )
V.L.FinishingOffsetZ = 0.2 ( finishing offset )
V.L.MachiningMode = 1 ( machining mode )
V.L.PlungingModeZ = 2 ( plunging mode Z (default = 1) )
V.L.MachineDirection = 1 ( machining direction )
V.L.Rotation = 1 ( machining rot. 180 deg. (default = 0) )
V.L.Corner_Start_X = 0 ( start point X )
V.L.Corner_Start_Y = 0 ( start point X )
V.L.Corner_Start_Z = 5 ( start point Z )
V.L.Corner_End_X = 100 ( end point X )
V.L.Corner_End_Y = 100 ( end point Y )
V.L.Corner_End_Z = 0 ( end point Z )
V.L.CenterPlane = 1 ( machining on centre of workp.(def.=0))
#ENDVAR
; polynomial contouring for smooth movements
#CONTOUR MODE [DEV, PATH_DEV = V.G.WZ_AKT.R / 100]
G261
; Roughing Direction 1
L CYCLE [NAME=SysMillFace.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P15 = V.L.FinishingOffsetZ \
@P30 = V.L.MachineDirection \
@P31 = V.L.MachiningMode \
@P80 = V.L.Corner_Start_X \
@P81 = V.L.Corner_Start_Y \
@P82 = V.L.Corner_Start_Z \
@P83 = V.L.Corner_End_X \
@P84 = V.L.Corner_End_Y \
@P85 = V.L.Corner_End_Z \
]
; Roughing Direction 2
V.L.MachineDirection = 2
L CYCLE [NAME=SysMillFace.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P15 = V.L.FinishingOffsetZ \
@P30 = V.L.MachineDirection \
@P31 = V.L.MachiningMode \
@P80 = V.L.Corner_Start_X \
@P81 = V.L.Corner_Start_Y \
@P82 = V.L.Corner_Start_Z \
@P83 = V.L.Corner_End_X \
@P84 = V.L.Corner_End_Y \
@P85 = V.L.Corner_End_Z \
]
; Roughing Direction 3
V.L.MachineDirection = 3
L CYCLE [NAME=SysMillFace.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P15 = V.L.FinishingOffsetZ \
@P30 = V.L.MachineDirection \
@P31 = V.L.MachiningMode \
@P80 = V.L.Corner_Start_X \
@P81 = V.L.Corner_Start_Y \
@P82 = V.L.Corner_Start_Z \
@P83 = V.L.Corner_End_X \
@P84 = V.L.Corner_End_Y \
@P85 = V.L.Corner_End_Z \
]
; Roughing Direction 4
V.L.MachineDirection = 4
L CYCLE [NAME=SysMillFace.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P15 = V.L.FinishingOffsetZ \
@P30 = V.L.MachineDirection \
@P31 = V.L.MachiningMode \
@P80 = V.L.Corner_Start_X \
@P81 = V.L.Corner_Start_Y \
@P82 = V.L.Corner_Start_Z \
@P83 = V.L.Corner_End_X \
@P84 = V.L.Corner_End_Y \
@P85 = V.L.Corner_End_Z \
]
; Roughing Direction 5
V.L.MachineDirection = 5
L CYCLE [NAME=SysMillFace.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P15 = V.L.FinishingOffsetZ \
@P30 = V.L.MachineDirection \
@P31 = V.L.MachiningMode \
@P80 = V.L.Corner_Start_X \
@P81 = V.L.Corner_Start_Y \
@P82 = V.L.Corner_Start_Z \
@P83 = V.L.Corner_End_X \
@P84 = V.L.Corner_End_Y \
@P85 = V.L.Corner_End_Z \
]
; Roughing Direction 6
V.L.MachineDirection = 6
L CYCLE [NAME=SysMillFace.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P15 = V.L.FinishingOffsetZ \
@P30 = V.L.MachineDirection \
@P31 = V.L.MachiningMode \
@P80 = V.L.Corner_Start_X \
@P81 = V.L.Corner_Start_Y \
@P82 = V.L.Corner_Start_Z \
@P83 = V.L.Corner_End_X \
@P84 = V.L.Corner_End_Y \
@P85 = V.L.Corner_End_Z \
]
; Finishing Direction 1
V.L.MachineDirection = 1
V.L.MachiningMode = 2
L CYCLE [NAME=SysMillFace.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P15 = V.L.FinishingOffsetZ \
@P30 = V.L.MachineDirection \
@P31 = V.L.MachiningMode \
@P80 = V.L.Corner_Start_X \
@P81 = V.L.Corner_Start_Y \
@P82 = V.L.Corner_Start_Z \
@P83 = V.L.Corner_End_X \
@P84 = V.L.Corner_End_Y \
@P85 = V.L.Corner_End_Z \
]
; Roughing + Finishing Direction 1
V.L.MachineDirection = 1
V.L.MachiningMode = 3
L CYCLE [NAME=SysMillFace.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P15 = V.L.FinishingOffsetZ \
@P30 = V.L.MachineDirection \
@P31 = V.L.MachiningMode \
@P80 = V.L.Corner_Start_X \
@P81 = V.L.Corner_Start_Y \
@P82 = V.L.Corner_Start_Z \
@P83 = V.L.Corner_End_X \
@P84 = V.L.Corner_End_Y \
@P85 = V.L.Corner_End_Z \
]
; Roughing Direction 1 Rotated 180 degrees
V.L.MachineDirection = 1
V.L.MachiningMode = 1
L CYCLE [NAME=SysMillFace.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P15 = V.L.FinishingOffsetZ \
@P30 = V.L.MachineDirection \
@P31 = V.L.MachiningMode \
@P42 = V.L.Rotation \
@P80 = V.L.Corner_Start_X \
@P81 = V.L.Corner_Start_Y \
@P82 = V.L.Corner_Start_Z \
@P83 = V.L.Corner_End_X \
@P84 = V.L.Corner_End_Y \
@P85 = V.L.Corner_End_Z \
]
; Roughing Direction 1 Centre Lane
V.L.MachineDirection = 1
V.L.MachiningMode = 1
L CYCLE [NAME=SysMillFace.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P15 = V.L.FinishingOffsetZ \
@P30 = V.L.MachineDirection \
@P31 = V.L.MachiningMode \
@P80 = V.L.Corner_Start_X \
@P81 = V.L.Corner_Start_Y \
@P82 = V.L.Corner_Start_Z \
@P83 = V.L.Corner_End_X \
@P84 = V.L.Corner_End_Y \
@P85 = V.L.Corner_End_Z \
@P86 = V.L.CenterPlane \
]
; Roughing Direction 1 Centre Lane + oscillating depth feed
V.L.MachineDirection = 1
V.L.MachiningMode = 1
L CYCLE [NAME=SysMillFace.ecy \
@P1 = V.L.SurfacePositionZ \
@P2 = V.L.RetractionPlane \
@P3 = V.L.SafetyClearance \
@P5 = V.L.MaxIncrementZ \
@P6 = V.L.MaxIncrementXY \
@P15 = V.L.FinishingOffsetZ \
@P30 = V.L.MachineDirection \
@P31 = V.L.MachiningMode \
@P32 = V.L.PlungingModeZ \
@P80 = V.L.Corner_Start_X \
@P81 = V.L.Corner_Start_Y \
@P82 = V.L.Corner_Start_Z \
@P83 = V.L.Corner_End_X \
@P84 = V.L.Corner_End_Y \
@P85 = V.L.Corner_End_Z \
@P86 = V.L.CenterPlane \
]
G260
M30