注释
|
只需将模态命令放在 .ini 文件中 [RS274NGC] |
|
I guess I was not clear enough – english is not my first language, sorry. On my machine, I have external buttons to control spindle. They are connected to halui spindle pins. If I pause a program and stop spindle, for example to check on tool or clear chips, after restarting spindle and resuming program, the spindle speed is 170 rpm, instead of 170m/min (G96 S170 M3). |
|
The spindle like the power off, the external button what does M5 do? I’m Italian and you? |
|
I have verified, even to me the problem arises, though putting G97 in .ini |
|
i have notcied the same also in tool touch off if you have been in CSS mode. set spindle in CSS mode from MDI/Auto, now in manual mode set spindle running manuly (fwd or rev) |
|
Using Master and Gmoccapy: Using G96, in any situation that you stop the spindle, G96 no longer works / applies. E.g.: (using MDI) Have to reapply G96 D2500 S120 after M3 every time. Expected behaviourG96 applies until G97 called, whatever happens to spindle M3/M4/M5 Alternate acceptable behaviourMachine defaults to G97 whenever M5 invoked, however there should be NO RPM / S value set, and therefore an error will show / active input is required from the operator |
|
Hello, i find this problem too. My HAL file call halui.spindle.stop if pressed the Spindle Stop button during program paused, and restarting spindle with halui.spindle.start, and the same situation happened (spindle starts with lowered speed in G96 mode). |
|
I found an (ugly?) fix for this. Since I don’t use git, I am posting the solution here (I am using 2.7.14, in master it is somehow different due to multispindle). emc_nml.hh:
emccanon.cc:
and finally halui.cc:
|


如果您在自动模式下点击 halui.spindle.stop 和 halui.spindle.start – 暂停,主轴模式将重置为 G97,并且切削速度的值将应用于主轴速度。
以下是我重现该问题所遵循的步骤:
运行该程序,在 G1 块中点击暂停并停止/重启主轴:
这是我期望发生的事情:
主轴模式和速度重置为具有适当 S 值的 CSS 模式
这是发生了什么:
主轴以恒定 RPM 模式重新启动,使用 G96 程序段中的 S 值