CNC Enclosure Door Pause
-
Is there a good explanation some where on how to wire up and configure a door switch on a CNC enclosure to:
- Pause an active job when the door it opened
- Not let a new job start till the door is closed
- Resume an active job when the door is closed
I have a DPDT momentary switch on my CNC door. One of the the circuits is wired to my VFD's enable pin such that when the door is opened the VFD stops. I did this because my VFD does not have a dead band so any stray voltage over 0.8mV on it's ADC would trigger it to spin. They are working to add one so I can set a minimum voltage to start the spindle. I would like the other circuit to pause the Duet MB6HC as quickly as possible.
-
This thread might be a good place to start.
I use an external momentary switch to pause/move to a safe place/resume the machine, so it will probably work for most of what you want, but I don't understand why you'd want to load a job in the middle of another job, if that's what you're asking
-
@cthulhulabs This might help you https://docs.duet3d.com/en/User_manual/Tuning/Triggers
-
@nightowl said in CNC Enclosure Door Pause:
I don't understand why you'd want to load a job in the middle of another job, if that's what you're asking
I am not talking while there is an active job running. I want to prevent a job from starting if the door is already open.
-
@cthulhulabs You can run M582 in your start.g to check the trigger state and to run the corresponding "door open" action when necessary. Or just check the trigger state from start.g using an if-statement and cancel the job immediately using M0.
-
@chrishamm One caveat is that the machine will not pause until the buffer is empty.
-
@rzi when printing from file, the print will try to pause without emptying the buffer if the jerk limit allows.
In RRF 3.5 we plan to introduce a facility to pause almost instantly, in the middle of a move if necessary.
-
I plan on putting together a document on how to set up a door switch once I get it all worked out.
-
Is it possible to configure two triggers on one pin? IE trigger a pause script when the pin goes Inactive -> Active and another script when it goes from Active -> Inactive. IE something like:
; Configure Enclosure Door Switch To Pause M950 J1 C"io4.in" M581 P1 T2 S1 ; Call trigger2.g when io4.in goes from inactive to active M581 P1 T3 S0 ; Call trigger3.g when io4.in goes from active to inactive
-
@cthulhulabs said in CNC Enclosure Door Pause:
Is it possible to configure two triggers on one pin? IE trigger a pause script when the pin goes Inactive -> Active and another script when it goes from Active -> Inactive. IE something like:
; Configure Enclosure Door Switch To Pause M950 J1 C"io4.in" M581 P1 T2 S1 ; Call trigger2.g when io4.in goes from inactive to active M581 P1 T3 S0 ; Call trigger3.g when io4.in goes from active to inactive
I haven't actually tried that in anger but if the firmware works as the documentation implies, then it should. It would be simple enough to test by simply creating those triggers with a single echo command in each.