Machsupport Forum
G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: clachan on September 08, 2006, 04:55:40 PM
-
Trying to lern subroutine, when upload this file to Mach3, M99 is not showing and program stops running without calling subroutine. Can't understand what is wrong.
F1000
g90
G00 x20 y20
g00 x0 y0
m98 p1234 l50
m30
o1234
g01 x20
y20
x-20
y-20
z-20
x20
y20
x-20
y-20
z20
x0
y0
z0
m99
-
Hi, clachan
Your missing a Enter after your M99 in your code or you can use a % after the last line.
F1000
g90
G00 x20 y20
g00 x0 y0
m98 p1234 l50
m30
o1234
g01 x20
y20
x-20
y-20
z-20
x20
y20
x-20
y-20
z20
x0
y0
z0
m99
%
It's been repeating for me now, It's easy to leave a Enter/Blank line Below your M99 out of your Gcode.
Hope this Helps, Chip
-
Hi Chip
I corrected the file and it runs fine now, thank you.
Vladimir