Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 953 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 953 Bytes

Gcode Manipulator

what an uncreative name...

This program performs Cartesian translations on Gcode files. It can handle the following codes:

  • G Standard G-codes
  • M Machine codes
  • F Feedrate
  • P Dwell
  • S Spindle velocity
  • T tool change ID
  • ;comments

It is unconcerned with spaces and other whitespace, and will print neatly formatted output. It has low memory usage due to reading only one line at a time to avoid data duplication in memory. For this reason, it can handly very large files with almost no impact on system resources beyond the size of the original file. Efficiency, HAYO!

G-codes not listed are not supported. The source code is easy to extend, just add them to the specialRegex.

To build for your platform, simply type make. You may need to change the compiler. I use LLVM/Clang++, but GCC and MSVC should work fine. -std=c++1y may be an issue, try replacing it with -std=c++11 if make fails.

Good luck!