On 20 May 2010 17:32, Neil Baylis <[email protected]> wrote:

> 2) I'm repeatedly doing the following MDI commands: g0y0  g0y8 while I take
> a plot with Halscope to monitor the results. Is it possible to assign these
> commands to function keys on the keyboard, or buttons on the GUI, so they
> are more convenient?

Yes.

http://linuxcnc.org/docs/html/gui_halui.html#sub:MDI

You add lines to the INI file with the G-code to be executed in it,
write the pyvcp to create the buttons then wire the pyvc to the pins
that MDI_COMMAND creates in your posgui hal file and it runs the
G-code when the pin goes high.

Alternatively you could link to keyboard keys with hal_input
http://www.linuxcnc.org/docview/html//man/man1/hal_input.1.html



-- 
atp

------------------------------------------------------------------------------

_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to