Skip to content

2.9.10 - Spindle remains running on exit of linuxcnc if using MB2HAL RS485 #4529

Description

@rodw-au

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions