When you select Drill Cycle as the G-code type, the G-Code Generator can process data for points and circles.
If your company uses specific setup and reset instructions for CNC machining, code these instructions in a text file so that you can copy and paste them in
Preamble and
Postscript fields of the G-Code Generator.
The G-Code Generator provides generic instructions in these fields.
To generate G-code for drill cycles:
- Open a 2D drawing to a model tab.
You cannot generate G-code from a sheet tab.
- In the upper right corner of the G-Code Generator panel, select Drill Cycle from the drop-down list.
-
Do one of the following:
- Select circles and point to process in the graphics area and click Generate
in the top toolbar of the G-Code Generator panel.
- Click Generate
, then select the circles and points to process and press Enter.
Data for the selected entities is read into the G-Code Generator and an image appears in the preview window.
- If you have prepared company-specific setup and reset instructions, copy them and paste them in the Preamble and Postscript fields.
- Select the type of drill cycle to use:
- G81 (Drill cycle)
- G82 (Drill cycle with dwell)
- G83 (Peck Drill cycle)
The remaining fields are updated depending on the drill cycle type.
- Specify cutting instructions in the remaining fields.
For field descriptions, click
Help 
in the top toolbar of the
G-Code Generator panel.
- Optionally, use the controls below the preview window to simulate the tool path in the preview.
- Adjust the cutting parameters if necessary.
- Click Save
to open the Save File dialog box, where you can save the G-code you have generated as a .txt or .ngc file.
- Specify a path and file name and click Save.