Originally shared by Franco “nextime” Lanza MarlinKimbra for lasers update to sync with upstream

Originally shared by Franco “nextime” Lanza

MarlinKimbra for lasers update to sync with upstream MarlinKimbra where now my patches are integrated.

Pre-configured branch for K40 with cooler and flowsensor:

Pre-configured branch for K40 with NO cooler and NO flowsensor:

Updated pronterface for the new M142 mcode:

Update inkscape plugin for new M142 mcode and better rastering:

Next will be the time to add M142 support for coolers to LaserWeb2 :slight_smile:

And remember, if you like my work on laser edition of MarlinKimbra, inkscape plugin and pronterface, support me by donating or even just by spread the project home:
https://www.nexlab.net/k40-laser/

It’s just like the M140 for setting target temperature on bed in 3d printers:

M142 SNN

Where NN can be any temperature as an int or float (25.5 or 25), or 0 to disable cooling

example: to set cooling:
M142 S25.3

To disable cooling:
M142 S0

The command answer with an “ok” as usual

the feedback for chiller temp and flow sensor is added to the answer of M105, normally used for other temperatures like extruders and/or heatbed in 3dprinters.

It just add “COOL: CXX.X/YY.Y @NNN” for cooler/chiller, where XX.X is the actual temperature in celsius, YY.Y is the target temperature in celsius, NNN is the PWM value ( 0-255 )

It also add add “FLOW: N.NN l/m” where N.NN is the flow value in liters per minute

Example answer to an M105 command:
ok COOL: C:25.6 /24.0 C@:200 FLOW: 5.86 l/min