Emergency Stop
-
@deckingman I have them commented ATM until I have them correct and complete. Based on what your saying I'll implement the following change:
M950 J1 C"e0stop"
M581 T2 P1 S1 R1
Thats the easy part. The macro is what baffles me. Do I manually build a trigger2.g file in the DWC and put in it what I want the button to do when triggered? -
@SonnyD1 Yes. You might find that trigger 2 already exists but is blank. If not create it. You can use the web interface or a text editor like notepad++ and upload it. I think the trigger files go in the .sys folder rather than the macros folder but I'm not 100% sure as I'm just using my phone right now.
Edit. Now that I'm in front of my PC, I can confirm that trigger files do indeed go in the .sys folder.
-
@deckingman I built a folder and put a simple M112 in it. Test failed. I've got some checking to do. I suspect it may be a wiring issue. I'll have to work it out and get back with ya.
-
@SonnyD1 said in Emergency Stop:
@deckingman I built a folder and put a simple M112 in it. Test failed. I've got some checking to do. I suspect it may be a wiring issue. I'll have to work it out and get back with ya.
Suggest the first thing you do is change T2 to T0. That will work the same way that M112 does but without needing a trigger macro (that's why trigger 0 and trigger1 should not be used -T1 does a pause like M25). If that doesn't work, then you need to check your wiring etc. If it does work then you need to check the trigger2 file and /or its location.
-
@deckingman Yea its gotta be a wiring issue. I think I can sort it out. I'll get back with ya when I do.
-
@deckingman Ok I cant seem to figure out the wiring and I dont want to use the trial and error method my my new board. Do you know how to wire that particular endstop?
-
@SonnyD1 From a question in the the 'Question and Answer' section of the listing:
Question:
I assume the the green wire is the common? wireing needs to be in your description.
Answer:
Hi Green wire is common, Blue is NO, Yellow is NC.So you can wire it NO or NC. We advise NC (Normally Closed), see https://docs.duet3d.com/User_manual/Connecting_hardware/Sensors_endstops#microswitch
Duet 3: connect the switch between the IN and GND pins of your chosen IO_x connector.
You said:
I built a folder and put a simple M112 in it.
Do you mean you created a folder called 'trigger2.g'? It needs to be a text file, like any gcode file. And it needs to be in the sys folder.
Ian
-
@droftarts Thats how I have it wired. I have the green wire to the ground and the yellow wire to the signal. Also, I created a folder named trigger2.g with an M112 in it. I started a home all and hit the endstop and nothing happened.
-
@SonnyD1 said in Emergency Stop:
I created a folder named trigger2.g
A folder, or a file? It should be a text file, not a folder.
Ian
-
@droftarts Yes it is a file. Currently named trigger0.g due to the "T" change you recommended. The file isn't even necessary with a T0.
-
@droftarts I found the problem. It wouldn't trigger because I had a R1 instead of a R0 in my M581 command. I've changed it and it executes the M112 properly now. Any modifications I do on it from here on out would be easy now that I know. I would say this issues is solved. Thank you very much!
-
-
@SonnyD1 R1 will only trigger while a file is being printed from the SD card. So it probably was working, you just weren't running a job! Also, yes, T0 and T1 ignore any trigger file, so any changes to trigger0.g won't do anything. You need to use T2 or higher to have it run what you want in a trigger#.g file.
Ian
-
@droftarts Thats what I may do later. For now I'm gonna leave it as is. Thanks again for your help!