Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: cnc-andy on August 18, 2018, 06:14:50 PM

Title: Machine continues to run after MPG stop
Post by: cnc-andy on August 18, 2018, 06:14:50 PM
Hello,
I have a handwheel connected via a pokeys56u, when I'm in CONT mode, the axis still moves with the set step.
I can turn my MPG faster than the axle can drive, if I stop turning it still runs "until" she has caught up all the steps.
Can this behavior be stopped?
I liked that the machine stopped immediately when I stop the handwheel.

For info:
I have the latest software from Pokeys.
For step output, I use the ESS, even with the latest software.
Mach4Hobby in the current version.

Greeting Andy
Title: Re: Machine continues to run after MPG stop
Post by: garyhlucas on August 18, 2018, 11:12:42 PM
The solution is simple. Cranking too fast gains you nothing, crank slower. Cranking fast you overflow the pulse input buffer and pulses are lost anyway. Now consider why it doesn’t stop when you stop. You see that you need to move over 0.020” so you turn the wheel 20 steps and stop. Without the buffer it would stop instantly but it  could stop short of the distance you wanted and you might spoil the part.
Title: Re: Machine continues to run after MPG stop
Post by: joeaverage on August 18, 2018, 11:21:03 PM
Hi,
I'm sorry I have to go with garylucas on this......its doing exactly what I expect it to do.

Quote
I can turn my MPG faster than the axle can drive, if I stop turning it still runs "until" she has caught up all the steps

I have a VistaCNC pendant and it behaves exactly the same. If I'm concerned about overrun I slow down.

Craig
Title: Re: Machine continues to run after MPG stop
Post by: cnc-andy on August 19, 2018, 05:49:32 PM
Hello,
I have found a solution for my problem. Is anyone interested for the solution? If so, I write this together, it is something lua code for it necessary.

Andy
Title: Re: Machine continues to run after MPG stop
Post by: Cbyrdtopper on August 20, 2018, 09:26:03 AM
Andy,
Go ahead and post your solution.
Title: Re: Machine continues to run after MPG stop
Post by: sparky3 on August 22, 2018, 09:50:53 PM
Yes please Post the code.
Wish mach4 had a velocity mode for the MPG

Thanks Robert
Title: Re: Machine continues to run after MPG stop
Post by: nick952 on September 08, 2018, 06:19:24 AM
You can improve this by altering the MPG Accel % and Velocity % under:- CONFIGURE - CONTROL (MACH) - MPGs (only if your setup assigns one of the listed MPG# to the Handwheel)

Nick