This was unexpected for me but maybe others will disagree.
Controlling the spindle using Modbus RTU and mb2hal from a serial port.
If you issue a M3 S1000 (or any other speed) and then close Linuxcnc with the spindle still running, the spindle continues to rotate at that speed.
This seemed dangerous to me. I expected the spindle would stop rotating on a shutdown as that's a safety issue.
The solution was to unlinkp the Modbus control pin and setp it to an off state in shutdown.hal
This is not specific to mb2hal because when I controlled the spindle using a generic MODBUS RTU ethercat slave, the same thing happens.
I think LinuxCNC should globally disable the spindle on a shutdown without relying on shutdown.hal because the user may not notice this in his precommissioning tests.
This was unexpected for me but maybe others will disagree.
Controlling the spindle using Modbus RTU and mb2hal from a serial port.
If you issue a M3 S1000 (or any other speed) and then close Linuxcnc with the spindle still running, the spindle continues to rotate at that speed.
This seemed dangerous to me. I expected the spindle would stop rotating on a shutdown as that's a safety issue.
The solution was to unlinkp the Modbus control pin and setp it to an off state in shutdown.hal
This is not specific to mb2hal because when I controlled the spindle using a generic MODBUS RTU ethercat slave, the same thing happens.
I think LinuxCNC should globally disable the spindle on a shutdown without relying on shutdown.hal because the user may not notice this in his precommissioning tests.