开源改变世界

用您自己的代码替换 M 命令 #1612

推推 grbl 2年前 (2023-02-03) 189次浏览
打开
ltspicer 打开了这个问题 2021 年 8 月 27 日 · 3条评论
 Open

Replace M commands with your own code#1612

ltspicer opened this issue on Aug 27, 2021 · 3 comments

评论

用您自己的代码替换 M 命令 #1612
贡献者
香料 评论了 2021 年 8 月 27 日  

您好
,是否可以在 bCNC 中配置,例如,执行以下代码而不是 M3 S20000?
(像一个宏)

M03 S1000
G4 P 0,5
M03 S4000
G4 P 0,5
M03 S10000
G4 P 0,5
M03 S20000

我没有 VFD。直流主轴电机通过 PWM(https://de.aliexpress.com/item/32713561151.html)直接连接到控制板。

用您自己的代码替换 M 命令 #1612
贡献者作者
香料 评论了 2021 年 8 月 30 日  

我编写了一个将 Target3001 (EMC²) G 代码转换为 GRBL 的 Linux 脚本。

将解压后的 target2grbl 文件复制到 Linux 系统的 /usr/local/bin 中(这只有在 root 权限下才可以,即 sudo)并设置权限为 744。

使用:
在Target3001的ngc目录下打开终端,输入target2grbl。
!!该目录下只能有一个ngc文件!!
创建一个名为 neue.ngc 的新文件。

对我来说,Target3001 中的输出设置是 EMC² (LinuxCNC)。

也许它也可以在 Win10 下运行。但我还没有测试过它(还)。

target2grbl.zip

用您自己的代码替换 M 命令 #1612

你好,

请帮帮我。
我在 bCNC 软件的帮助下使用 GRBL 0.9,我想在我们的 CNC 机器上安装塔灯/堆栈灯。
我想在我们的机器上添加 2 个输出以指示我们是在运行程序(绿灯)还是在暂停(在程序中称为“保持”/红灯)。为此,我必须在 bCNC 上工作,这是我们所有机器中使用的软件。

So, when the program is running, the green light has to be lighted, and if we’re in pause, the red light has to be lighted. The orange one will probably be used for something else in the future.
To do that, I’ll have to detect the state of the program and send it to the lights (2 outputs).

Please tell me in which file of bCNC and which type of program I have to use?

Here is the file which I am using on Python 2.7.16 :
bCNC01.ZIP

I want to attach this type of Tower Lamp/Stack Light :
用您自己的代码替换 M 命令 #1612

Please suggest me in which file of bCNC and which type of program I have to use?

用您自己的代码替换 M 命令 #1612
ContributorAuthor

Pls create a new (issue) post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
标签
还没有
项目

还没有

发展

没有分支机构或拉取请求

2名参加者
用您自己的代码替换 M 命令 #1612用您自己的代码替换 M 命令 #1612

喜欢 (0)