I ended up making a Batman design. We had to draw a to-scale version of the design and mark coordinates of points on the design such as the beginning and centre of the arcs and the start and end points of straight lines. We then programmed all of these points using G code to tell the CNC mill how to cut it out.
Here is an example of G code. The code was for a CNC lathe for a different assignment I did but it is similar to what I had to do for the Batman tag.
Code:
N050 G40 G80 G71 G90 G95 G98; (CANCEL COMPENSATION/PROGRAM SETUP)
N060 G00 G28 U0 W0; (RETURN TO REFERNCE POINT)
N070 T0202; (TOOL CHANGE TURNING TOOL)
N070 G96 S550 M04;
N080 X26.0 Z0.1;
N090 G73 U1 R1; (CONTOUR TURNING CYCLE)
N100 G73 P110 Q240 U0.25 W0.13 F0.1;
N110 G01 X4.9 Z0.0 F0.1;
N120 X8.5 Z0.0 C1.8; (1ST CHAMFER)
N130 Z-3.5;
N140 X12.0 C1.8; (2ND CHAMFER)
N150 Z-25.5 C1.5; (3RD CHAMFER)
N160 X9.0;
N170 Z-33.0 R2.5; (1ST CIRCULAR CUT)
N180 X15.0;
N190 X20.0 Z-38.0; (4TH CHAMFER)
N200 Z-40.0;
N210 G02 X15.0 Z-50.0 R20 F0.1; (2ND CIRCULAR CUT)
N220 G01 Z-55.0 F0.1;
N230 X26.0; (FINISH TURNING CYCLE)
N240 G00 G28 U0 W0; (RETURN TO REFERENCE POINT)
N250 T0404; (TOOL CHANGE THREADING TOOL)
N260 G96 S550 M04;
N270 G00 Z-5.3;
N280 X15.0;
N300 P100060 Q0100 R0.025; (THREADING CyCLE)
N310 X15.0 Z-24.0 P1624 Q0010 F1.5;
N320 G00 G28 U0 W0; (RETURN TO REFERENCE POINT)
N330 M05;
N340 M30; (END)
The code was for the object above.
No comments:
Post a Comment