Add Button to perform G Code Command
Posted: Sat Apr 06, 2024 8:42 pm
I would like to create 2 buttons on the Kmotion CNC Screen.
The first is click a button and the CNC performs a G01 X0Y0 F200 motion to my program's X0Y0.
The second button is the perform a G01 Z0 F200 motion down to the Z0 for the programs Z0.
These would save me having to manually jog the machine to my part origin after a tool change.
My guess is i have to assign a script Action to a button that points to a C program, but I'm not familiar with how to get the C code to act according to G code commands.
The first is click a button and the CNC performs a G01 X0Y0 F200 motion to my program's X0Y0.
The second button is the perform a G01 Z0 F200 motion down to the Z0 for the programs Z0.
These would save me having to manually jog the machine to my part origin after a tool change.
My guess is i have to assign a script Action to a button that points to a C program, but I'm not familiar with how to get the C code to act according to G code commands.