LaserGRBL icon indicating copy to clipboard operation
LaserGRBL copied to clipboard

FLUIDNC scraper compatibility.

Open brakthehun opened this issue 2 years ago • 16 comments

FluidNC reports motion control a little differently through $axes request and $spindle request. Current issue is the homing cycle / max move speed / limits / spindle power / laser mode uses a $$ request which FluidNC doesn't respond to the same as GRBL. Only returns $10

brakthehun avatar Aug 05 '22 01:08 brakthehun

Is this a FluidNC issue or a LaserGRBL issue?

Can you give a more detailed example of the messages sent by FluidNC? If possible, can you log the whole communication (LaserGRBL, menu "?", "activate extended log")

arkypita avatar Aug 16 '22 08:08 arkypita

2022-08-16 21_47_08-Window 2022-08-16 21_44_29-Window 2022-08-16 21_45_01-Window 2022-08-16 21_46_14-Window

brakthehun avatar Aug 17 '22 04:08 brakthehun

comlog.txt

brakthehun avatar Aug 17 '22 04:08 brakthehun

LaserGRBL is compatible with GRBL, and with firmware capable of behaving like GRBL.

Based on what I read here FluidNC it has basic compatibility, and as far as I can see from comlog.txt it seems to me that work quite well.

Feature like $axes and $spindle and other things specific to this firmware are not part of the GRBL specification and therefore are not supported in LaserGRBL.

arkypita avatar Aug 17 '22 14:08 arkypita

Is there anything I did not understand in your request? Can you rephrase it?

arkypita avatar Aug 17 '22 14:08 arkypita

I would like the homing button to show up and the speed max to be set. I guess I'm asking LaserGRBL to support FluidNC

brakthehun avatar Aug 19 '22 08:08 brakthehun

When scraping,, The max speed is set by : $100 $101 In FluidNC: $axes/X/max_rate_per_min: $axes/Y/max_rate_per_min:

Laser power max is stored in: $laser/speedmap: instead of $30

brakthehun avatar Sep 20 '22 21:09 brakthehun

I implemented the $30 command in FluidNC. Still, the Focus Toggle in LaserGRBL is not working for me. Any hints? Thanks

image

buster3 avatar Oct 09 '22 10:10 buster3

What version of LaserGRBL are you using? Look like an old version that does not support formula in custom button.

arkypita avatar Oct 09 '22 10:10 arkypita

I use the latest v4.9.4

buster3 avatar Oct 09 '22 12:10 buster3

Any hints here? Should the formula be evaluated by fluidnc or by laserGRBL?

buster3 avatar Jan 16 '23 19:01 buster3

By LaserGRBL, but LaserGRBL should be able to read $30 value from controller to be able to evaluate formula. If this is not possible, just edit custom button and put a fixed S value based on your needs.

arkypita avatar Jan 16 '23 21:01 arkypita

That's the issue with the laserGRBL scraper. With fluidNC you can query $30 but it doesn't return any value. You would have to query: $laser/speed_map And it would return one or two mins and a max. The max would be the $30 value.

brakthehun avatar Jan 17 '23 05:01 brakthehun

That's the issue with the laserGRBL scraper. With fluidNC you can query $30 but it doesn't return any value. You would have to query: $laser/speed_map And it would return one or two mins and a max. The max would be the $30 value.

His does not hold any more for the last fluidNC release. See https://github.com/bdring/FluidNC/issues/648

And https://github.com/arkypita/LaserGRBL/issues/1885#issuecomment-1272512714

buster3 avatar Jan 17 '23 06:01 buster3

I revisited this issue. Can anybody confirm that LaserGRBL uses '$$' and expects a output for '$30'? How should the output format for $$ look like? Thanks

buster3 avatar Oct 06 '23 19:10 buster3

LaserGRBL send $$ than expect to receive the "ok" response (acknowledge to $$). After ok received, all the lines the macine send is queued into a list (until a timeout since the last message received) then this list is parsed to extract config parameters.

a config parameter is something like "$" at the beginning of a line, followed by numbers, by any spaces, by "=" and then everything. this regular expression is used: "^$\s*=(.*)"

arkypita avatar Oct 06 '23 20:10 arkypita