Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 2.01 KB

readme.md

File metadata and controls

55 lines (40 loc) · 2.01 KB

What is this

Converts a gcode file to all "G21" / metric / millimeters.

The Richauto A11/B11 controller on the wood shop "axion precision iconic" CNC routers don't work correctly with inch units.

Without this post-processing script those controllers will read the G20 and use inches for X/Y/Z but NOT for the feed speed. I'm not sure what it does about IJK.

This script works by replacing any G20 (inch) sections of the gcode with G21 (millimeter) versions of the numbers. Command codes modified are A, B, C, F, I, J, K, R, U, V,

If no G20 is in your gcode, this script will not assume inches and it will do nothing. You could add a G20 at the top of your code and try again.

Comments are currently lost in the output because I'm lazy.

Install

Just download and run the releases built on github. https://github.com/Brown-County-FIRST-Robotics/MakeMetricGcode/releases/latest

If you downloaded the source

git clone  [email protected]:Brown-County-FIRST-Robotics/MakeMetricGcode.git
cd MakeMetricGcode
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt

Run

If you have a downloaded release executable just run it

If you downloaded the source

python guimain.py 

Build

Using github actions to make a release with windows and linux asssets

create a release in github. A workflow in .github/workflows/release.yml will build the artifacts and stick them on the release

Linux

. venv/bin/activate
pip install -r requirements.txt
pip install -r build_requirements.txt
pyinstaller -F guimain.py -n make_metric_gcode

Todo