Gcode clustering GRBLHAL

Has anyone Build a GRBLHAL firmware for MKS DLC32 with Lightburn cluster enabled??
If so how’s it working ?
.

http://svn.io-engineering.com:8080/?driver=ESP32&board=BlackBox%20X32

I don’t recall any specific mention of DLC32 and grblHAL and clustering but newer Ortur firmware I believe is now based on grblHAL and those work fine with clustering as far as I know.

1 Like

The best description of Gcode Clustering is a Gcode Compressor.

Basically it strips all the Gcode of irrelevant motion data (or known) and only delivers the important steps Svalues

This is primarily important to Heavy image rastering and can improve speeds up to 40% i found.

Would be interesting to see if it works nicely with the WebBuilder versions.

Just an example, small snippet of the same Grayscale image:

NO Cluster:

; LightBurn 1.7.04
; GRBL device profile, absolute coords
; Bounds: X100 Y111.5 to X200 Y188.5
G00 G17 G40 G20 G54
G90
M4
; Image @ 10000.0205 mm/min, 1% power
M8
G0 X3.937Y4.3898
G0 Z0
; Layer C00
G91
G1 X0.1654F393.702S10
G1 X0.0078S9.9
G1 X0.0158S9.8
G1 X0.0079S9.9
G1 X0.0078S9.9
G1 X0.0158S9.9
G1 X0.0079S10
G1 X0.0078S9.9
G1 X0.0079S9.7
G1 X0.0079S9.6
G1 X0.0079S9.7
G1 X0.0078S9.6
G1 X0.0158S9.4
G1 X0.0078S9.7
G1 X0.0079S9.7

CLUSTER (note the example below has 4x more code than above)

; LightBurn 1.7.04
; GRBL device profile, absolute coords
; Bounds: X100 Y111.5 to X200 Y188.5
G00 G17 G40 G20 G54
G90
; GCode clustering enabled (max 8)
G4 P1
M4
; Image @ 10000.0205 mm/min, 1% power
M8
G0 X3.937Y4.3898
; Layer C00
G91
G1 X0.1654F393.702S10
G1 X0.063S9.9:9.8:9.8:9.9:9.9:9.9:9.9:10
G1 X0.0629S9.9:9.7:9.6:9.7:9.6:9.4:9.4:9.7
G1 X0.063S9.7:9.6:9.6:9.9:9.8:9.6:9.4:9.4

@berainlb Ortur certainly has a team of programmers optimizing and solving issues.
@gilaraujo Thanks for the example, it’s a way of reducing the code, more or less as I understand it.
I’d be more interested to know the output if someone who did tests like @misken simply selected that option in the default firmware and it worked fine. As it is experimental:

Sorry, I usually open new topics or replies in a new tab, sometimes there are a lot of tabs and sometimes I can’t see everything, with the aggravating factor that my browser is configured not to auto-load pages, but forum updates pass by and can be found on an open page and are “marked” as viewed, but I can only see them by going to the tabs.

Yes, I did, and it was working. But I don’t know if I saved it somewhere :slight_smile:
I then wanted to tailor it to Sculpfun lasers and compiled a firmware for Sculpfun S30 lasers (that use a very similar board).
I always had problems using the web installer and compiled my own version finally. I think I have my workspace at home (I’m currently on holidays).

It was working, but I didn’t do extensive testing to get the new limits of the machines.

Good info to know. tanks.
Happy New Year.