Hello Guest it is December 21, 2024, 11:56:32 AM

Author Topic: Any fix for glitch stalls?  (Read 4412 times)

0 Members and 1 Guest are viewing this topic.

Any fix for glitch stalls?
« on: August 12, 2011, 06:57:20 PM »
I never did come up with a clean way to prevent breaks in Mach3's pulsing engine which force speed-independent stalls during execution.

I've seen this far too often- the code glitches at some random point, well, not random, it always does it at exactly the same point every time.  Making superficial changes in the code make it go away or appear elsewhere.  It seems to be related to the use of math, subroutines, or citing # variables; I'm really not sure.  I write a lot of this sort of code and this sort of thing shows up, but it's not tied to any one line.

Please don't get into "you need to set acceleration or speed lower" or "you need to oil your mill".  These are absolutely not the case and ruled out long ago; it's an inherent bug in Mach3's pulsing engine.  The speed and acceleration can be set absurdly low and will still stall at exactly the same spot in the code.  You can physically move the axes and it'll stop on the same line of the code, not a physical spot on the axis.

It will do the same thing whether you use the parallel port or SmoothStepper.

I updated to R3.043.022, was surprised to see it's still there.  Stalls in the same place.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Any fix for glitch stalls?
« Reply #1 on: August 12, 2011, 07:15:52 PM »
it's an inherent bug in Mach3's pulsing engine.

It is definitely not a bug in the pulsing engine as you say

It will do the same thing whether you use the parallel port or SmoothStepper.

The Smoothstepper does not use the Mach Driver (Pulsing Engine)

It could however be what you say here
It seems to be related to the use of math, subroutines, or citing # variables
Best bet would be to email Andrew with code, xml and details of exactly what happens and  where. If Andrew can get it doing the same  then likely Brian will find the problem.  http://www.machsupport.com/forum/index.php?action=profile;u=26658

Hood

Offline ger21

*
  • *
  •  6,295 6,295
    • The CNC Woodworker
Re: Any fix for glitch stalls?
« Reply #2 on: August 12, 2011, 10:02:51 PM »
Have you ruled out resonance?
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Any fix for glitch stalls?
« Reply #3 on: August 12, 2011, 10:07:46 PM »
Yeah, this isn't resonance. 

Offline BR549

*
  •  6,965 6,965
Re: Any fix for glitch stalls?
« Reply #4 on: August 12, 2011, 10:14:45 PM »
DO you have a sample program that will show the problem in action?

(;-) TP