584,830 active members*
5,841 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Mach Software (ArtSoft software) > Mach Wizards, Macros, & Addons > Has anyone had macro programs exit "early" allowing the next NC cmd to run?
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    629

    Has anyone had macro programs exit "early" allowing the next NC cmd to run?

    Good afternoon all,

    I am working with: MACH 3, Macros, Ethernet Smooth Stepper, and Windows 10.

    I am developing some rather complex macros used in a tool changer system. Within any of the macros, there will be fixture offset changes (from G54 to G50 Pxxx) for example, motions on any of the axes, etc. I have tested this system for a couple hundred times and on two occasions the machine "took off" in an unexpected motion. While "****" was happening, I was not able to fully comprehend why it was doing what it was before hitting RESET. Of course, when you do that, the message is cleared, fixture offsets are reset back to G54 etc.

    In both cases, the closest I can determine is the macro that was running, terminated early which then allowed the NC program to proceed to the next statement and execute it. In my case, that is running another Macro. I have not been able to find a way for the macro to terminate early for this to happen. This is determined by the state of all the devices, meaning several things in the macro executed, but not all of them.

    As mentioned, this will run perfectly the majority of the time so it "ALMOST" seems random. But frankly, can't think of anything that is random that can cause an M-Code macro to terminate early.

    Any ideas, suggestions, Oh Yeahs, I had something similars????

    Thanks in advance!

    Chris D

  2. #2
    Join Date
    Mar 2003
    Posts
    35538

    Re: Has anyone had macro programs exit "early" allowing the next NC cmd to run?

    If a macro does not finish in Mach3, I highly recommend restarting Mach3 before doing anything else. Otherwise, bad things can happen.
    Unfortunately, there are a lot of little bugs in Mach3 that only show up 0.5% of the time.

    Now, I've never seen a macro terminate early for no reason, so it may be an issue with your macro.
    The only thing you can really do is test, test, and test some more until it's 100% robust.
    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)

Similar Threads

  1. Replies: 7
    Last Post: 10-03-2018, 07:46 PM
  2. "Upgrade" for Early Torus Pro Owners
    By SCzEngrgGroup in forum Novakon
    Replies: 3
    Last Post: 09-09-2016, 12:17 PM
  3. Replies: 3
    Last Post: 10-07-2013, 01:43 PM
  4. X Axis "Goes Off Pattern", "Awry", "Skewed", "Travels"
    By DaDaDaddio in forum Laser Engraving / Cutting Machine General Topics
    Replies: 1
    Last Post: 05-06-2013, 09:59 AM

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
  •