jes notes Index Gallery . 4th axis Blog ideas Micro-machining CNC milling machine Paint colours CNC Router Shaft passers Software ideas Stepper motor clock Toy ideas Watchmaking

2024-01-17

Last modified: 2024-01-17 20:58:55

< 2024-01-16 2024-01-19 >

G-code sender

Some more thoughts:

It would be good to have some indication of the length of the Grbl look-ahead planner buffer.

The code for streaming G-code should eventually use the "character-counting" technique, see https://github.com/gnea/grbl/blob/master/doc/markdown/interface.md

But also, when you pause a job, you need to know exactly what line it was working on when it stopped.

To start with we can just use "Simple Send-Response" of course.

Check whether the planner buffer, or the serial receive buffer, are longer in Grblhal. In fact can we query these from the device itself?

Some Grblhal notes in https://github.com/grblHAL/core/wiki/For-sender-developers

There are a few caveats with the "character-counting" technique:

Auto-connect should be optional, in case you have other serial devices you don't want it talking to255

Even if you use "Simple Send-Response", is there a way to work out which lines have actually executed, rather than just been put in the planning buffer? Is there even a way to work out how much is in the planning buffer?

Detecting Grbl:

OK, if you enable bit 2 in $10 then you get a field like Bf:15,128, showing the available space in the planner buffer and serial receive buffer. Obviously the first one we receive (before we send anything) tells us the total size.

You can find out if the probe pin is triggered because you'll get a Pn:P in a status report.

There is an option to enable line number reporting in the status report, but it seems off by default.

Modes I'll want:

I'll always want visible:

In modes, I'll want to see:

Almost everything should be doable with the mouse, by clicking on a button labelled with the keyboard key that actuates it. Would be cool if pressing the keyboard key triggers the button click animation.

< 2024-01-16 2024-01-19 >