Hi Jon, > From: Jon Elson [mailto:el...@pico-systems.com] > Hello, > > I have a gadget I put together for a project at work, beagle > bone and Machinekit. > It is a one-axis linear positioner. I only need to move to > the correct positions for > 4 samples. So, the G-code is something like : > > G1 F25 X1 > > Where the number after the X will be 0,1,2,or 3. > > I already have a pyvcp on it. I'd like to add buttons > marked 1, 2, 3 and 4, and when the user clicks > one, the G-code is fed to the interpreter and run. I know > people have discussed doing things > like this before, but I'm a little vague on how to do it. >
I've done something like that although I ran into issues at some point. Haven't gotten back to it so I don't remember the problems I ran into. However this page I think shows how you create the G code command as a MDI command. http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Adding_Custom_MDI_Buttons You'd just need 4 buttons and four MDI_COMMAND0, MDI_COMMAND1, MDI_COMMAND2 and MDI_COMMAND3. You can try that all on your own mill before you even get to the beagle. John Dammeyer _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users