Skip to content

How to configure the min and max switch #116

Open

Description

@didecibel

Hello, I can't figure out how to configure the min and max limit switches. And what are the pins. I am not fluent in C so...
This is on a rpi pico if someone could help me. It seams that is done via the driver.c file but I don't know how.
Thanks a lot.

Activity

  1. transferred this issue fromgrblHAL/coreon Feb 28, 2025
  2. added a commit that references this issue on Feb 28, 2025
  3. terjeio commented on Mar 1, 2025

    @terjeio
    Contributor

    It is done in the map file by assigning pins to the function.
    E.g. #define X_LIMIT_PIN_MAX 12

    Easiest is to copy an existing map file to my_machine_map.h, modify it and enable that in my_machine.h.

  4. hanke-cnc commented on Mar 25, 2025

    @hanke-cnc

    It is done in the map file by assigning pins to the function. E.g. #define X_LIMIT_PIN_MAX 12

    Easiest is to copy an existing map file to my_machine_map.h, modify it and enable that in my_machine.h.

    hi, terjeio, I don't quite understand why some non-grbl commercial CNC controllers need to configure 3 limit switches on one axis? I don't quite understand why they do this? Each axis has a positive limit, a negative limit, and a mechanical origin, is it because they are too traditional?

  5. terjeio commented on Mar 25, 2025

    @terjeio
    Contributor

    @hanke-cnc If the home switch is separate from limit switches you may need three, home min, limit min and max. Grbl/grblHAL can combine home and limit inputs and use soft limit instead of limit max so only one is required (unless auto-squaring is enabled). Commercial controllers may require three for practical and/or safety reasons?
    FYI the grblHAL core supports separate home and limit switches, but not all drivers and no(?) board maps do.

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