How to Work with a G-code

45 views Leave a comment

What commands to use when operative with a Endurance laser?

In sequence to make a contour picture for cast or cutting, we advise to ready a G-code in advance.

The scrupulously done G-code will concede we to select a optimal parameters for slicing or engraving.

There are 2 plug-ins that will concede we to ready a high-quality G-code from a Inkscape program:

  • Endurance Laser G-code
  • J Tech Photonic Laser tool

Both plug-ins and a Inkscape module are accessible on a Endurance website:

Some time ago we done a video demonstrating how to ready an picture for laser cast and slicing regulating Inkscape

In this essay I’d like to tell about a G-code and commands to be used.

The commands are devided into dual groups:
G – Preparatory (main) commands;
М – Auxiliary (technological) commands.

Parameters of these commands: 
X – Coordinate of a arena indicate along a X pivot [G0 X100 Y0 Z0]
Y – Coordinate of a arena indicate along a Y pivot [G0 X0 Y100 Z0]
Z – Coordinate of a arena indicate along a X pivot [G0 X0 Y0 Z100]
E – Coordinate of a cosmetic holder indicate [G1 E100 F100]
P – Command parameter [M300 S5000 P280]
S – Command parameter [G04 S15]
F – Command parameter, feed (speed) [G1 Y10 X10 F1000]
G – commands
G0 – Idle pass [G 0 X 10]
G1 – Coordinated transformation along a X Y Z E axes [G 1 X 10]
G4 – Pause in seconds [G4 S15]
G28 – Home authority – conduct parking [G28 Y0 X0 Z0]
G90 – Use of comprehensive coordinates [G90]
G91 – Use of relations coordinates [G91]
G92 – Setting of a benefaction given position [G92]


Additional list of commands (checked for GRBL 0.9i)

G-code  Name - description

G00 Fast positioning

G01 Linear interpolation

G02 Clockwise interpolation

G03 Counter clockwise interpolation

G04 Dwell

G10 Programmed information input

G17 XY aspect selection

G18 ZX aspect selection

G19 YZ aspect selection

G20 Programming in inches

G21 Programmimg in mm

G28 Home position lapse (zero)

G30 Seconary home lapse (ref pt)

G40 Tool radius improvement off

G43 Negative apparatus hight change compensation

G49 Tool length improvement compensation

G53 Device's coordinate system

G54-G59 Work coordinate systems (WCS)

G61 Correct stop, modal

G80 Cancel finished cycle

G90 Absolute programmimg

G90 Fixed cycle for roughing (Z-axis accent)

G91 Incremental programming

G92 The position register from 0 to a tip of a tool

G92 Threading cycle, elementary cycle

G94 Feed rate per minute

M00 Mandatory stop

M02 End of program

M03 Spindle on (clockwise rotation)

M04 Spindle off (counter clockwise rotation)

M05 Spindle (laser) stop

M08 Cooling system

M09 Cooling off

M30 End of module with lapse to a tip partial of a program


How to work with with a G-code for a Endurance MakeBlock XY engraver

G00 // positioning

G04 P0 // pause, check environment during 0.

M05 S0 // laser off

G90 G21 // step naming in mm.


G00 X5 Y5 // positioning along X and Y.

G04 P0 // pause, check environment during 0.

M03 S255 // laser branch on and max.power setting

G04 P0 // pause, check environment during 0.


G01 X50 Y10 F1500 // laser conduct change by 5 cm along X and by 1 cm along Y, speed environment during 1500

G04 P0 // pause, check environment during 0.

M05 S0 // laser branch off


G04 P0 // pause, check environment during 0.

M05 S0 // laser branch off

G00 // positioning


M02 // finish of a program

Useful links and materials about G-code

Instruction and picture credentials in G-code:

Ask me your question: +79162254302 (Whatsapp, Viber, Telegram)


Skype: George.fomitchev


Comment this news or article