Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    LaserWeb4 Support

    Scheduled Pinned Locked Moved
    Firmware developers
    2
    4
    623
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • keyz182undefined
      keyz182
      last edited by

      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 both DoStraightMove and DoArcMove (with a check to make sure it's ignored on G0). Does that seem right? I was thinking an L 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?

      1 Reply Last reply Reply Quote 0
      • resamundefined
        resam
        last edited by

        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).

        keyz182undefined 1 Reply Last reply Reply Quote 0
        • resamundefined
          resam
          last edited by

          Oh, and this forum thread in particular: https://forum.duet3d.com/topic/5821/major-performance-problem/12

          1 Reply Last reply Reply Quote 0
          • keyz182undefined
            keyz182 @resam
            last edited by

            @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 🙂

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA