Stopping spindle with E-Stop - Resolved

More
20 Mar 2024 23:35 #296417 by slowpoke
I found and watched the series of HAL videos by Feral Engineer and found them very helpful. I'm starting to have some clue as to how Hal works.

I had added the following spindle flip-flop code into io.hal and it worked, however whenever I ventured into MesaCT it would delete my custom stuff, so I created a postgui.hal and moved the spindle code there and all is good. Almost.....

Presently I have physical spindle start and stop buttons driving the inputs of the flipflop via a couple of Mesa inputs and this works great except when I press my physical E-Stop button it should also stop the spindle (presently it just stops motion)

I imagine there is more then one way to get E-Stop to also stop the spindle. I don't think I can drive the reset of the flipflop with both the mesa input for spindle stop and the E-stop input unless I implement an OR gate that then drives the flipflop reset input?
Is that correct?

There might also be more elegant ways of doing this?

I have attached io.hal as well as postgui.hal

Suggestions and comments welcome.

Thank you

 

File Attachment:

File Name: io_2024-03-20.hal
File Size:1 KB

File Attachment:

File Name: postgui.hal
File Size:1 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
21 Mar 2024 17:26 #296481 by Calysto
What kind of VFD do you have? Some have e-stop options....

Please Log in or Create an account to join the conversation.

More
21 Mar 2024 22:39 #296513 by slowpoke
I implemented an OR gate in HAL and that did the trick.

Thank you.

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum