Skip to content

Latest commit

 

History

History
137 lines (88 loc) · 3.8 KB

README.md

File metadata and controls

137 lines (88 loc) · 3.8 KB

DXF Plotter

Fast and easy to use DXF to GCode converter for laser CNC

Build Status Quality Gate Status

This application helps users converting DXF files to GCode with minimal settings, fully configurable GCode commands format and fast spline to arc conversion.

It targets only laser and router CNC following every lines and arcs from DXF file with optional desired depth.

Features

  • DXF support of line, arc, circle, polyline, spline
  • Customizable GCode command format
  • Multi selected path setting edition
  • Path offseting (Tool Compensation)
  • Multi passes with depth

Installation

Currently only linux distributions are supported, windows will come in futur.

Installation from AppImage

Download latest AppImage and run:

chmod +x dxfplotter-*.AppImage
./dxfplotter-*.AppImage

Manual installation from source

This project depends on Qt5, yaml-cpp and fmt, for debian like distribution following command install all dependencies:

sudo apt-get install qtbase5-dev libyaml-cpp-dev libfmt-dev
git submodule init
git submodule update

mkdir build
cd build
cmake ..
make

Usage example

Launch GUI

build$ ./dxfplotter

With a specified dxf file

build$ ./dxfplotter input.dxf

With a specified file and tool

build$ ./dxfplotter input.dxf -t "Mill 1mm"

Once opened, select path from left panel or from viewport and modify settings of selected path group or of single selected path.

Export with File->Export or Ctrl+E

Configuration

Configuration settings are exposed in Configuration->Settings, the configuration is splitted in two:

  • general settings aiming dxf importing or default values
  • tools with settings such as radius and gcode formatting

GCode format

Simple set of GCode command is used per tool:

Description Default Command Available Variables
Pre Cut M4 S {S:.3f} S F
Post Cut M5
Plane Fast Move G0 X {X:.3f} Y {Y:.3f} X Y
Plane Linear Move G1 X {X:.3f} Y {Y:.3f} F {F:.3f} S F X Y
Depth Fast Move G0 Z {Z:.3f} Z
Depth Linear Move G1 Z {Z:.3f} S F Z
CW Arc Move G2 X {X:.3f} Y {Y:.3f} I {I:.3f} J {J:.3f} F {F:.3f} S F X Y I J
CCW Arc Move G3 X {X:.3f} Y {Y:.3f} I {I:.3f} J {J:.3f} F {F:.3f} S F X Y I J

They can be customized from tool Settings panel Configuration->Settings->Tools->ToolName->Gcode or from dxfplotter/config.yml file in your applications configuration folder.

Variables provided in formatting are available with {#:nf} where # is one of the supported variables and n the float precision:

Name Description
S Laser intensity
F Movement feedrate
X Movement X axis target
Y Movement Y axis target
Z Movement Z axis target
I Relative arc center absciss
J Relative arc center ordinate

Properties S and F are exposed in path settings in UI.

Author

👤 Tristan Porteries

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Tristan Porteries.
This project is MIT License licensed.