How to right sequence run - pause -stop

More
27 Apr 2011 21:10 #9430 by piasdom
at home now and i don't have the same xml or hal file here. i
will look tomorrow. AND copy my xml/hal so i can work here :)
Thanks

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

More
28 Apr 2011 10:10 - 28 Apr 2011 11:27 #9445 by piasdom
Thanks, didn't know about the pyvcp section.
got this to work, but it bypasses the estop. when starting emc i could
just use the on/off button. when emc starts on is displayed. i clock on/off and it
turns to off. click on/off again and on is displayed. and machine is on.


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

Attachments:
Last edit: 28 Apr 2011 11:27 by piasdom.

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

More
28 Apr 2011 11:25 #9450 by piasdom
and i have the below. i get the error message - - the sig "on-off" can not add i/o
pin 'toggle.1.out' it already has an out pin 'not.2.out - -
so estop and machine.off are the same ?


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

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

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

More
28 Apr 2011 11:40 #9451 by andypugh
piasdom wrote:

and i have the below. i get the error message - - the sig "on-off" can not add i/o
pin 'toggle.1.out' it already has an out pin 'not.2.out - -
so estop and machine.off are the same ?


No, what it means is that it can't add an IO pin called "toggle.1.out" to the signal "on-off" because that signal also has the output pin called "not.2.out"

Toggle.1.out is an output. not.2.out is an output. Both are trying to drive the value of the signal on-off. Who should win?

Oddly enough, the error messages generally tell you what the problem is.

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

More
28 Apr 2011 11:40 #9452 by piasdom
never mind :) had the same sig name for both :)

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

More
28 Apr 2011 11:56 - 28 Apr 2011 12:19 #9456 by piasdom
i've got the below to change the image from on to off(two images)
but the first click turns the machine on and if i don't click and wait
a second or two, it turns off by itself. but after that, it works like it should.
click = on(image "on") click again = off(image "off") it's just that first click.
and i had used not.n for estop, but it made emc start slower. changed
it back to toggle.n and it start as usual. wouldn't know why :)





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

and from what i understand, the below is the same as the above ? :)

net off-btn toggle.1.in == pyvcp.mach-on halui.machine.on
net on-off toggle.1.out pyvcp.selectimage halui.machine.off
Last edit: 28 Apr 2011 12:19 by piasdom.

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

More
28 Apr 2011 13:09 #9459 by piasdom
i thought i would be able to click on the image to change the on-off position,
right now i have tow click on the on-off pyvcp.button to do that. the image
changes(after the first click and wait) to on and off as it should. but i was looking to
get rid of the button. Thanks, this is fun :)

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

More
28 Apr 2011 13:21 #9461 by piasdom
BigJohnT wrote:

Nope only one shows depending on the state of the control pin.

halui.program.run will only work when the machine is in the auto mode.

John


does it matter which output is first ?
halui.mode.auto halui.program.run

i got this to work.
net prog-run pyvcp.prog-run == halui.program.run halui.mode.auto

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

More
28 Apr 2011 14:47 #9462 by BigJohnT
Hey,

Pretty cool. I guess it does work that way.

John

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

More
28 Apr 2011 16:18 - 28 Apr 2011 16:45 #9463 by piasdom
ok....why doesn't #program run/stop work ? the other three work.

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

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

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

#program run/stop
net run-stop toggle.3.in == pyvcp.prog-run halui.program.stop
net stop-run toggle.3.out == halui.program.run
Last edit: 28 Apr 2011 16:45 by piasdom.

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

Time to create page: 0.528 seconds
Powered by Kunena Forum