Stopping spindle with E-Stop - Resolved
- slowpoke
- Offline
- Elite Member
Less
More
- Posts: 171
- Thank you received: 25
20 Mar 2024 23:35 #296417
by slowpoke
Stopping spindle with E-Stop was created 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
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
Attachments:
Please Log in or Create an account to join the conversation.
- Calysto
- Offline
- Senior Member
Less
More
- Posts: 43
- Thank you received: 6
21 Mar 2024 17:26 #296481
by Calysto
Replied by Calysto on topic Stopping spindle with E-Stop
What kind of VFD do you have? Some have e-stop options....
Please Log in or Create an account to join the conversation.
- slowpoke
- Offline
- Elite Member
Less
More
- Posts: 171
- Thank you received: 25
21 Mar 2024 22:39 #296513
by slowpoke
Replied by slowpoke on topic Stopping spindle with E-Stop - Resolved
I implemented an OR gate in HAL and that did the trick.
Thank you.
Thank you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.051 seconds