HOLE CIRCLE UTILITY
This program creates a gcode file that can be loaded into linuxnc to run a hole circle operation.
The machine should be X and Y zeroed at the center of the desired circle.
The Z zero should be set to the top of the workpiece.
The parameter units are set to whatever mode the machine is currently in, either metric or imperial.
Validation of Inputs
- checks that there are no blank entries
- checks that the spindle RPM is between min and max rated speed
- checks that the number of holes is > 0
- checks that circle radius is > 0
- checks that first hole angle is < 360
- checks that safe Z travel > 0
- checks that hole start height is between 0 and safe Z travel height
- checks that drill depth is > 0
- checks that drill feedrate is > 0
SAVE AS PROGRAM
- checks for valid input fields
- creates a gcode program according to the drill pattern in the preview
- opens a dialog window to get a file to save to
- invalid parameters are shown with a red border and the program will not be created
SEND TO LINUXCNC
- checks for valid input fields
- creates a gcode program according to the pattern in the preview
- creates a temporary file and loads it to linuxcnc
- invalid parameters are shown with a red border and the program will not be created
- the temporary file is automatically deleted when linuxcnc exits
Whenever a new toolpath is created, a list of hole angles and XY coordinates is displayed in the report box. This could
be used, for example, to manually jog to a specific hole location.