Create a New Button with certain Gcode behaviour

More
10 May 2016 03:42 #74431 by Cheech
HI,

I would like to know if it is possible to create a new button on screen to send all axises back to zero. I would like the button to issue a
G0Z0; #z goes up first
G0X0Y0; #X and Y move together back to zero

This would save some typing to the MDI

In mach3 this is so easy.... haha. Actually they provide a button called GoToZero, good little function. But I am in love with Linux, this is great..

Preferably I would have this button just under the Home and Touch Off buttons. Does anyone know if there is a hardcoded provision for doing something like this within the Axis screen code? Through the .axisrc file or some other way easier then creating a new button and behaviour through the .tcl/.py source code files for the Axis screen?

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

More
10 May 2016 04:34 #74433 by Todd Zuercher
Changing the Axis user interface isn't real easy, and updates will undo your changes.

However adding a button to do that in a PYVCP or GladeVCP is quite simple. First make a g-code file that does what you want save it as a sub program, then you can call it directly with an MDI command in Glade, or with a Halui command from PYVCP.
The following user(s) said Thank You: Cheech

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

More
10 May 2016 06:02 #74434 by Rick G
The following user(s) said Thank You: Cheech

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

More
10 May 2016 06:51 - 10 May 2016 06:54 #74435 by Cheech
Thanks Boys.

I am trying to stay away from having to open the hidden "custom" window pane (for space saving reasons: I want the Gcode window to be as big as possible), that's why I want to put the new button just under the touch off button.

But I will consider.

Thanks again
Cheech
Last edit: 10 May 2016 06:54 by Cheech. Reason: give more detail to argument.

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

More
10 May 2016 16:26 #74457 by andypugh
Not a neat solution, but you could use the mist-coolant button, linked to an MDI_COMMAND to do it, probably.
The following user(s) said Thank You: Cheech

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

More
11 May 2016 12:40 - 11 May 2016 12:40 #74501 by FiliP
Make new tab for your buttons instead panel (Embedded in Axis):
Preview | DRO | My Buttons
G-Code window will stay untouched.

gnipsel.com/linuxcnc/gladevcp/gladevcp01.html
Last edit: 11 May 2016 12:40 by FiliP.
The following user(s) said Thank You: Cheech

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

Time to create page: 0.095 seconds
Powered by Kunena Forum