- Posts: 11
- Thank you received: 0
Create a New Button with certain Gcode behaviour
10 years 5 months ago #74431
by Cheech
Create a New Button with certain Gcode behaviour was created 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?
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 to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
10 years 5 months ago #74433
by Todd Zuercher
Replied by Todd Zuercher on topic Create a New Button with certain Gcode behaviour
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.
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.
Please Log in to join the conversation.
10 years 5 months ago #74434
by Rick G
Replied by Rick G on topic Create a New Button with certain Gcode behaviour
Please Log in to join the conversation.
10 years 5 months ago #74435
by Cheech
Replied by Cheech on topic Create a New Button with certain Gcode behaviour
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
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
Please Log in to join the conversation.
10 years 5 months ago #74457
by andypugh
Replied by andypugh on topic Create a New Button with certain Gcode behaviour
Not a neat solution, but you could use the mist-coolant button, linked to an MDI_COMMAND to do it, probably.
Please Log in to join the conversation.
10 years 5 months ago #74501
by FiliP
Replied by FiliP on topic Create a New Button with certain Gcode behaviour
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
Preview | DRO | My Buttons
G-Code window will stay untouched.
gnipsel.com/linuxcnc/gladevcp/gladevcp01.html
Please Log in to join the conversation.
Time to create page: 0.093 seconds
