Welcome to Our Community

Some features disabled for guests. Register Today.

Get current coordinates - any command in GRBL 1.1f?

Discussion in 'Control Software' started by tulenimama, Sep 15, 2022.

  1. tulenimama

    Builder

    Joined:
    Sep 8, 2022
    Messages:
    2
    Likes Received:
    0
    Hey guys,

    is there any command (or generaly any way) how to get current coordinates? Like where the machine is right now? I am writing code in Python so I don't see coordinates and we need to call functions depending on current coordinates. So I am just looking for something like '$whereareyou' and expect probably 'x10y20' or anything...

    Thank you for any help or useful hint.
    Have a nice day.
    Jakub
     
  2. Rob Taylor

    Rob Taylor Master
    Builder

    Joined:
    Dec 15, 2013
    Messages:
    1,470
    Likes Received:
    749
    David the swarfer and tulenimama like this.
  3. tulenimama

    Builder

    Joined:
    Sep 8, 2022
    Messages:
    2
    Likes Received:
    0
    God! Thanks it could really work. I had problem with it but after I sent command '$X' before 'G00X1' and '$?' after that - now it looks that it has information I need...

    b"[MSG:'$H'|'$X' to unlock]\r\n"
    b'[MSG:Caution: Unlocked]\r\n'
    b'ok\r\n'
    b'<Idle|MPos:1.000,0.000,0.000|FS:0,0|WCO:0.000,0.000,0.000>\r\n'
    b'[HLP:$$ $# $G $I $N $x=val $Nx=line $J=line $SLP $C $X $H ~ ! ? ctrl-x]\r\n'
    b'ok\r\n'

    Thank you very much.

    P.S.: even the 'IDLE' information could be enough if I knew that machine has finished all commands in queue - so suddenly I have two choices how to work with that. Perfect.
     

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