SKLCNC55,
Are you following the thread in the Mach Support Forum?
Plugin to run script on Shutdown
Jeff...
Hello
I can't find any info on my problem, so maybe someone run into this before
I have made a small script that runs at the end of a gcode program that will shut down Mach3 and then shutdown the PC running the machine, and I put this script in the milling macros folder under M697.
My problem is that when mach3 loads a gcode program with my M697 code at the end, it checks for errors and then activates the script in M697 which of course shut down the PC before the gcode has run.
Is there some way to stop Mach3 from executing the M697 script at the start so the gcode program can run first
Similar Threads:
- HELP with MACH3 software
- Need Help!- new to Mach3 but not cad/cam software
- Need Help!- asking about MACH3 software
- Software / Hardware question Mach3
- New Machine Build- Mach3 demo software question
SKLCNC55,
Are you following the thread in the Mach Support Forum?
Plugin to run script on Shutdown
Jeff...
Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.
Hello Jeff
Thanks for the very quick reply.
No I didn't see that one, unfortunately my problem is not with the scripting part, it is actually with the Mach3 software.
When I load a gcode with an Mcode embedded at the end to activate the script, this is where my problem is. What is happening is when you first load a gcode into Mach3 it does a quick check to see if there are any errors in the gcode. When it does this check, it sees my Mcode script (shut down) and immediately activates the script and therefore my computer shuts down before it does any cutting.
I am looking to either stop Mach3 from doing its initial check or stop it from executing the scrip before the gcode program has been run
Cheers
There's an option to disable M codes during file loading in General Config.
Gerry
UCCNC 2017 Screenset
[URL]http://www.thecncwoodworker.com/2017.html[/URL]
Mach3 2010 Screenset
[URL]http://www.thecncwoodworker.com/2010.html[/URL]
JointCAM - CNC Dovetails & Box Joints
[URL]http://www.g-forcecnc.com/jointcam.html[/URL]
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Hi Gerry
I am running something right now, but will look at that right after.
So simple, but amazingly not easy to find it.
Thank you so much
I can now save what little hair I have left.
Cheer
Steve
Check the Ignore M Codes option:
Jeff...
Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.
Thanks for Replying Jeff
I just found out about that option. Worked perfectly
thanks again
Thanks should go to Gerry, there is a reason why Gerry is the number one contributor here at the CNCZone.
Jeff...
Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.
yes I did do that, he is great help!!!!