Skip to content

Feature Request - Custom step servo spindle #978

Open

Description

@XYartlab

I haven't used a step spindle yet, but when the control board has 6-8 axes, use $xx=4-8 to bind a specific axis as a step spindle, which offers more flexibility. I'm not sure how difficult this will be, but I plan to use RP2350B later to make a 6-axis board.
Last time I said the serial handwheel response was poor, so I tried making a DB15 handwheel plugin (0X87 report using formats like "MPG:2,X(/Y/Z/A/B/C),x1(/x10/x100)"), using PIO to read the encoder, then sending $J. At low speeds shake the handwheel, the handwheel moves step by step; at high speeds, the speed is mapped to different feeds. The results are quite good. Maybe I can open source the plugin and then improve it yourself, so grblHAL supports native handwheels for all MCUs.

Activity

  1. terjeio commented on Jul 2, 2026

    @terjeio
    Contributor

    Do you have a use case or use cases for binding a configurable axis as a spindle? Adding a setting will increase complexity and interfere with a change I have in the pipeline.

    Is your handwheel code is running on the controller or on a separate MCU?

  2. XYartlab commented on Jul 2, 2026

    @XYartlab
    Author

    Do you have a use case or use cases for binding a configurable axis as a spindle?
    No. I don't know much about Step Spindle.

    Is your handwheel code is running on the controller or on a separate MCU?
    This is implemented using mpg_xxx.c plugins and modifying report.c files and other files, running on the controller. The plugin only starts working when axes are selected, so it hardly consumes extra performance.

  3. XYartlab commented on Jul 28, 2026

    @XYartlab
    Author

    Do you have a use case or use cases for binding a configurable axis as a spindle? Adding a setting will increase complexity and interfere with a change I have in the pipeline.

    Is your handwheel code is running on the controller or on a separate MCU?

    I have successfully changed the primary axis to use the $ configuration for selection. Now, it supports switching the primary axis by setting $SS to 0/1. It also allows for directional movement using commands like G1A30F400 when the primary axis is not enabled. Additionally, I have configured the system to use the $ setting to customize the names of axes 4-8, rather than using the default configuration at compile time. If the axis names are X/Y/Z, they act as secondary axes, emitting the same pulses as usual.

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