- Configuring LinuxCNC
- Advanced Configuration
- integrating a go/pause switch into LinuxCNC (not an estop)
integrating a go/pause switch into LinuxCNC (not an estop)
- SenorAguas
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 0
14 Nov 2016 19:22 #82806
by SenorAguas
Replied by SenorAguas on topic integrating a go/pause switch into LinuxCNC (not an estop)
just replaced auto with mdi, with no success. I think it didn't like calling for mdi mode when it was already in mdi mode.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23271
- Thank you received: 4928
14 Nov 2016 19:26 #82807
by andypugh
When you say "starting the program again" do you mean using the pallet-intertion switch or pressing a "run" button somewhere else?
Does the program actually refuse to run?
Replied by andypugh on topic integrating a go/pause switch into LinuxCNC (not an estop)
I'm 95% there! It's pausing when I want it to, and resuming, but it is getting an error when loading another pallet and starting the program again:
can't do that (EMC_TASK_PLAN_RUN:507 in manual mode
When you say "starting the program again" do you mean using the pallet-intertion switch or pressing a "run" button somewhere else?
Does the program actually refuse to run?
Please Log in or Create an account to join the conversation.
- SenorAguas
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 0
14 Nov 2016 19:42 - 14 Nov 2016 19:46 #82808
by SenorAguas
Replied by SenorAguas on topic integrating a go/pause switch into LinuxCNC (not an estop)
At the end of the program (pallet is still installed), I get the "cant do that in manual mode error". I have to press run again to get it to run. It does not refuse to run after I press run again. The only issue is that I get error notifications. I assume it is trying to restart the program, but it's in manual mode and can't.
Just to be clear: I'd like it to stop at the end of the program, then automatically run the program again after the pallet is removed and replaced with a new one. (the pallet switch goes open when the pallet is removed, then closed again when replaced).
Just to be clear: I'd like it to stop at the end of the program, then automatically run the program again after the pallet is removed and replaced with a new one. (the pallet switch goes open when the pallet is removed, then closed again when replaced).
Last edit: 14 Nov 2016 19:46 by SenorAguas.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23271
- Thank you received: 4928
14 Nov 2016 21:40 #82812
by andypugh
Replied by andypugh on topic integrating a go/pause switch into LinuxCNC (not an estop)
I think others have made similar things work. I vaguely recall that they needed to set the mode, wait a moment, and then run the program.
Try searching the forum for halui.mode.auto
Try searching the forum for halui.mode.auto
Please Log in or Create an account to join the conversation.
- SenorAguas
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 0
15 Nov 2016 17:04 #82839
by SenorAguas
Replied by SenorAguas on topic integrating a go/pause switch into LinuxCNC (not an estop)
Thanks, I found this, but haven't been able to figure out how to put it in my HAL.
forum.linuxcnc.org/forum/24-hal-componen...se-stop?start=6#6632
forum.linuxcnc.org/forum/24-hal-componen...se-stop?start=6#6632
Please Log in or Create an account to join the conversation.
- SenorAguas
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 0
15 Nov 2016 17:27 #82840
by SenorAguas
Replied by SenorAguas on topic integrating a go/pause switch into LinuxCNC (not an estop)
Thanks for your help Andy. I'm actually going to call it good without the re-start functionality. We're thinking that it will be more fool proof without it. I removed a line and now I get no error.
I am looking for a way to add a physical momentary switch to do nothing more than the same thing as pressing the R key on the keyboard. But that's probably outside this thread.
Thanks again!
I am looking for a way to add a physical momentary switch to do nothing more than the same thing as pressing the R key on the keyboard. But that's probably outside this thread.
Thanks again!
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
Less
More
- Posts: 7000
- Thank you received: 1175
15 Nov 2016 20:00 #82843
by BigJohnT
Replied by BigJohnT on topic integrating a go/pause switch into LinuxCNC (not an estop)
This thread in the Hal Examples might help.
forum.linuxcnc.org/47-hal-examples/13201...-hold-resume-buttons
JT
forum.linuxcnc.org/47-hal-examples/13201...-hold-resume-buttons
JT
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- integrating a go/pause switch into LinuxCNC (not an estop)
Time to create page: 0.369 seconds