The program shape to be programmed in this case is shown in the diagram below. Assuming the coordinate system origin is set at the bottom-left corner of the workpiece surface, and programming is done based on the tool center, with a depth of cut of 2mm. The milling trajectory for this contour is created using the G01 linear interpolation command. The key points in G01 linear programming are to ensure that the tool reaches the starting point of the straight line segment, including positioning the point and setting the cutting depth. Then, the tool moves along the contour for cutting. After the machining is completed, the tool is lifted back to the safe plane and retracted to the starting point.
G90G54G40G1Z100F1000M03S3000
G0X0Y0
X40Y30
Z3
G1Z-2F50
G1Y90F1000
X50Y100
X70
Y120
X100
Y100
X140
X160Y80
X170Y40
X160Y30
X110
X100Y50
X60
Y30
X40
G1Z5F200
G1Z100F1000
M5
Comments
Post a Comment