Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: moxy on March 31, 2023, 06:06:23 PM

Title: gcode subprograms
Post by: moxy on March 31, 2023, 06:06:23 PM
Hi, I am using mach3 to control a 3d scanner. Just the a axis for the turntable and the Z axis for the camera height. when stepping through the gcode block by block it works fine, reads the G98 sub number and skips to the first line of that sub. When I run the code without stepping it reads the sub number and steps to it but just hangs there? Any help gratefully received.
Many thanks
Les
Title: Re: gcode subprograms
Post by: Graham Waterworth on March 31, 2023, 06:48:04 PM
Make sure you have a % at the start and end of the code e.g.

%
O1234
X5 Y5
Etc...
M98 P 1235
...
M30

O1235
G01 X1 Y 1
...
M99
%
Title: Re: gcode subprograms
Post by: mjzrpr on April 03, 2023, 05:25:54 PM
hi moxy
please explain more.
steping means single block mode? hangs?  :-\