![Cnc hpgl software Cnc hpgl software](https://drufelcnc.com/img/gallery/DrufeCNC_HPGLtoGcode.png)
To control my CNC Mill I use Mach 3, but any other software can be used such as LinuxCNC and EMC2. But for me I think the 175$ for a Mach 3 License is well spend since it’s a great peace of software. I also got an license for CopperCAM for 80 € which is good given out and don’t have to mangle with a lot of conversation programs and scripts. Application All to G-Code Converter Free - The best software for CNC machines (engravers, etc.) - CNCtoolsWorld - Worldwide. All to G-Code Converter Free license for 1 computer. Available platforms: PC (Microsoft Windows) Languages: english, polish.
Start CopperCAM
Goto Files / Open / New Circuit.. and select the file Top Layer file “Top.gbr”
Goto Files / Open / Drills.. and select the file N/C Drill file “Through.drl” and click Yes if the Drill Holes look to be placed correct.
Goto Files / Open / Additional layer.. and select the file Board Outline file “BoardOutline.gbr” and click Yes if Board Outline look to be placed correct.
Select Layer 6 (Card Cutout)
Goto Files / Offset.. set Dx = -2,5 and Dy=-2,5 and click OK, this will place the PCB Layout in the correct place in the Card Cutout.
Select the Calculate isolating toolpaths icon, select the number of extra contours the engraving bit shall run abound the tracks. I use 1 both places. And click OK
Now you should see how your PCB will look like. The view is from the Top thru the board to it have to be inverted. But we will do that under the export process.
Select Parameters / Tool library..
And set up the number of tools you are going to use.
For my example
1 : 10 degree V-Bit for Engraving
2 : 1,3 mm Drill for Cutting
3 : 0,8 mm Drill for drilling 0,8 mm holes.
4 : 1.2 mm Drill for drilling all 1,2 mm holes and those a bow. So that I don’t have to change drills too often.
And click OK
Select File / Origin
Enter the values X=2 and Y=2 and select OK
This will change the Origin Point where the CNC will start from so that the start point is where the corner of the board so that you easily can position the CNC and don’t get too much waist material.
The White Cross will mark the Start Point.
Select Parameters / Select tools.. her you can change some option on how your G-Code shall be with travel speed and use of Bits with more.
I change under Drilling Tools “Use for each drill the closest small tool, with circular boring”
And “Allow circular boring for all holes over “ is set to 1 mm.
In my setup, it will then end up with one file for 0,8 mm drilling and one for 1,2 mm and it will then use the 1,2 mm drill for all holes witch is bigger, this saves me a lot of changing drills since I can do it all with only 2 drills.
Click OK
Then to the last steps exporting the G-Code for the tool’s.
Click the Mill Icon to generate the Output files.
Select Section #1 and chose “Engraving layer #1” check the Flip X box.
This will invert the design.
Select OK, this will Open a Notepad windows with the G-Code for the selected task. Save that eg. As “Engrave.txt”.
Click the Mill Icon again and change the Section #1 to Drilling (Tool #3 ø 0,8) check the Flip X box.
Select OK, this will again Open a Notepad windows with the G-Code for the selected task. Save that eg. As “drill_08.txt”.
Click the Mill Icon again and change the Section #1 to Drilling (Tool #4 ø 1,2) check the Flip X box.
Select OK, this will again Open a Notepad windows with the G-Code for the selected task. Save that eg. As “drill_12.txt”.
Click the Mill Icon again and change the Section #1 to Cutting out check the Flip X box.
Select OK, this will again Open a Notepad windows with the G-Code for the selected task. Save that eg. As “Cutout.txt”.
Now you have 4 files with G-Code for the necessary tasks.
You can run them in the order you like. But you should always run the Cutout as the last one.
I prefer the following order.
1 : Engrave
2 : Drill 0,8
3 : Drill 1,2
4 : Cutout
Now start your favorite Milling program and get ready to Mill.
A video of this process of my example is in the last port of the Video.
Goto Files / Open / New Circuit.. and select the file Top Layer file “Top.gbr”
Goto Files / Open / Drills.. and select the file N/C Drill file “Through.drl” and click Yes if the Drill Holes look to be placed correct.
Goto Files / Open / Additional layer.. and select the file Board Outline file “BoardOutline.gbr” and click Yes if Board Outline look to be placed correct.
Select Layer 6 (Card Cutout)
Goto Files / Offset.. set Dx = -2,5 and Dy=-2,5 and click OK, this will place the PCB Layout in the correct place in the Card Cutout.
Select the Calculate isolating toolpaths icon, select the number of extra contours the engraving bit shall run abound the tracks. I use 1 both places. And click OK
Now you should see how your PCB will look like. The view is from the Top thru the board to it have to be inverted. But we will do that under the export process.
Select Parameters / Tool library..
And set up the number of tools you are going to use.
For my example
1 : 10 degree V-Bit for Engraving
2 : 1,3 mm Drill for Cutting
3 : 0,8 mm Drill for drilling 0,8 mm holes.
4 : 1.2 mm Drill for drilling all 1,2 mm holes and those a bow. So that I don’t have to change drills too often.
And click OK
Select File / Origin
Enter the values X=2 and Y=2 and select OK
This will change the Origin Point where the CNC will start from so that the start point is where the corner of the board so that you easily can position the CNC and don’t get too much waist material.
The White Cross will mark the Start Point.
Select Parameters / Select tools.. her you can change some option on how your G-Code shall be with travel speed and use of Bits with more.
I change under Drilling Tools “Use for each drill the closest small tool, with circular boring”
And “Allow circular boring for all holes over “ is set to 1 mm.
In my setup, it will then end up with one file for 0,8 mm drilling and one for 1,2 mm and it will then use the 1,2 mm drill for all holes witch is bigger, this saves me a lot of changing drills since I can do it all with only 2 drills.
Click OK
Then to the last steps exporting the G-Code for the tool’s.
Click the Mill Icon to generate the Output files.
Select Section #1 and chose “Engraving layer #1” check the Flip X box.
This will invert the design.
Select OK, this will Open a Notepad windows with the G-Code for the selected task. Save that eg. As “Engrave.txt”.
Click the Mill Icon again and change the Section #1 to Drilling (Tool #3 ø 0,8) check the Flip X box.
Select OK, this will again Open a Notepad windows with the G-Code for the selected task. Save that eg. As “drill_08.txt”.
Click the Mill Icon again and change the Section #1 to Drilling (Tool #4 ø 1,2) check the Flip X box.
Select OK, this will again Open a Notepad windows with the G-Code for the selected task. Save that eg. As “drill_12.txt”.
Click the Mill Icon again and change the Section #1 to Cutting out check the Flip X box.
Select OK, this will again Open a Notepad windows with the G-Code for the selected task. Save that eg. As “Cutout.txt”.
Now you have 4 files with G-Code for the necessary tasks.
You can run them in the order you like. But you should always run the Cutout as the last one.
I prefer the following order.
1 : Engrave
2 : Drill 0,8
3 : Drill 1,2
4 : Cutout
Now start your favorite Milling program and get ready to Mill.
A video of this process of my example is in the last port of the Video.