How to right sequence run - pause -stop

More
14 May 2011 16:26 #9810 by piasdom
Thanks John, but i didn't mean for you to take the time to figure this out.
if you'ld ahve said it's more complicated the just linking at the start, i would have moved on:)
but thanks again for your time and efforts. as far as the hal examples, where ? :)

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

More
14 May 2011 16:28 #9812 by BigJohnT
Here on the forum in the HAL Examples category.

John

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

More
14 May 2011 17:58 #9815 by piasdom
Cool, will help to better understand what's happening.

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

More
16 May 2011 13:16 #9844 by piasdom
ok... ok.....what did ya'll do ? the below works great.
i know i had this config before, so i figure ya'll did somein' :)
i couldn't get yours' to work John. it paused fine but had to use
emc menus' resume. now y dis wokin' now ?



#pause/resume
net pause-btn toggle.2.in halui.program.pause pyvcp.prog-pause
net resume-btn toggle.2.out halui.program.resume

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

More
16 May 2011 15:55 #9849 by BigJohnT
I still have a small error somewhere in my code where it works somewhat in sim but not on my machine. Have to look at it later this evening if time permits.

John

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

More
16 May 2011 18:37 #9852 by piasdom
i tried doing this i sim, but fix one error .......... another moves in it's place :)

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

More
17 May 2011 01:47 #9857 by M4MazakUser
B)
i cheated and used classicladder to do what u are trying to achieve, -though there is a slight delay in the button's operation.
my setup is one button (Cycle start) and a (Feed Hold) button.

feed hold is "pause", and "cycle start" changes to "resume" if the machine is paused. both buttons look to see if the machine is running-etc.

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

More
17 May 2011 11:24 - 17 May 2011 11:26 #9862 by piasdom
i'm trying to learn pyvcp so i'm staying away from the ladder world. but
thought about trying the ladder(even look at it) and figured i'm better
where i'm at. thanks for the idea M4MazakUser. but i wouldn't
like the delay for some reason.
Last edit: 17 May 2011 11:26 by piasdom.

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

More
17 May 2011 11:30 - 18 May 2011 13:14 #9864 by piasdom
this works great for me. it's off a little from the main emc. i mean, if i click the axis menu pause...
i have to click my button twice to get it working again. john explained this earlier. but as far
as that, i'm happy ! thanks all !!!!!!!!! (especially BigJohnT)



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


p.s. now that d### run/stop :) evil little thing.
Last edit: 18 May 2011 13:14 by piasdom.

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

More
18 May 2011 17:27 - 18 May 2011 17:41 #9916 by piasdom
i've been trying to get a pyvcp button to toggle on/off or run/stop with a little success.
attached is my xml, hal and custom hal file for anyone interested. below are my
problem areas. on/off and pause/resume work great except that they get "out of sync" with
emc. if i use axis menu, then try to use my buttons, i have to click twice to get em to work.
with run/stop, run work(also gets "out of sync") but stop gives me errors. don't know if what
i've been trying is doable, but it's been fun to learn this. hope this helps someone
down the line. Good Luck !

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

#program run/stop
net run-btn halui.mode.auto toggle.1.in halui.program.stop pyvcp.run-prog
net run toggle.1.out halui.program.run

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



File Attachment:

File Name: AxisXml.zip
File Size:5 KB
Attachments:
Last edit: 18 May 2011 17:41 by piasdom.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum