Welcome to Our Community

Some features disabled for guests. Register Today.

Save a g38.2 log file

Discussion in 'Control Software' started by afinador, Dec 31, 2021.

  1. afinador

    afinador New
    Builder

    Joined:
    Dec 31, 2021
    Messages:
    2
    Likes Received:
    0
    I am quite illiterate in programming.
    But I had an idea of using a cnc apparatus that, through a touch probe, would measure the height and depth of the keys on a piano, using the G code
    I would only have two axes, in a very simple mechanical design.
    I have experience with mach3 where I use the M40 to save a log file (I need to take this data to excel which will calculate the amount to be changed on the keyboard later).
    So I ask:
    Is there no way for this in GRBL? ie save a log file on an sd card g38.2 results?
    I would like to use an offline controller...
    What does it take for this?
    Hire a programmer to change GRBL or make new code?
    A happy New Year!
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,871
    Likes Received:
    4,283
    GRBL already does report the positions after a Probe, as you are writing your own interface code, see Grbl v1.1 Interface · gnea/grbl Wiki

    You can just log the results each time a "[PRB..." string arrives, simple text parsing to get the values
     
    afinador likes this.
  3. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,430
    Likes Received:
    1,907
    you can do a plugin for bCNC in python to do this for you
     
    afinador likes this.
  4. afinador

    afinador New
    Builder

    Joined:
    Dec 31, 2021
    Messages:
    2
    Likes Received:
    0
    Thank you very much.

    I will investigate how to use this.
    Happy New Year!
     

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