On 11/25/2016 10:31 AM, Tomaz T. wrote: > I'm trying to implement hardware push button (NO) for pause/resume program, > but it has no effect and I'm not sure what is wrong or missing > > > I've done this, a toggle button that turns on feed hold.
Here's the HAL code (feedhold.hal) : loadrt toggle addf toggle.0 servo-thread # following for feed-hold toggle button net feedholdbtn ppmc.0.din.15.in-not => toggle.0.in setp toggle.0.debounce 20 net feedhold toggle.0.out => motion.feed-hold net feedhold pyvcp.FeedHold And here's an xml file (feedhold.xml) that puts up an "LED" for the feedhold condition on a pyvcp control panel. You need an indicator, otherwise you'll never know why the machine refuses to move. <pyvcp> <label> <text>"Feed Hold:"</text> </label> <led> <halpin>"FeedHold"</halpin> <on_color>"red"</on_color> <off_color>"green"</off_color> </led> </vbox> </pyvcp> In the [DISPLAY] section of your .ini file, add this line : PYVCP = feedhold.xml And in the [HAL] section, add this : HALFILLE = feedhold.hal Jon ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
