Dual Z axis with independent motors at CNC

Hi folks! I‘m making something like storage robot/vending machine from a rare vehicle aerographic machine ARTROBO NNV2.5.
The machine has 2 Z axis with independent motors, gearboxes, drivers, endstops and electromagnetic brakes.
Brakes needed because gearboxes are not self-locking.
I’d like to do next things:

  1. Portal autoleveling when G28 Z with simple algorithm:
  • start homing both Z axes
  • when left or right Z endstop pressed - stop appropriate motor, but keep moving another one
  • when pressed the second endstop - stop homing.
  1. Automatic release brakes when Z axis at “ENABLE_MOTORS” state and activate brakes when Z axis at “DISABLE_MOTORS” state + manually activate/release left/right/both brakes by M-code and buttons on GPIO pins.
    Generally, I can do this features with custom PCB between smoothieboard and motor drivers, but I would like to do this with config file or firmware.
    Anybody have some ideas how to do this?

Imported from wikidot

There’s really no code in Smoothie right now that will let you do this, at the moment an external board is the way to do it.

Hello!
I’ve just made a Pull request regarding this feature as i needed it also.
(pull request 1210, sorry i’m not allowed to publish links)
I’ve tested it and so far so good on my side.
I hope this can help you, Please tell me if you have any feedbacks on this.