Follow

GCODE - How to format G CODE

Kevin Chen

There are several different ways you can set up your post so that the G Code will post out the way you want it to.  Below are a few different ways you can have it display along with how to set it up.  This example is for a regular drill.

 

Example 1 (N values with no leading or trailing 0's)

O0001
N1 G17 G20 G40 G80
N2 (#9 JOBBER DRILL)
N3 T53 M06
N4 S1500 M03
N5 G54
N6 M08
N7 G90 G00 X0 Y0
N8 G43 Z.1 H53
N9 G81 G99 R.1 Z-1.1088 F8.
N10 G80 Z1. M09
N11 G91 G28 Z0
N12 G28 X0 Y0
N13 M30

 

Example 2 (N values with up to 3 leading 0's)

O0001
N0001 G17 G20 G40 G80
N0002 (#9 JOBBER DRILL)
N0003 T53 M06
N0004 S1500 M03
N0005 G54
N0006 M08
N0007 G90 G00 X0 Y0
N0008 G43 Z.1 H53
N0009 G81 G99 R.1 Z-1.1088 F8.
N0010 G80 Z1. M09
N0011 G91 G28 Z0
N0012 G28 X0 Y0
N0013 M30

 

Example 3 (N values with up to 2 leading 0's)

O0001
N001 G17 G20 G40 G80
N002 (#9 JOBBER DRILL)
N003 T53 M06
N004 S1500 M03
N005 G54
N006 M08
N007 G90 G00 X0 Y0
N008 G43 Z.1 H53
N009 G81 G99 R.1 Z-1.1088 F8.
N010 G80 Z1. M09
N011 G91 G28 Z0
N012 G28 X0 Y0
N013 M30

 

Example 4 (No N Values)

O0001
G17 G20 G40 G80
(#9 JOBBER DRILL)
T53 M06
S1500 M03
G54
M08
G90 G00 X0 Y0
G43 Z.1 H53
G81 G99 R.1 Z-1.1088 F8.
G80 Z1. M09
G91 G28 Z0
G28 X0 Y0
M30

 

The different ways to display is are set up in the .LIB file, which you do not need to change.

Display_Definition.png

Select = 0, 1 , and 2 are the three different selections.  

You can choose which value you want to use inside the .SRC file.

Display_value.png

 

Example 1 is where we selected 0.

Example 2 is where we selected 1.

Example 3 is where we selected 2.

Example 4 is where we selected 3.  Since 3 is not defined in the .LIB file, it does not display any N Values.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments