587,011 active members*
3,837 visitors online*
Register for free
Login
Results 1 to 18 of 18
  1. #1
    Join Date
    Jan 2008
    Posts
    853

    The Ghost in the Machine

    This morning, 2 minutes after finishing a simple job with my Mach3/G540 system, the machine came back to life and started to rerun the code, apparently on its own. It seemed to be triggered by my switching off the dust vacuum shopvac (at the shopvac), but it started the router, waited for the delay, then moved the tool over to the starting point. It was about to go down when I killed it from the keyboard.

    The shopvac was plugged into a separate circuit in the house, and the G540 controls the router power. I don't understand how this is even possible, since (I think) only keyboard controls can start a cycle. Am I wrong?

    I would be very appreciative of any insight that you may have. It scared me silly, to the point that I will start closing the gcode files as soon as the cuts are finished.
    Cheers!
    Paul Rowntree
    Vectric Gadgets, WarpDriver, StandingWave and Topo available at PaulRowntree.weebly.com

  2. #2
    Join Date
    Nov 2006
    Posts
    1036
    Is it possible that you combined two cut files into one?

  3. #3
    Join Date
    Jan 2008
    Posts
    853
    No, the file is as expected, and it ended normally. In fact I had even changed the bit for the next operation (yikes!) on the next file before it did the resurrection thing.
    Paul Rowntree
    Vectric Gadgets, WarpDriver, StandingWave and Topo available at PaulRowntree.weebly.com

  4. #4
    Join Date
    Dec 2003
    Posts
    24223
    This is one reason that I would never rely on software disable for a spindle when changing tool.
    Sounds like spurious noise getting in to the PC, try taking your P.P. commons to an external Earth ground point.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  5. #5
    Join Date
    Jan 2008
    Posts
    853
    The grounding idea sounds like a good precaution in any event ... I have a faucet on the other side of the garage. Is there any danger of creating ground loops with the nominal ground of the 120VAC plug?

    Still, I don't understand how noise could trigger such a specific software event.
    Paul Rowntree
    Vectric Gadgets, WarpDriver, StandingWave and Topo available at PaulRowntree.weebly.com

  6. #6
    Join Date
    Aug 2011
    Posts
    999
    Huh, scary. Maybe another reason why I like the VFD/spindle better than a router. Just does not start that violently. But I am not familiar with Mach to have an opinion why (other that it relies on a Microsoft OS)

  7. #7
    Join Date
    Jan 2012
    Posts
    0
    Quote Originally Posted by PaulRowntree View Post
    Still, I don't understand how noise could trigger such a specific software event.
    Had to appear to the OS (and/or Mach) as a keystroke or mouse event. From your description, it wouldn't surprise me if the cursor was still over the 'Cycle Start' button after the job ended.

  8. #8
    Join Date
    Jun 2007
    Posts
    3734
    Do you have an external cycle start button?
    Make sure it has LONG debounce time so transients can't emulate a button push.
    In General Logic Configuration, top right hand corner, make it at least 1000, ie. 40mS
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  9. #9
    Join Date
    Jan 2008
    Posts
    853
    Quote Originally Posted by neilw20 View Post
    Do you have an external cycle start button?
    Make sure it has LONG debounce time so transients can't emulate a button push.
    In General Logic Configuration, top right hand corner, make it at least 1000, ie. 40mS
    I don't even see 'external cycle start' as a possible input, and the only input active is the estop. All of the trigger inputs are set to -1. Is there anywhere else I can look?

    There are two plugins that I don't think I should need, yet are checked : one is a video and the other is SWF
    The debounce was set to 0, so I will change that immediately. Thanks for the tip!

    Lee : that is a good point, and I don't recall now. A spurious mouse click would set it in motion if the mouse was in the wrong spot. Thanks!
    Paul Rowntree
    Vectric Gadgets, WarpDriver, StandingWave and Topo available at PaulRowntree.weebly.com

  10. #10
    Join Date
    Jun 2007
    Posts
    3734
    Oh, another thing. ENSURE sticky keys are turned off.
    If you hold down the shift key for 5 seconds and anything changes, then sticky keys are on.
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  11. #11
    Join Date
    May 2012
    Posts
    231
    Even if you have two different outlets in the same room you could still to be on the same leg of power. You should have 220v coming into your house. And that splits to two legs of 110v. So with that you could get an spike through the power line. Could have trigger a run. Just like a funny glitch that happens that stops programs from running.

  12. #12
    I had a similar situation at the beginning. Every time my furnace or air compressor kicked in the spindle would slow down just a bit and the programed position while running would change. I broke a few bits before I decided to run a separate circuit for the control box and the PC, then I put an industrial surge protector on the line. Have not happened again since. It has been over about a year.

  13. #13
    Join Date
    Mar 2003
    Posts
    35538
    You said you had changed the tool. Did you run an auto zero or anything else?
    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)

  14. #14
    Join Date
    Jan 2008
    Posts
    853
    Tool was changed, but no zeroing. I do it manually with a PCB plate, but this had not been done yet. The second toolpath file had not yet been loaded.

    I am leaning towards the mouse picking up a false left-button click while the pointer was still over the Start Cycle control.

    Would there be any risk of losing position if the Mach3 front panel Reset was activated during tool changes? I am 1/2 way to finishing the Hall proximity home switches, so I will soon be able to power down much of the machine when my hands are on it. The router is the obvious issue, but this chain drive is scary fast and I don't want to be too close if it wanted to launch towards the wall.

    Cheers!
    Paul Rowntree
    Vectric Gadgets, WarpDriver, StandingWave and Topo available at PaulRowntree.weebly.com

  15. #15
    Join Date
    Mar 2003
    Posts
    35538
    Would there be any risk of losing position if the Mach3 front panel Reset was activated during tool changes?
    Yes, there is that possibility.

    If the cursor was over the start button, I'd agree that that may be the most likely scenario.
    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)

  16. #16
    Join Date
    Jun 2007
    Posts
    3734
    I've had a problem, that caught me out till I figured what it was.
    I have a touch screen, and fine splashes of coolant were giving random hits on the screen.
    I now have a clear perspex cover i put over the screen when the drips are flying.

    edit:
    RESET will probably lose position if you are using a charge pump to kill power to the steppers.
    It is the microstepping in the driver that will lose sync.
    I have never really checked for spurious output when in RESET state, and this will depend on whether active high/low state of stepper clock drive pulses occur.
    I just never use RESET or ESTOP.
    ESTOP is exactly that, and loss of position is very likely.
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  17. #17
    Join Date
    Oct 2005
    Posts
    2392
    I'm not sure it was a fault with the mouse. The micro inside the mouse usually does a good job of debouncing button input so it should not detect a button press on local electrical noise. And the comms from mouse->PC are USB coded so that is unlikely to give a mouse button event on noise.

    I think it was likely the PC at fault, a power spike through the mains may have made it through the PC's PSU and caused the CPU to glitch, often that will cause the PC to hang, or to resume some previous state or task.

    That symptom can also mean the PSU or motherboard capacitors in your PC are starting to fail.

    If you don't already have one, I would get a plug-in powerboard with surge protect/filter built in and use just the PC plugged into that so it gets cleaner power.

    To be extra safe you could add another mains filter for the shopvac alone, just be sure it is rated for a high powered machine. And it's always a good idea to run the PC from a different circuit or power point to high powered motors like shopvacs.

  18. #18
    Join Date
    Jan 2008
    Posts
    853
    Quote Originally Posted by RomanLini View Post
    I'm not sure it was a fault with the mouse. The micro inside the mouse usually does a good job of debouncing button input so it should not detect a button press on local electrical noise. And the comms from mouse->PC are USB coded so that is unlikely to give a mouse button event on noise.

    I think it was likely the PC at fault, a power spike through the mains may have made it through the PC's PSU and caused the CPU to glitch, often that will cause the PC to hang, or to resume some previous state or task.

    That symptom can also mean the PSU or motherboard capacitors in your PC are starting to fail.

    If you don't already have one, I would get a plug-in powerboard with surge protect/filter built in and use just the PC plugged into that so it gets cleaner power.

    To be extra safe you could add another mains filter for the shopvac alone, just be sure it is rated for a high powered machine. And it's always a good idea to run the PC from a different circuit or power point to high powered motors like shopvacs.
    These are all good suggestions, and I will take a look for 'bulging caps' on the mother board.

    Thanks!
    Paul Rowntree
    Vectric Gadgets, WarpDriver, StandingWave and Topo available at PaulRowntree.weebly.com

Similar Threads

  1. Okuma LB15 Ghost in the Machine
    By ghyman in forum Okuma
    Replies: 11
    Last Post: 11-14-2011, 07:27 PM
  2. Ghost image
    By Dubliner in forum Laser Engraving / Cutting Machine General Topics
    Replies: 5
    Last Post: 06-07-2011, 04:56 AM
  3. Ghost in Machine... K2 3925 problems.
    By mtnbikr100 in forum K2CNC
    Replies: 4
    Last Post: 12-11-2010, 06:56 PM
  4. Ghost HD backup
    By OLD_Newbie in forum CNC Machine Related Electronics
    Replies: 6
    Last Post: 06-09-2007, 01:28 PM
  5. ghost is here
    By nerginer in forum Waterjet General Topics
    Replies: 1
    Last Post: 02-18-2007, 06:19 PM

Posting Permissions

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