https://github.com/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.
https://github.com/fireplank/g-code-interpreter
Last synced: 8 months ago
JSON representation
A G code interpreter that supports some of the basic functions, it replaces the machine client with stub functions for example responses.
- Host: GitHub
- URL: https://github.com/fireplank/g-code-interpreter
- Owner: FirePlank
- License: gpl-3.0
- Created: 2023-02-05T19:05:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-06T12:58:07.000Z (over 3 years ago)
- Last Synced: 2025-03-22T15:37:34.407Z (about 1 year ago)
- Language: Python
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 ` 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.