G and M codes

tommmmy03

Full Access Member
Joined
Feb 29, 2008
Messages
75
Reaction score
0
I taking a CNC class and having a hard time writing out the programs. My teacher gave us a take home test. It's a 4 1/4 inch alum block where you have to drill some holes, use cutter, and use circular interpelation (sp). Anyways if someone could help I will find a way to put the drawing up. Is there any one on here that can help me? oh btw, I have to turn it in tomorrow
 
Last edited:
sorry, tommy, it has been since highschool i wrote CNC programs.

What's the problem exactly?

Just try to write down all the steps you normally would do on a regular (manual) machine step by step, keeping in mind
min, max rpms, diameter of the tool, idle and operating speeds cooling ON/OFF, shit like that. That's how I did it.
 
we are not using a cad program. Just writing the code from a drawing then load it into the mill. Right now we are just learning the codes and the teacher had us doing all the math for tool comp and I and J instead of using R. I'm really having a hard time with this class. I've been a machinist for 28 yrs but never had to know g codes. All our machines were manual
 
Machines are dumb SOB's, you have to tell them everything step by step:D
G codes are predefined up to 99 so it knows what to do, M codes are informative mss to tell how to do it.

Can't find my old schoolbook right now but google it, you'll find some examples ... Good luck
 
this is the kind of code i do all the time.this is for a turret punch.:rock:

G92X72.Y50.
G90
G06A.063B0
M13
M560
X1.628Y13.066T222
X2.128Y12.2
X1.629Y8.566
X2.129Y7.7
X1.5Y3.675
Y2.675
X7.601Y6.336
Y7.336
M690
M500
G72X39.907Y14.607
G66I1.961J330.01P1.Q.25T236C150.
G72X21.178Y-17.794
G78I37.425J60.76K28.38P.25Q.6D.063C150.76
G72X21.178Y-17.794
G78I34.575J89.07K-28.23P-.25Q.6D.063C179.07
G72X21.178Y-22.294
G78I37.425J89.14K-28.38P.25Q.6D.063C179.14
G72X21.178Y-17.794
G78I37.425J90.76K28.47P.25Q.6D.063C.76
G72X21.178Y-22.294
G78I37.425J90.76K28.47P.25Q.6D.063C.76
G72X21.178Y-17.794
G78I34.575J90.83K28.33P-.25Q.6D.063C.83
G72X2.448Y14.607
G66I1.961J209.99P-1.Q-.25C30.
G72X.733Y9.117
G66I2.85J300.P-1.Q-.25D-.02C120.
G72X.733Y13.617
G66I2.85J300.P-1.Q-.25D-.02C120.
G72X.751Y9.127
G66I1.96J30.01P1.Q.25C30.
G72X1.Y4.6
G66I2.85J270.P-1.Q-.25D-.02C90.
G72X2.158Y11.149
G66I2.J30.P-1.Q-.25D-.02C30.
G72X2.158Y6.649
G66I2.J30.P-1.Q-.25D-.02C30.
G72X21.178Y-22.294
G78I34.575J119.17K-28.33P-.25Q.6D.063C29.17
G72X7.101Y5.411
G66I2.85J90.P1.Q.25D-.02C90.
G72X21.178Y-22.294
G78I34.575J89.07K-28.23P-.25Q.6D.063C179.07
G72X28.697Y8.261
G66I2.85J270.P1.Q.25D-.02C90.
G72X35.622Y5.411
G66I2.85J90.P-1.Q-.25D-.02C90.
G72X38.465Y7.649
G66I2.J330.P-1.Q-.25D-.02C150.
G72X38.465Y12.149
G66I2.J330.P-1.Q-.25D-.02C150.
G72X39.908Y10.107
G66I1.96J329.99P1.Q.25C150.
G72X40.197Y6.649
G66I2.85J60.P-1.Q-.25D-.02C60.
G72X40.197Y11.149
G66I2.85J60.P-1.Q-.25D-.02C60.
G72X41.144Y4.6
G66I2.85J270.P1.Q.25D-.02C90.
M501
G70Y3.552
T245
G72X35.602Y8.261
G66I6.635J180.P-4.Q-.25
G72X28.697Y8.261
G66I21.596J180.P-4.Q-.25D-.02
G72X7.101Y5.411
G66I21.596J0P-4.Q-.25D-.02
G72X28.967Y5.411
G66I6.635J0P-4.Q-.25
G72X41.144Y4.6
G66I20.072J180.P-4.Q-.25D-.02
G72X21.072Y4.6
G66I20.072J180.P-4.Q-.25D-.02
G72X1.Y1.75
G66I20.072J0P-4.Q-.25D-.02
G72X21.072Y1.75
G66I20.072J0P-4.Q-.25D-.02
M13
M692
G50

 

Latest posts

Support Us

Become A Supporting Member Today!

Click Here For Details

Back
Top