How to right sequence run - pause -stop
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.
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
Please Log in or Create an account to join the conversation.
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.
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.
Please Log in or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.
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.
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.
Pretty cool. I guess it does work that way.
John
Please Log in or Create an account to join the conversation.
#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
Please Log in or Create an account to join the conversation.