gnea / grbl

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
https://github.com/gnea/grbl/wiki
Other
4k stars 1.6k forks source link

examples for what sequence of bytes i send to and received from GRBL #1138

Open StefanL38 opened 2 years ago

StefanL38 commented 2 years ago

I have been searching with google trying to find information with examples that contain the exact bytesequence what is send over the serial intrface to the GRBL-software.

I have read this documentation: https://github.com/gnea/grbl/blob/master/doc/markdown/interface.md it does explain a lot but the only thing it says about a typical bytesequence sended to GRBL is

"The host PC interface simply sends a line of G-code to Grbl"

Well developpers how about adding a few examples how those lines of G-Code look like! Can I really send any line of G-Code to GRBL and GRBL will understand it? I highly doubt that. This means GRBL understands only a subset of possible G-Codes.

It would help a lt for developing a interface if you would provide a few examples right at that place of the documentaion

Attempt to precisely describing what I mean:

What I mean is: imagine a computer that is running for example "universal-g-code-sender" and send data to an arduino running the GRBL-firmware:

if you would connect a "sniffer"-interface on the Tx-Line (which sends the data from Computer-running-universal-gcode-sender) and a second "sniffer"-interface to the Rx-line (where the Arduino running GRBL-firmware sends back responses to universal-G-code-sender)

What bytesequence will be printed in the sniffing-software?

Sure this depends on the g-code that will be transferred but a few examples should give a pretty good overview about the pattern that GRBL expects.

This would answer questions like: Does the GRBL-software need a leading "<" and a trailing ">" as the start-/ endmarker? Does there have to be a space between XXZ-coordinates?

I know this is not an GRBL--firmwareissue, but it is a documentation-issue

So please post a link that guides me to such examples

best regards Stefan etc

langwadt commented 2 years ago

https://github.com/gnea/grbl https://github.com/gnea/grbl/wiki/Grbl-v1.1-Interface