How to right sequence run - pause -stop
12 Jan 2011 12:56 #6647
by aike
Replied by aike on topic Re:How to right sequence run - pause -stop
Here it is!
Please Log in or Create an account to join the conversation.
12 Jan 2011 14:58 #6648
by BigJohnT
Replied by BigJohnT on topic Re:How to right sequence run - pause -stop
I see the problem lol, your config is so big it won't fit on my screen... Also it is a mesa config so I can't really run it.
John
John
Please Log in or Create an account to join the conversation.
27 Apr 2011 11:00 - 27 Apr 2011 11:03 #9372
by piasdom
Replied by piasdom on topic Re:How to right sequence run - pause -stop
i got the below to work, but it's slow to react. i click the button and it pauses
- click again and it resumes.
i found -- if i click fast one the first click - it pauses(slow it doesn't)
click fast on second click and no reaction(slow click - resumes)
i think when clicking(first) slow it's going pause then resume in the one click
hope this helps.
net pause-btn and2.5.in0 == and2.5.in1
net pause-btn pyvcp.prog-pause == halui.program.pause
net btn-paused halui.program.resume == and2.5.out
BigJohnT - - i used your example to get this. didn't know what this was.
hm2_5i20.0.gpio.031.in_not
net program-run-btn halui.mode.auto <= hm2_5i20.0.gpio.031.in_not
net program-run-btn and2.2.in0
net program-is-auto and2.2.in1 <= halui.mode.is-auto
net remote-prg-run halui.program.run <= and2.2.out
- click again and it resumes.
i found -- if i click fast one the first click - it pauses(slow it doesn't)
click fast on second click and no reaction(slow click - resumes)
i think when clicking(first) slow it's going pause then resume in the one click
hope this helps.
net pause-btn and2.5.in0 == and2.5.in1
net pause-btn pyvcp.prog-pause == halui.program.pause
net btn-paused halui.program.resume == and2.5.out
BigJohnT - - i used your example to get this. didn't know what this was.
hm2_5i20.0.gpio.031.in_not
net program-run-btn halui.mode.auto <= hm2_5i20.0.gpio.031.in_not
net program-run-btn and2.2.in0
net program-is-auto and2.2.in1 <= halui.mode.is-auto
net remote-prg-run halui.program.run <= and2.2.out
Last edit: 27 Apr 2011 11:03 by piasdom.
Please Log in or Create an account to join the conversation.
27 Apr 2011 11:12 #9375
by BigJohnT
Replied by BigJohnT on topic Re:How to right sequence run - pause -stop
piasdom wrote:
That is an input pin for a Mesa 5i20 card.
The response speed of the GUI depends on the load on the processor as far as I know...
Your code appears to be turning on both halui.program.pause and halui.program.resume at the same time.
John
BigJohnT - - i used your example to get this. didn't know what this was.
hm2_5i20.0.gpio.031.in_not
That is an input pin for a Mesa 5i20 card.
The response speed of the GUI depends on the load on the processor as far as I know...
Your code appears to be turning on both halui.program.pause and halui.program.resume at the same time.
John
Please Log in or Create an account to join the conversation.
27 Apr 2011 11:45 #9378
by piasdom
Replied by piasdom on topic Re:How to right sequence run - pause -stop
i was trying to create a button that when pressed once would
pause the program and pressed again would resume it.
pause the program and pressed again would resume it.
Please Log in or Create an account to join the conversation.
27 Apr 2011 11:49 #9379
by BigJohnT
Replied by BigJohnT on topic Re:How to right sequence run - pause -stop
I don't think I've ever got that to work so I'll be watching to see how you do it.
John
John
Please Log in or Create an account to join the conversation.
27 Apr 2011 12:29 #9383
by andypugh
Replied by andypugh on topic Re:How to right sequence run - pause -stop
There is a component for that:
www.linuxcnc.org/docview/html/man/man9/toggle.9.html
www.linuxcnc.org/docview/html/man/man9/toggle.9.html
Please Log in or Create an account to join the conversation.
27 Apr 2011 12:31 - 27 Apr 2011 12:32 #9384
by piasdom
Replied by piasdom on topic Re:How to right sequence run - pause -stop
it works now. i just have to first click(fast) and second click(slow)
i hold the mouse btn down longer on the second click.
not sure how to put a delay in there and don't know why it needs that.
works that way every time.
i hold the mouse btn down longer on the second click.
not sure how to put a delay in there and don't know why it needs that.
works that way every time.
Last edit: 27 Apr 2011 12:32 by piasdom.
Please Log in or Create an account to join the conversation.
27 Apr 2011 12:47 #9385
by piasdom
Replied by piasdom on topic Re:How to right sequence run - pause -stop
thanks andypugh,
how do i name the variable ? i get "empty variable name"
from site
loadrt toggle [count=N|names=name1[,name2...]]
loadrt toggle [count=2|names=stop[,start]]
how do i name the variable ? i get "empty variable name"
from site
loadrt toggle [count=N|names=name1[,name2...]]
loadrt toggle [count=2|names=stop[,start]]
Please Log in or Create an account to join the conversation.
27 Apr 2011 13:05 #9387
by piasdom
Replied by piasdom on topic Re:How to right sequence run - pause -stop
doesn't like this either
(assuming i use addf, not setp or something i never used:)
loadrt toggle count = 2
addf toggle.1 servo-thread
(assuming i use addf, not setp or something i never used:)
loadrt toggle count = 2
addf toggle.1 servo-thread
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds