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!
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