gnea / grbl

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
https://github.com/gnea/grbl/wiki
Other
3.99k stars 1.59k forks source link

Would like to clarify how the door security function operates. #1157

Open GForce2010 opened 1 year ago

GForce2010 commented 1 year ago

I have a small PCP CNC running GRBL 1.1. For safety reasons it sits in an enclosure and I am considering adding a door switch to ensure the machine cannot be run with the door open.

My concern is that I have believe if I have a door switch enabled the machine cannot be jogged with the door open. Is that the case?

In a perfect world, I would want the ability to open the door, jog the machine into position and probe the surface etc, but not be able to start the milling process until the door is closed.

Is this something the is possible to do in GRBL?

Thanks.

langwadt commented 1 year ago

everything is possible, the code is right here for you to modify as you want

mar0x commented 1 year ago

Hello. Currently the jogging is also blocked when safety door enabled and opened. The modification suggested by @langwadt is possible, but doesn't looks trivial.

terjeio commented 1 year ago

I've added a settings flag for ignoring the door signal when in IDLE mode in my 32-bit port, likely alongside a check blocking anything beside jogging when the door is open.