my net house


Gcode: Write it and make real things

While diving into CAD things you have to make yourself adjusted with various things. Various things are like understanding some/small/important technical terms.


Easy-Peasy first: If a person have to tell the machine which makes computer aided design, Person will tell him/her in the form of G-Programming or Gcode.

That’s it buddy!

Lets have more fun: Numerical control is automation of machine tools. Machines those are operated by computer commands to produce designs in real world. This is also called CNC(Computer numerical control). Gcode is also called NC/CNC.

IMHO best and fastest way of learning any technology is to have a look in it’s code:

<Example of G-code>

G20 G40 G90
G0 Z0.250
G0 X-0.305 Y-0.127 Z0.250
G1 X-0.305 Y-0.127 Z-0.010 F50
G3 X0.304 Y-0.127 Z-0.010 I0.305 J0.115 F50
G2 X-0.305 Y-0.127 Z-0.010 I-0.305 J0.172

<Example of G-code>

My understandings:

1. Ah! it starts with G.

2. First line (G20 G40 G90) It is telling the machine point the cutting/drilling/chopping/slicing/rubbing/polishing tool on such location, But only in the air. No touching with material.

3.G 91.1 Again a pretty nice moment. 😉 (Not able to understand right now)

4. (G0 Z0.250) Move 0.250 on Z-axis

5. G0 X-0.305 Y-0.127 Z0.250: Same thing as  last line, Move to X and Y on given parameters. (mm)

6. (G1 X-0.305 Y-0.127 Z-0.010 F50) : G1 is also for moment but here we have one more parameter F50 which means extruding 50 mm of the material.

Same as we have many different moments:

G2- Clockwise Arc

G3- Counter-clockwise Arc

And so on. One thing we have to keep in mind is G(X)[Where X has int value] is for the moment of machine. If there will be no X and Y coordinates that means Machine will only move in the air.(I could be wrong here you can make me correct in the comments)

Whole concept of writing this guide is having to explore more about CAD software(s) and Knowing some technical terms that how these design interact with real world.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: