• 1
  • 2
  • 3

DXF to G-Code

Our totally free DXF to G-Code supports the standard G-Code commands and also sub program calls and macro programming. The program draws a graphical representation of the programmed G-Code tool path in 3D view. With this free DXF converter,  you can open, edit and save G-Code programs up to a size of 2 GB very fast. How to achieve it ? The reason is that we have build in our "Text Editor Lighting fast" technologie into this program. All inputs can be converted into capital letters automatically. You can also convert all characters of existing files into capital letters.

To your surprise, it could import DXF files and convert DXF files directly into G-code. You could transfer your programs to your CNC machine. DXF to G-Code free let your source code in the following ways: such as: remove comments, space characters, space lines and block numbers. You can insert spaces or renumber the blocks. If you renumber the block numbers our software will update the GOTO blocks for you automatically. Different CNC machines may interpret the same G-Code in a different way. Using our software to help solve problem.

Software Size: 934 KB

  • Tutorial
  • References 1
  • References 2
  • Article

 

Guide: How to Convert DXF to G-Code ?

Preparation: Press the download button to download the Free DXF to G-code converter, install and run it. This guide focuses on helping you convert DXF files to G-Code within only four steps.

Step One: Free download DXF files to G-Code. Double click exe. file and run it on your computer. The main interface is like following screenshot. On top toolbar, you can see, "File", "Option", "Edit", "Caculate", "Help", "Language".

Step Two: Add DWG file. On top toolbar, we can find first button is "File". Here, we click it and will get sub-menu, then we select the second option"Open".

 

Step Three: In this step, we set options for DXF conversion.

Step Four: Save your files. Using this software, you will never feel dispointed, because it supports two foreign languages, like English and Deutsch.

You see, everything would be accomplished within four clicks. This software makes it so easy, have a try now!

 

 

M Codes

M02, M30 End of program
M87 X axis mirror ON
M88 Y axis mirror ON
M89 X and Y axis mirror OFF

You can call sub program with one of the following M codes or with the G Code G65 if you need to call the sub program with parameters.

M97 P P= program number
M98 P L P=program number L= number of subprogram calls
M98 P K P=program number K= number of subprogram calls
M98 Pxxxxyyyy yyyy=program number xxxx= number of subprogram calls
M98 O O=program number
M99 Return from sub program

 

Lathe ( Format A Codes )

This G-Codes are different for the Lathe format A:

G50  Set global coordinate system (like G92 for the mill)
G90, G92, G94 This are Canned cycles

 

Variables

You can store any value inside a variable and read back this value later. The access variables you use the operator # followed by the variable number you want to access. The store a value inside a variable you use the = operator #100=33 The value 33 will be stored in the variable #100. You can then use the variable in the following way: G1 X#100. This would be the same as the line G1 X33 because the value 33 has been stored in the variable #100

Canned Cycles

Canned Cycles are a kind of sub programs which when active will be executed after every block or line with a tool movement. You can activate the Canned Cycles with one of the following G codes. And they will remain active until you cancel the Canned Cycle with the G-Code G80. If you need to program a kind of individual Canned Cycle for your own needs, then you can use the G-Codes G66 and G67 (take a look at the list of supported G-Codes). G70 – G79, G81 – G89. Standard Canned Cycles; In our program: after each movement makes a hole with the depth Z

This codes are supported for the mill:

G12 A clockwise circular pocket with the radius I. This is not only a circular movement like G01 but the complete inner circle will be removed.
 G13 like G12 but counter clockwise movement
G34 Make K holes on a circle with the radius I. Angle of the first hole is J
G35 Make K holes in a line with angle J and with the distance I between the holes
G36 Make K holes on an arc with the radius I. The angle between the holes is P and the angle of the first hole is J.
G37.1 On the actual plane which can be seleted with G17/G18/G19 make a grid of holes. P holes in (X/Z/Y) direction and K holes in (Y/X/Z) direction.  Distance between the holes in (X/Z/Y) direction is I and distance in the other direction is J

 

System Requirements

Pentium 133 PC or better and 50 MB free hard disk space

32MB of RAM and Pointing device

800 x 600 VGA video display with 256 colors (1024 x 768 or higher recommended)

Windows NT Version 4.0 Service Pack 3, Windows 2000 , Windows XP and Vista.

 

What's New In It ?

"I know that you need a program to convert a 2D dxf drawing to CNC maschine compatible G-Code, but where to find it ?" One guy asked in technology forum.

In fundamental terms, G-code is a language in which people tell computerized machine tools what to make and how to make it. The "what" and "how" are mostly defined by instructions on where to move to, how fast to move, and through what path to move. The most common situation is that a cutting tool is moved according to these instructions, cutting away excess material to leave only the finished workpiece. Non-cutting tools, such as cold-forming tools, burnishing tools, or measuring probes, are also sometimes involved.

DXF to G-Code includes many powerful features designed purely for CNC ( Computer Numerical Control) programming and editing, and the DNC software to transfer the g-code files to/from your Computer Numerical Control (CNC) machines. In every case, the purpose of the N word is simply to number the line or block of code. It is meant to help identify a specific line of code or a block of code. Howerver, the N words are ignored by the CNC machine. Their only purpose is to be a method of identifying where you are at in the program. Think of N words as being similar to the page numbers of a book.

CNC ( Computer Numerical Control) compatible formats includes G-Code. In most cases, when using a G number such as G00, G01, G02, G03, G04, etc., on up to G09, one would be able to use the single digit version of the command. Examples would be: G0, G1, G2, G3, G4, etc.. Almost all machines today will accept either this single digit version or the 2 digit version of this code. In the extremely rare case where an error is caused by a single digit version, or when in doubt, use the standard 2 digit version. Example G00.