This is the first time I've tried, so may well of made a mistake. Have attached the problematic etch file, in case it might help.Return Called with no Sub in effect ... looping
Mach3 Error - Looping
Mach3 Error - Looping
On v0.8.7 have created an etch file using the probe log. All seems fine, but Mach3 hangs trying to load the toolpath and gives the error:
- Attachments
-
- AL_ParallePortOptoConnector.zip
- (142.07 KiB) Downloaded 575 times
Re: Mach3 Error - Looping
A few Mach3 users have reported similar. This is a problem with sub procedures on some Mach3 instances.
The subs were only added as an aid to resuming but if possible, remove the subs from the gcode file and the references to them at the start of the file. Mach3 should then stop complaining.
The subs were only added as an aid to resuming but if possible, remove the subs from the gcode file and the references to them at the start of the file. Mach3 should then stop complaining.
http://www.autoleveller.co.uk/. Software to probe and adjust a GCode file for PCB's or any probe-able surface.
http://www.autoleveller.co.uk/cnc-probe-guide/. A short guide to setting up the probe.
-James
http://www.autoleveller.co.uk/cnc-probe-guide/. A short guide to setting up the probe.
-James
Re: Mach3 Error - Looping
Hello All from Edmonton, Canadadaedelus wrote:A few Mach3 users have reported similar. This is a problem with sub procedures on some Mach3 instances.
The subs were only added as an aid to resuming but if possible, remove the subs from the gcode file and the references to them at the start of the file. Mach3 should then stop complaining.
Just joined, great software. To fix the above problem, you just nee to add an M30 command at the end of the main program before the subs...
Example:
G0 X0Y0
M5
(I added the below two lines)
M9 (to turn off my spindle)
M30 (to fix the looping problem)
(This is the sub-procedure used for resetting the Z position)
(Refer to the log table above if it exists to reset Z to any of the log index's)
(Example usage...)
(#500 = 12.123)
(#501 = 45.567)
(#502 = -0.0123)
(M98 P100)
O100 sub
Re: Mach3 Error - Looping
Yes, Mach3 loads the gcode with the subs removed, thanks.A few Mach3 users have reported similar. This is a problem with sub procedures on some Mach3 instances.
The subs were only added as an aid to resuming but if possible, remove the subs from the gcode file and the references to them at the start of the file. Mach3 should then stop complaining.
The problematic gcode has 16000 lines, however when I try with a simple toolpath (170 lines) Mach3 loads the gcode, with subs, no problem. Doesn't that indicate that the issue is a bit more complicated than Mach3 refusing to load sub procedures?
Re: Mach3 Error - Looping
Thanks, that fixed it. Also explains why the simple gcode worked - that already had an M30. Maybe Autoleveller could just append M30 to the GCode if it is missing?Just joined, great software. To fix the above problem, you just nee to add an M30 command at the end of the main program before the subs...
Re: Mach3 Error - Looping
Good workaround, thanks.
As you say, AL should append M30 if it is missing ideally, will look into it.
In the meantime, users should add M30 manually if you get this Mach3 looping error.
thanks again for this.
As you say, AL should append M30 if it is missing ideally, will look into it.
In the meantime, users should add M30 manually if you get this Mach3 looping error.
thanks again for this.
http://www.autoleveller.co.uk/. Software to probe and adjust a GCode file for PCB's or any probe-able surface.
http://www.autoleveller.co.uk/cnc-probe-guide/. A short guide to setting up the probe.
-James
http://www.autoleveller.co.uk/cnc-probe-guide/. A short guide to setting up the probe.
-James