MaslowCNC / Firmware

Maslow Firmware
GNU General Public License v3.0
260 stars 136 forks source link

Report unhookedup axis as an error if told to move #378

Open thormj opened 6 years ago

thormj commented 6 years ago

It seems like I keep forgetting to re-attach the z-axis... I think if an axis is supposed to be moving, but the encoder hasn't changed after a time, some actions should be taken:

  1. Stop all motion (temporarily?.... so you can resume after the fault is cleared)
  2. Clear the PID loops for all axes (at least this one -- I wand the power to be off when I plug it in)
  3. Send up a message to GroundControl via the same mechanism as the Manual Z change (so GC puts up a dialog box and waits for the user to press OK)
  4. When GC says it's done, resume motion and try to continue.

With this patch, I think it would also be good to have a flag for "Air Cutting" (accept, but don't do anything with Z) if we don't already have one.

BarbourSmith commented 6 years ago

I think this is a great idea.

How will you detect that the motor is not plugged in?

I would recommend just triggering the built in pause function because we've already got good infrastructure around it