2009/10/8 Holly Gates <[email protected]>: > It seems to me that the easiest thing to do for the start button would be to: > - use stepconf to assign the button to digital input 0 > - add an infinite loop in the G code, with a line at the top of the > loop that says M66 P0 L1 to wait for the button to get pressed
It is probably a whole lot easier than that to do what you want. With the caveat that I haven't done this, only read: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Jogging_With_Buttons_On_A_Pendant if you add the line: HALUI = halui in the [HAL] section of your machine's .ini file then a whole bunch of useful hal pins appear (you can see them all, and their value by choosing Machine->Hal Meter in Axis.) You then need to "net" halui.program.run and halui.program.stop to parallel port pins. If you put the new HAL commands in the custom.hal file then they won't get overwritten by changes you make in stepconf. Assuming that you want to use pins 10 and 11 for stop and start then the following lines might well work (Note that I can't actually try this without a fair bit of rebuilding) net remote-start halui.program.run halui.mode.auto <= parport.0.pin-10-in net remote-stop halui.program.stop <= parport.0.pin-11-in Also see the various articles about using a cheap gamepad as a control pendant, that might work even better. -- atp ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
