How to right sequence run - pause -stop

More
27 Apr 2011 13:08 #9388 by andypugh
piasdom wrote:

loadrt toggle count = 2

Try wihtout the spaces
loadrt toggle count=2

If you want a longer debounce:

setp toggle.1.debounce 10

But 2mS (the default) is probably about right.

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

More
27 Apr 2011 13:10 #9389 by piasdom
can't use

loadrt toggle count = 2
needs no spaces after count - - loadrt toggle count=2

emc starts with this

loadrt toggle count=4
addf toggle.0 servo-thread
addf toggle.1 servo-thread

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

More
27 Apr 2011 13:20 - 27 Apr 2011 13:22 #9390 by piasdom
with below i get "toggle.0.debounce doesn't exist"


net pause-btn toggle.0.in == pyvcp.prog-pause
net btn-pause toggle.0.out == halui.program.pause
net btn-pause halui.program.resume == toggle.0.debounce
Last edit: 27 Apr 2011 13:22 by piasdom.

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

More
27 Apr 2011 13:53 #9392 by piasdom
below makes it looks like it is pauses for just a micro-second :)

net pause-btn toggle.0.in == pyvcp.prog-pause
net btn-paused toggle.0.out halui.program.pause halui.program.resume

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

More
27 Apr 2011 14:05 #9394 by piasdom
this works. but it looks like a slight delay.
guessing it's a request, not a command :

net pause-btn toggle.0.in == pyvcp.prog-pause
net pause-btn toggle.0.in halui.program.pause
net all-paused toggle.0.out halui.program.resume

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

More
27 Apr 2011 14:19 #9395 by piasdom
an on/off button.

net off-btn toggle.1.in == pyvcp.mach-on
net off-btn toggle.1.in == halui.machine.on
net on-off toggle.1.out halui.machine.off

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

More
27 Apr 2011 14:32 #9396 by piasdom
all three

#estop estop/reset
net estop-btn toggle.2.in == pyvcp.abort-button
net estop-btn toggle.2.in == halui.estop.activate
net on-off toggle.2.out halui.estop.reset

#power on/off
net off-btn toggle.1.in == pyvcp.mach-on
net off-btn toggle.1.in == halui.machine.on
net on-off toggle.1.out halui.machine.off

#program pause/resume
net pause-btn toggle.0.in == pyvcp.prog-pause
net pause-btn toggle.0.in == halui.program.pause
net all-paused toggle.0.out == halui.program.resume

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

More
27 Apr 2011 14:36 #9397 by piasdom
now...is there way to to change the words "on/off"
when button not clicked ... button says "on"
click one - word changes to "off"
click again - word changes to "on"
but don't think possible without recompiling lucid/emc :) :) :)
but it would be nice

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

More
27 Apr 2011 14:48 #9400 by BigJohnT

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

More
27 Apr 2011 14:53 - 27 Apr 2011 15:11 #9401 by piasdom
i saw that. they show two pictures. i thought they BOTH show and as one is pressed
it fades out and the other is high-lighted. does one pic show a a time ?

also;
why i can't get his to work
give me error "can't do that(EMC_TASK_PLAN_RUN)in manual.
the axis rub button works then.

net prog-run pyvcp.prog-run == halui.program.run
Last edit: 27 Apr 2011 15:11 by piasdom.

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

Time to create page: 0.110 seconds
Powered by Kunena Forum