integrating a go/pause switch into LinuxCNC (not an estop)

More
9 years 11 months ago - 9 years 11 months ago #82808 by SenorAguas
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).
Last edit: 9 years 11 months ago by SenorAguas.

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

More
9 years 11 months ago #82812 by andypugh
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

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

More
9 years 11 months ago #82839 by SenorAguas
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

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

More
9 years 11 months ago #82840 by SenorAguas
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!

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

More
9 years 11 months ago #82843 by BigJohnT

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

Time to create page: 0.061 seconds
Powered by Kunena Forum