Contact me: hankecnc@gmail.com

主轴冷却液意外的 UI 行为 #142

推推 grbl 3年前 (2023-02-02) 231次浏览
关闭
AustinSaintAubin 打开了这个问题 2017 年 3 月 2 日 · 7条评论
关闭

主轴冷却液意外的 UI 行为#142

AustinSaintAubin 打开了这个问题 2017 年 3 月 2 日 · 7条评论

注释

主轴冷却液意外的 UI 行为 #142
贡献者
奥斯汀圣奥宾 评论了 2017 年 3 月 2 日  

主轴小部件中的冷却液按钮未按预期运行。
我有两个独立的冷却/排屑系统。
一个连接到 GRBL 的 Flood Coolant,另一个连接到 GRBL 的 Mist Coolant。
我可以独立启用/禁用它们或同时打开它们,这很好,我希望能够同时打开/关闭/或只打开一个。

主轴冷却液意外的 UI 行为 #142

问题是 UI 按钮不能正确反映 Flood Coolant 和 Mist Coolant 的状态
如果我启用 Flood Coolant,然后也启用 Mist Coolant,两者在 UI 上都显示为关闭。
Flood Coolant 和 Mist Coolant 应该能够在 UI 中相互独立切换。

[cncjs@v1.9.0-alpha.4]

主轴冷却液意外的 UI 行为 #142
合作者

@AustinSaintAubin

你可以告诉我你的 $G 命令的结果吗?

我刚刚在https://github.com/gnea/grbl/blob/master/grbl/report.c#L321跟踪代码,我猜它可能会在雾和洪水都打开时报告 M78。

 report_util_gcode_modes_M();
  #ifdef ENABLE_M7
    if (gc_state.modal.coolant) { // Note: Multiple coolant states may be active at the same time.
      if (gc_state.modal.coolant & PL_COND_FLAG_COOLANT_MIST) { serial_write('7'); }
      if (gc_state.modal.coolant & PL_COND_FLAG_COOLANT_FLOOD) { serial_write('8'); }
    } else { serial_write('9'); }
  #else
    if (gc_state.modal.coolant) { serial_write('8'); }
    else { serial_write('9'); }
  #endif
主轴冷却液意外的 UI 行为 #142
合作者
奇顿 评论了 2017 年 3 月 3 日  

你好@chamnit

我从 config.h 中取消注释 ENABLE_M7 并发现了一些奇怪的东西。当 M7 (Mist) 和 M8 (Flood) 都打开时, $G 解析器状态报告M78,请问这是否是期望的行为?谢谢。

主轴冷却液意外的 UI 行为 #142

主轴冷却液意外的 UI 行为 #142

@cheton: 应该说M7 M8。谢谢你让我知道。我会尽快修复它。

主轴冷却液意外的 UI 行为 #142
合作者

看起来不错。感谢您的及时帮助。

gnea/grbl@ 8491225

主轴冷却液意外的 UI 行为 #142
贡献者作者
奥斯汀圣奥宾 评论了 2017 年 3 月 3 日  

惊人的!
现在测试 GRBL 代码。

主轴冷却液意外的 UI 行为 #142
贡献者作者

CNCjs UI 仍然需要工作,如果 M7 和 M8 都在 UI 上,则显示只有 M8 处于打开状态。
但是输出看起来不错。

> $G
[GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S40
ok
> M7
ok
> $G
[GC:G0 G54 G17 G21 G90 G94 M5 M7 T0 F0 S40]
ok
> M8
ok
> $G
[GC:G0 G54 G17 G21 G90 G94 M5 M7 M8 T0 F0 S40]
ok
> M9
ok
> $G
[GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S40]
ok
> M8
ok
> $G
[GC:G0 G54 G17 G21 G90 G94 M5 M8 T0 F0 S40]
ok
主轴冷却液意外的 UI 行为 #142
合作者

已在 1.9.0-alpha.5 中修复