Door Switch
Posted: Mon Apr 29, 2024 3:34 am
I am trying to impliment a door switch for a mill in a school enviroment.
I have a npn sensor on the door and have added a input trigger to activate when the door is open and the signal goes low by assigning stop gcode execution to that pin port setup.
It all works to stop gcode and the spindle BUT if the spindle command is executed with the door open then spindle will ramp up to speed. If I assign it to estop that works but the machine cant be jogged with the door open .
How can I assign a input trigger to ensure the spindle cannot be turned on but the machine can still be jogged so they can set zero with a piece of paper ?
I have a npn sensor on the door and have added a input trigger to activate when the door is open and the signal goes low by assigning stop gcode execution to that pin port setup.
It all works to stop gcode and the spindle BUT if the spindle command is executed with the door open then spindle will ramp up to speed. If I assign it to estop that works but the machine cant be jogged with the door open .
How can I assign a input trigger to ensure the spindle cannot be turned on but the machine can still be jogged so they can set zero with a piece of paper ?