Skip to content

Unexpected Behaviour when Turning On/Off Multiple Spindles #598

@engigeer

Description

@engigeer

I've been playing around with adding the capability for controlling a second simultaneous spindle to my machine and have encountered an unexpected quirk with the on/off behaviour. For background, this is on a FlexiHAL board with the default primary spindle configured as PWM0, and the additional/secondary spindle set to ONOFF1_DIR from the spindle plugin.

It seems that somehow the firmware may not be correctly parsing the M03/M05 commands for the primary spindle ($0), depending on on the most recent state of the secondary spindle ($1) and vice versa. Here is an example test sequence to replicate the issue:

M03 $0; (SPINDLE 0 TURNS ON)
M03 $1; (NOTHING HAPPENS)

M05 $1; (NOTHING HAPPENS)
M03 $1; (SPINDLE 1 TURNS ON)

M05 $0; (SPINDLE 0 TURNS OFF)
M05 $1; (NOTHING HAPPENS)

M03 $1; (NOTHING HAPPENS)
M05 $1; (SPINDLE 1 TURNS OFF)

I have done some preliminary digging through the spindle configuration code, thinking that perhaps somewhere a flag is being reset when it should not be, but so far have not had any luck in determining the source of this issue. I was hoping you might be able to advise if what I am attempting is unsupported, or if perhaps there is something else I might try to narrow down the source of the issue.

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