MIT License

项目介绍

Sam-Freitas/python_to_GRBL 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 36 个 Star、10 次 Fork。

仓库全名
Sam-Freitas/python_to_GRBL
开源许可证
MIT License
Star 数
36
Fork 数
10

README 摘要

Controlling GRBL/CNC/gcode machines with python or MATLAB This simple implementation is an example of how to contol CNC machines running GRBL with python This script converts the supplied .gcode into movement without the use of a dedicated controlling application (e.g. CNCjs, OpenbuildsCONTROL, etc) I built this becuase a lot of the documentation for sending a stream of gcode to a grbl controller was written in…

完整内容见 GitHub 原始 README 或本页 。

常见问题

python_to_GRBL 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 36 个 Star。

python_to_GRBL 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 python_to_GRBL 的源码?

可以直接克隆仓库:git clone https://github.com/Sam-Freitas/python_to_GRBL.git;安装与运行步骤见仓库 README。

python_to_GRBL 最近还在维护吗?

仓库最近一次更新为 2024年1月18日,当前没有未关闭的 Issue;Star 数为 36,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A simple open-source python 🐍 to grbl 🤖 sender || Controlling 3-axis GRBL/CNC/gcode machines with python over a serial/usb connection that waits for completion of movement before sending the next command

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

G-code
MATLAB
Python

贡献者

README

Controlling GRBL/CNC/gcode machines with python or MATLAB

This simple implementation is an example of how to contol CNC machines running GRBL with python

This script converts the supplied .gcode into movement without the use of a dedicated controlling application (e.g. CNCjs, OpenbuildsCONTROL, etc)

I built this becuase a lot of the documentation for sending a stream of gcode to a grbl controller was written in python2 and no longer worked with python3 syntax. Additionally, many of the implementations did not buffer or wait for commands to finish before going onto the next, my script is an attempt to fix these issues

All tweaking and setup of the grbl controller should be done in an outside program (I recommend CNCjs), all this script does is read grbl_test.gcode and feeds each individual line to the grbl controller, waits for completion of said line, and then moves onto the next line of gcode.


How to use:

install python prerequisites

  python -m pip install pyserial

You most likely will have to change the COM port in simple_stream.py (or .m) to the associated port (Correct port can be found in an external CNC control software ex. CNCjs).

Note: Linux/Max COM ports have a different name and path type than windows com ports

run:

  python simple_stream.py

tested on:

MacOs (M1 Monterey arm64)
Python 3.9.5 | packaged by conda-forge | (default, Jun 19 2021, 00:24:55) [Clang 11.1.0 ] on darwin
Vscode 1.62.3
Openbuilds BlackBox GRBL controller
GRBL 1.1

Alt Text

评论

暂无评论