terjeio / grblHAL

This repo has moved to a new home https://github.com/grblHAL
231 stars 90 forks source link

Feed Hold button working principle #272

Closed krupis closed 3 years ago

krupis commented 3 years ago

Hello. I would to ask regarding the feed hold button and how it supposed to work properly. I have wired the button in NC configuration and it is active HIGH.

When the button is pressed during the cnc operation, the machine motors does not stop immediately. Sometimes it even takes 1 or 2 seconds to stop. Can someone explain me what is happening? Does it have to finish a g code line before stopping or what? Is that the expected behaviour?

If I want to stop the machine immediately , the only option is to trigger an emergency button (soft reset)?

phil-barrett commented 3 years ago

Hold won't stop immediately, deceleration is needed. How long it takes depends on your acceleration settings and how fast it was moving when you hit Hold. It will stop in the middle of a GCode block - you can test that pretty easily.

Edit - yes, immediate stop is possible with the Reset input.