Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: IzzyZee on March 15, 2022, 12:11:25 PM

Title: New to everything: lines after G04 does not load into Mach3
Post by: IzzyZee on March 15, 2022, 12:11:25 PM
Hello! I'm using the Mach3 demo to learn how to do G-codes.

I loaded 3 lines of G codes:
G0 X10 Y10
G4 P1
G0 X10

However, only the first 2 lines were successfully loaded. Why is the third line omitted?

Any help is appreciated, thank you!
  - Izzy
Title: Re: New to everything: lines after G04 does not load into Mach3
Post by: Tweakie.CNC on March 15, 2022, 05:13:14 PM
It's perhaps odd but you need a CR after the last line of Gcode.
A common method to ensure this is to place a % symbol as the last line of the Gcode file.

Tweakie.
Title: Re: New to everything: lines after G04 does not load into Mach3
Post by: IzzyZee on March 17, 2022, 04:17:17 PM
Ah, this helps. Thanks a lot!