Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: MechanoMan on August 12, 2011, 06:57:20 PM

Title: Any fix for glitch stalls?
Post by: MechanoMan 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.
Title: Re: Any fix for glitch stalls?
Post by: Hood 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

Title: Re: Any fix for glitch stalls?
Post by: ger21 on August 12, 2011, 10:02:51 PM
Have you ruled out resonance?
Title: Re: Any fix for glitch stalls?
Post by: MechanoMan on August 12, 2011, 10:07:46 PM
Yeah, this isn't resonance. 
Title: Re: Any fix for glitch stalls?
Post by: BR549 on August 12, 2011, 10:14:45 PM
DO you have a sample program that will show the problem in action?

(;-) TP