No description
Find a file
Nicholas Humfrey d06c2750fe
Merge pull request #11 from built1n/master
Add my RasterCarve program to README
2020-04-27 09:35:04 +01:00
airfoil Append the feedrate to the first G1 line 2017-09-12 17:18:02 -05:00
arcgen Found references to EMC2 and replaced with LinuxCNC 2017-04-11 09:08:06 +01:00
bezel Found references to EMC2 and replaced with LinuxCNC 2017-04-11 09:08:06 +01:00
boltcircle Added M2 at the end of the program, and pass gcode to AXIS and quit functionality. 2017-05-03 15:09:35 +03:00
counterbore Found references to EMC2 and replaced with LinuxCNC 2017-04-11 09:08:06 +01:00
drill-speed Found references to EMC2 and replaced with LinuxCNC 2017-04-11 09:08:06 +01:00
engrave Font File is now a dropdown, also auto recalculate when font changes. 2017-05-03 14:21:29 +03:00
engrave-lines Added author names to the top of the READMEs 2017-04-10 23:16:18 +01:00
face reuse existing ClearTextBox for 'New' 2017-12-30 23:24:04 +01:00
grid Found references to EMC2 and replaced with LinuxCNC 2017-04-11 09:08:06 +01:00
grill Update README.md 2020-04-26 20:57:14 -07:00
pocket pocket.py: Fix ZStep bug that caused air cutting, Lift the tool before centering after cut and use the ToolNumber to add a M6 toolchange to Preamble if greater than 0 2018-06-14 02:16:34 -05:00
ruler Fix Midway placement bug and tune defaults 2018-06-13 20:59:13 -05:00
.gitignore Added generic ruler generator 2018-06-12 05:20:00 -05:00
LICENSE.md Added GNU General Public License v3 2017-02-05 12:55:52 +00:00
README.md Add my RasterCarve program to README 2019-12-27 15:45:04 -05:00

Simple G-Code Generators

This repository contains a collection of Python scrips that generate simple G-Code for LinuxCNC. For me to fire up a high dollar CAD program and the use the POST processor to generate simple routines is a waste of time. So I'm writing a series of Python programs to do this. If you did an LinuxCNC install, or have Mac OS X, you already have all you need.

You can either clone this repository using Git or download the whole repository as a zip file.

All of these scripts, written by various authors, are licenced under the GNU General Public License.

The Scripts

  • Airfoil Generator - 3-4 Axis XY-XYUV Foam EDM Style airfoil generator
  • Arc Generator - generate an arc from the diameter, the start and end angle
  • Bezel Engraving - engraves a bezel like you would see on the front panel of a stereo around the volume control knobs
  • Bolt Circle Array - generates a circular array for canned drill cycles
  • Counterbore - generates the G-code for counterbores for socket head cap screws
  • Drilling Speeds-n-Feeds - helps you to calculate the speeds and feeds for drilling
  • Facing Software - super simple facing Generator
  • Grid - generate various shapes of grid to test the speed and the accuracy of a milling machine
  • Grill - drills a circular array of holes typically used as a speaker grill or as ventilation holes in a chassis panel
  • Pocketing - Rectangular-Circular Pocketing Generator
  • Text Engraving - This software engraves a text string
  • Multi-line Text Engraving - Engrave up to 10 lines of text
  • Ruler Engraving - Engrave generic ruler in metric or standard with text

Using Python scripts with Axis

To download a file right click on it and select "Save link as".

Do the following...

  • Place the .py files in your nc directory so it is easy to find
  • Right click on the .py file in your file browser and select Properties. On the Permissions tab check Execute on the Owner line.

Add the following lines to the [FILTER] section of the Axis ini file

[FILTER]
PROGRAM_EXTENSION = .py Python Script
py = python

If you don't have a [FILTER] section just add it

Now use File Open in AXIS to open face.py and after you generate the G-Code select Write to AXIS and Quit.

Using Python scripts with Windows

Rename the file from .py to .pyw

Download and install the python program from python.org.

Other G-Code Generators

CP1

CP1 is a conversational machining program written by Ray Henry and Matt Shaver. It allows you to create G-code files for rectangular and circular pocket milling, bolt circles, hexagonal and rectangular arrays of holes, and "bezels" whatever those are.

http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Cp1

Dxf2gcode - import a 2D DXF file and produce G-code

This program seems to work pretty well with DXF files from QCAD.

https://sourceforge.net/projects/dxf2gcode/

GCMC - G-Code Meta Compiler

GCMC is a front-end language for generating G-code, SVG and DXF for CNC mills, lathes, laser cutters and other numerical controlled machines employing G-code, SVG or DXF. The language is a context-free grammar created to overcome the archaic format of G-code programming and aims to be more readable and understandable.

http://www.vagrearg.org/content/gcmc

mGcodeGenerator

A script for Blender. It can generate gcode ideal for LinuxCNC :) it exports from mesh ( vertex / edge / edges (outlines) / objects ) to 2d, 2.5d and full 3d for (3axis mill).

http://wiki.linuxcnc.org/cgi-bin/wiki.pl?GcodeGenerator

OpenVoronoi and OpenCAMLib

There are some sample scripts and screenshots that use OpenVoronoi and OpenCAMLib:

https://github.com/aewallin/linuxcnc-scripts

Pycam - Drop Cutter Surfacing Software

A GPL 3D CNC Toolpath Generation program written by Lode Leroy.

http://pycam.wiki.sourceforge.net/

RasterCarve - Raster image engraving software

A GPLv2 raster engraving program similar to PhotoVCarve.

https://github.com/built1n/rastercarve

TTT: Truetype Tracer

A TrueType tracer with DXF and G-Code output

http://www.timeguy.com/cradek/truetype