problem with single run/resume button.

More
28 Dec 2013 11:47 #42096 by jbunch
I am having a problem with setting up a single run/resume buton.
I have followed the wiki. I an running 2.6~pre and gmoccapy.
I am able to see the run/resume pin change in halmeter.

here is my ini file.

##### Start cycle start section

net cyce_start edge.0.in flipflop.0.set <= hm2_5i20.0.gpio.060.in_not
net hal_auto_mode and2.8.in0 and2.9.in0 <= edge.0.out
net is_program_running flipflop.1.reset flipflop.2.reset <= halui.program.is-running
net is_program_idle and2.8.in1 <= halui.program.is-idle
net is_program_paused and2.9.in1 <= halui.program.is-paused
net run_the_program halui.program.run <= flipflop.1.out
net resume_the_program halui.program.resume <= flipflop.2.out
net mode_is_auto flipflop.0.reset <= halui.mode.is-auto
net set_auto_mode halui.mode.auto <= flipflop.0.out

##### End Cycle start section

Thank you

Jim

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

More
28 Dec 2013 19:11 #42106 by cncbasher
what problem are you having Jim ?

attached is a snip of what i use to pause and resume if it's any help ,
although i notice your using gmoccapy , so their may be a conflict there etc , in the handler
Attachments:

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

More
28 Dec 2013 21:21 - 28 Dec 2013 21:22 #42108 by BigJohnT
I would use toggle2nist like CNCBasher instead of all that flip flopping.

linuxcnc.org/index.php/english/forum/47-...p-holdresume-buttons

JT
Last edit: 28 Dec 2013 21:22 by BigJohnT.

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

More
28 Dec 2013 21:24 - 28 Dec 2013 21:24 #42109 by BigJohnT
Do you have link to the wiki page? I can't seem to find it on linuxcnc.org.

JT
Last edit: 28 Dec 2013 21:24 by BigJohnT.

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

More
28 Dec 2013 21:29 - 28 Dec 2013 21:35 #42110 by jbunch
Cncbasher,

I have tried your code and it works as described. What I really want is something that works more like my mill. That not only pauses programmed moves but also stops rapids. So cycle start starts and resumes program. Feed hold stops all joint movement including rapids. Until I reset the program or resume movement.

The ini that I included was made from a logic diagram from the wiki. The only thing it did not do if it worked was stop or hold rapids. Is there a way to pause and stop rapids as well.


Jim
Last edit: 28 Dec 2013 21:35 by jbunch.

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

More
28 Dec 2013 21:32 - 28 Dec 2013 21:40 #42111 by jbunch
It is called "one button run/resume" under the "external controls" section.

wiki.linuxcnc.org/cgi-bin/wiki.pl?One_Button_Run/Resume
Last edit: 28 Dec 2013 21:40 by jbunch.

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

More
28 Dec 2013 21:41 #42112 by BigJohnT

Cncbasher,

I have tried your code and it works as described. What I really want is something that works more like my mill. That not only pauses programmed moves but also stops rapids. So cycle start starts and resumes program. Feed hold stops all joint movement including rapids. Until I reset the program or resume movement.

The ini that I included was made from a logic diagram from the wiki. The only thing it did not do if it worked was stop or hold rapids. Is there a way to pause and stop rapids as well.


Jim


In the example I linked to pressing the pause button will pause the program and will stop all moves, I'm confused as to what your trying to do.

JT

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

More
28 Dec 2013 22:10 #42113 by jbunch
The pause did not stop the initial rapid to the beginning code for facing last night.
That tells me pause will not stop all movements. When I pause or feed hold I am looking for things to stop. Including
rapids and in the middle of a rapid movement. In other words stop all movement. Your code works fine except for the
rapids thing. It is just different than my mill is all. When running new code on my mill I have a finger on the feed hold all the time.

Jim

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

More
28 Dec 2013 23:12 #42114 by cncbasher
Jim ,
the way I see it , and I fully respect that I may be wrong , is that rapids are part of the gcode interpreter and that stop and start are part of the machine controller .
so even if their is a way to stop rapids , it's more than what happens next , i.e just a pause so ok to resume , or dump the rapid and lose the position in code or indeed what happens next
or the next move , this is easier in machine controllers I think . although I am not sure of linuxcnc in this regard . but it should be handled somehow , so I would bring this topic to the developers table and request a verdict of thoughts .

Dave

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

More
29 Dec 2013 08:05 - 29 Dec 2013 08:36 #42134 by BigJohnT
Program pause should stop all motion including rapids.

Edit: I was testing in master!!!

Doing some testing in a sim, it seems that program pause does not pause after a tool change for some strange reason. Was the rapid move right after a tool change? In other cases for me in the Axis Sim program pause stops a rapid dead in its tracks. After more testing Program pause doesn't stop any rapids after a tool change which is wrong IMHO. The Max Velocity slider stops rapids in their tracks in all cases. I need to do more testing to see if halui works.

JT
Last edit: 29 Dec 2013 08:36 by BigJohnT.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum