LaserWeb4 Support
-
I'm looking at getting support into LaserWeb for Duet. One of the questions I got asked is as follows:
The second is the way how the laser power is set with gcode. Laser capable firmwares should accept S values as params of G1-G4 commands. That is ideal for engraving. Other firmwares like marlin do need a separate gcode line for the laser power (like M4 S128), which need some time and therefore slows down engraving a lot. Which type of gcode does the Duet firmware accept?
In smoothie, this is the
shift
parameter, see here.The S param on G1-4 would conflict with the current S param in reprapfirmware, but assuming using another letter is fine, from the source, it looks like I'd just need to add a call to
platform.SetLaserPwm
to bothDoStraightMove
andDoArcMove
(with a check to make sure it's ignored on G0). Does that seem right? I was thinking anL
parameter (L for laser, keep it simple). I'd also have to map from the input of 0-1 to 0-255 for the PWM (or potentially support both, if L < 1, L*255, else L). Does that make sense, anything I've missed? -
Did you see M452? It provides a laser mode. There are a few forum posts here describing how to use it, and also some problems with it.
I'm using LaserWeb together with M452 and M3/M5 command to do laser cutting (no engraving or rastering). -
Oh, and this forum thread in particular: https://forum.duet3d.com/topic/5821/major-performance-problem/12
-
@resam said in LaserWeb4 Support:
Did you see M452? It provides a laser mode. There are a few forum posts here describing how to use it, and also some problems with it.
I'm using LaserWeb together with M452 and M3/M5 command to do laser cutting (no engraving or rastering).Yes, I'm aware of this, and using it currently.
Just saw the last comment from @dc42 on that thread though:
Support for using the S parameter to control laser power on G1 moves will be added in firmware 2.02.
So this thread just became redundant