Hello Guest it is January 19, 2022, 12:37:22 PM

Author Topic: subroutine  (Read 4844 times)

0 Members and 1 Guest are viewing this topic.

subroutine
« 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

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: subroutine
« Reply #1 on: September 08, 2006, 05:22:57 PM »
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
Re: subroutine
« Reply #2 on: September 08, 2006, 06:52:23 PM »
Hi Chip
I corrected the file and it runs fine now, thank you.
Vladimir