585,763 active members*
4,373 visitors online*
Register for free
Login
Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2014
    Posts
    7

    Mach3 software question

    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

  2. #2
    Join Date
    Feb 2007
    Posts
    4553

    Re: Mach3 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.

  3. #3
    Join Date
    Apr 2014
    Posts
    7

    Re: Mach3 software question

    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

  4. #4
    Join Date
    Mar 2003
    Posts
    35538

    Re: Mach3 software question

    There's an option to disable M codes during file loading in General Config.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  5. #5
    Join Date
    Apr 2014
    Posts
    7

    Re: Mach3 software question

    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

  6. #6
    Join Date
    Feb 2007
    Posts
    4553

    Post Re: Mach3 software question

    Check the Ignore M Codes option:

    Jeff...
    Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.

  7. #7
    Join Date
    Apr 2014
    Posts
    7

    Re: Mach3 software question

    Thanks for Replying Jeff
    I just found out about that option. Worked perfectly
    thanks again

  8. #8
    Join Date
    Feb 2007
    Posts
    4553

    Re: Mach3 software question

    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.

  9. #9
    Join Date
    Apr 2014
    Posts
    7

    Re: Mach3 software question

    yes I did do that, he is great help!!!!

Similar Threads

  1. HELP with MACH3 software
    By PaulGB in forum Avid CNC
    Replies: 8
    Last Post: 04-28-2016, 05:05 PM
  2. new to Mach3 but not cad/cam software
    By FUBAR62172 in forum Mach Mill
    Replies: 3
    Last Post: 02-13-2016, 03:01 AM
  3. asking about MACH3 software
    By xzxglang in forum Mach Wizards, Macros, & Addons
    Replies: 3
    Last Post: 05-01-2015, 10:24 PM
  4. Software / Hardware question Mach3
    By cncnewbie68 in forum Mach Software (ArtSoft software)
    Replies: 4
    Last Post: 04-29-2012, 05:37 PM
  5. Mach3 demo software question
    By LJG in forum Automation Technology Products
    Replies: 2
    Last Post: 11-26-2009, 02:58 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •