Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: LarryL on November 17, 2011, 01:09:32 PM

Title: Is it possible to call an external gcode file from within a gcode file?
Post by: LarryL on November 17, 2011, 01:09:32 PM
I am trying learn if it is possible to call an external Gcode file from within a Gcode file that is running.  What I am trying to do is be able to make a macro from a pattern repeating file that will call up the external pattern and repeat it the number of times entered into Gcode.

Regards,

Larry
Title: Re: Is it possible to call an external gcode file from within a gcode file?
Post by: BR549 on November 17, 2011, 08:15:04 PM
Yes it is called a SUB. You store the SUB in the SUB directory and call it with the M98 sub call in the Gcode program.

You can find more info in the Mach3 manual.

(;-) TP

Title: Re: Is it possible to call an external gcode file from within a gcode file?
Post by: LarryL on November 20, 2011, 08:26:19 AM
Great, Thanks

Larry