FirePlank / G-Code-Interpreter

A G code interpreter that supports some of the basic functions, it replaces the machine client with stub functions for example responses.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GCode Interpreter

This is a GCode Interpreter which can parse basic GCode commands and print a response using stub methods to simulate machine actions.

Installation

To run this project, make sure you have Python 3.10 or higher installed on your system.

  1. Clone this repository using git clone https://github.com/FirePlank/G-Code-Interpreter.git.
  2. Go to the project directory using cd G-Code-Interpreter.
  3. Run the project using python cnc.py <filename.gcode> in the terminal.

Note

This interpreter is not designed to handle all the GCode commands. Adding more commands is fairly easy, and the code is structured in such a way that it will be easy to extend the functionality if needed. The commands are handled using match statements for clarity and readability, so make sure you have Python version 3.10 or higher if you intend to run the software.

About

A G code interpreter that supports some of the basic functions, it replaces the machine client with stub functions for example responses.

License:GNU General Public License v3.0


Languages

Language:Python 95.7%Language:G-code 4.3%