Hello Guest it is April 25, 2024, 07:57:52 PM

Author Topic: gcode subprograms  (Read 937 times)

0 Members and 1 Guest are viewing this topic.

Offline moxy

*
  •  34 34
    • View Profile
gcode subprograms
« 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

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: gcode subprograms
« Reply #1 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
%
Without engineers the world stops
Re: gcode subprograms
« Reply #2 on: April 03, 2023, 05:25:54 PM »
hi moxy
please explain more.
steping means single block mode? hangs?  :-\