2D CAM: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
No edit summary
 
Line 28: Line 28:


Double-click the dxf2gcode python file. Example: dxf2gcode_v01.py
Double-click the dxf2gcode python file. Example: dxf2gcode_v01.py
=CNC Torch Table File Adapter=
The gcode files from the dxf2gcode toolchain alone will not be effective for the torch table
To address the proper piercing issue, [[Vann Miller]] has written a correction script. This script does 3 things. First, it takes out the z values generated by the [[DXF to G-code Converter]] (not needed in a 2-axis motion system at hand). Second, it starts a pierce by moving towards the center of a hole. Third, it rotates the torch around a small radius (.05") during preheating. The number of rotations is currently 8, but '''one should be able to modify this'''.
To run this correction script, download the coverter file - make it executable, and run it from command line. Here's Version 0.22 of vanngcode.php - [http://openpario.mime.oregonstate.edu/documents/1236] . This works based on correct understanding of G2 syntax. It also ignores arcs, and only pierces circles on their interior.
php vanngcode.php <file.ngc>
Where <file.ngc> is the name of the ngc file. The converter will eliminate Z coords and add preheating/piercing to circles.
Also, now the interior offset can be set via the command line, e.g:
    php vanngcode.php input.ngc 0.3
... would offset 0.3 inches into the circle before piercing. The default offset is .2 in inch units. For small holes, such as 1/4", the value should be decreased to 0.1, which will pierce just about in the middle.

Latest revision as of 22:33, 20 August 2012

Dxf2Gcode

Dxf2Gcode is a program that converts dxf files (2D drawings) to gcode files (computer-aided manufacturing files).

Download Dxf2Gcode

List of Version Downloads:

https://code.google.com/p/dxf2gcode/downloads/list

For Windows:

https://code.google.com/p/dxf2gcode/downloads/detail?name=2010-05-04-dxf2gcode_b02_win32.zip&can=2&q=

For Linux:

https://code.google.com/p/dxf2gcode/downloads/detail?name=2008-07-27-dxf2gcode_v01_src.zip&can=2&q=

Extract dxf2gcode Files

Navigate to the folder where you downloaded the dxf2gcode zip file.

Right-click the zip file and extract its contents to a folder of your choosing.

Run dxf2gcode

Navigate to the folder where you extracted the dxf2gcode zip file.

Double-click the dxf2gcode python file. Example: dxf2gcode_v01.py