"Machine Disable" button in OpenPNP should disable the machine's outputs
jonnerd154 opened this issue · 0 comments
jonnerd154 commented
Currently, pressing the "Power" button on OpenPnP doesn't do anything except soft-enable machine control, homing, etc.
Pressing the button again toggles the machine to the "inactive" state, but OpenPnP sends no commands to change Lumen's state - the steppers, lights, pumps, etc remain in their current (unknown) state. We can disable them, though!
A simple solution is to add the following into the default
->DISABLE_COMMAND
gcode inside the GcodeDriver
. I would suggest adding this to the example/boilerplate OpenPnP config.
M18 ; Disable all steppers
M150 S1 P0 ; Up-Light off
M150 S0 P0 ; Down-Light off
M107 P0 ; Pump 1 off
M107 P1 ; Valve 1 release
M107 P2 ; Pump 2 off
M107 P3 ; Valve 2 release