Welcome to Our Community

Some features disabled for guests. Register Today.

GRBL Limit Switch and Pin Status

Discussion in 'Control Software' started by MotoDan, Sep 28, 2021.

  1. MotoDan

    MotoDan New
    Builder

    Joined:
    Sep 28, 2021
    Messages:
    4
    Likes Received:
    0
    Hello all,

    I'm fairly new to GRBL and am currently running v1.1f. I'm trying to read the state of my limit switches as well as any other pin states. I've tried setting $10 from 1 to 3, but still only get the same status with the "?" command.

    Here's what is being returned:
    <Idle|MPos:0.000,0.000,0.000|Bf:15,128|FS:0,0|Ov:100,100,100>

    I occasionally get:
    <Idle|MPos:0.000,0.000,0.000|Bf:15,128|FS:0,0|WCO:0.000,0.000,0.000>

    I've also tried issuing the ? command from both Candle and via a terminal emulator like Tera Term.

    I ultimately want to be able to query a spare pin (or repurposed one) for another function.

    Any help would be much appreciated!
    MotoDan
     
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,750
    Likes Received:
    4,265
    Refer to the Grbl Wiki > Interface page. The Pn: pin status return is discussed there
     
  3. MotoDan

    MotoDan New
    Builder

    Joined:
    Sep 28, 2021
    Messages:
    4
    Likes Received:
    0
    Thanks for your reply Peter. I’ve seen the wiki and a bit more, but am not able to get the reply that is expected.
     
  4. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,750
    Likes Received:
    4,265
    Definitely does, we use the same function to catch pin status for the Troubleshooting tab in CONTROL
     
  5. MotoDan

    MotoDan New
    Builder

    Joined:
    Sep 28, 2021
    Messages:
    4
    Likes Received:
    0
    Does it matter if I don't have anything connected to my GRBL board? My ? Status report is just not showing any pin or limit switch info.
     
  6. MotoDan

    MotoDan New
    Builder

    Joined:
    Sep 28, 2021
    Messages:
    4
    Likes Received:
    0
    OK, I finally figured out that I had to have something connected to any pin inputs in order for them to initially be seen via the '?' Status command.
    Thanks!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice