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

    Laser power adjustment/speed

    Scheduled Pinned Locked Moved
    Laser Cutters
    6
    30
    2.5k
    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.
    • Phaedruxundefined
      Phaedrux Moderator
      last edited by Phaedrux

      I'm not sure if that comment that the Duet doesn't support G1 S moves to control the laser is accurate anymore as of firmware 2.02

      https://duet3d.dozuki.com/Wiki/Gcode#Section_G0_G1_Move

      Snnn In firmware 2.02 and later, when switched into Laser mode (see M452), this parameter sets the laser power. When not switched into Laser mode, and always in firmware 2.01 and earlier, it defines the move type (see the description of the H parameter).
      Very important! If you use M452 to put your machine into Laser mode, when upgrading firmware from 2.01 or earlier to 2.02 or later you must replace all S parameters in G0/G1 commands in homing files etc. by H parameters. This is because S is now used to control laser power, for compatibility with programs that generate GCode files for laser cutters.

      Z-Bot CoreXY Build | Thingiverse Profile

      raykholoundefined 1 Reply Last reply Reply Quote 0
      • raykholoundefined
        raykholo @Phaedrux
        last edited by

        @phaedrux said in Laser power adjustment/speed:

        I'm not sure if that comment that the Duet doesn't support G1 S moves to control the laser is accurate anymore as of firmware 2.02

        Oh cool! I'm not up to date on Duet/ RRF since firmware 2.0 came out. So then the question will become how well RepRapFirmware handles these lines such as G1 X0.1 S0.6 F6000 (that's Smoothieware syntax, or in RRF case S255) when receiving several thousands of them a second for image rastering.

        I don't know what the performance of that will be like.

        Speeds were slow when we tested it with the "Marlin-resembling" previous syntax, and to be clear, that was the source of my comments in the LightBurn Forum.

        clearlynotstefundefined dc42undefined 2 Replies Last reply Reply Quote 0
        • clearlynotstefundefined
          clearlynotstef @raykholo
          last edited by clearlynotstef

          @raykholo ha! I expected you'd find your way here eventually, but not in practically real time! Small world of people with these overlapping interests I suppose. I appreciate your help so far!

          1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @raykholo
            last edited by dc42

            @raykholo said in Laser power adjustment/speed:

            @phaedrux said in Laser power adjustment/speed:

            I'm not sure if that comment that the Duet doesn't support G1 S moves to control the laser is accurate anymore as of firmware 2.02

            Oh cool! I'm not up to date on Duet/ RRF since firmware 2.0 came out. So then the question will become how well RepRapFirmware handles these lines such as G1 X0.1 S0.6 F6000 (that's Smoothieware syntax, or in RRF case S255) when receiving several thousands of them a second for image rastering.

            I don't know what the performance of that will be like.

            Speeds were slow when we tested it with the "Marlin-resembling" previous syntax, and to be clear, that was the source of my comments in the LightBurn Forum.

            You can choose the S value (255, 1.0 or any other value you like) that represents full laser power, see the R parameter in the M452 command.

            We are already talking to LighBurn about high speed rastering and I have proposed a laser rastering extension to the G1 command. See https://docs.google.com/document/d/1SMWFJUXfRSxe-p-veWEP-NU3A9ESKU_TVGB1Y1ADAV8/edit?usp=sharing.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 0
            • A Former User?
              A Former User
              last edited by

              @dc42 said in Laser power adjustment/speed:

              https://docs.google.com/document/d/1SMWFJUXfRSxe-p-veWEP-NU3A9ESKU_TVGB1Y1ADAV8/edit?usp=sharing.

              requires access, you want do deal with the requests or make it public?

              dc42undefined 1 Reply Last reply Reply Quote 0
              • dc42undefined
                dc42 administrators @A Former User
                last edited by

                I'm sorry about that, I've updated the link in my post above. Try again.

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                1 Reply Last reply Reply Quote 1
                • dc42undefined
                  dc42 administrators
                  last edited by

                  Laser velocity ramping is now working in the RRF 3 beta at https://www.dropbox.com/sh/3azy1njy3ayjsbp/AACquxr2m00eV568RZg5QG5wa?dl=0.

                  Duet WiFi hardware designer and firmware engineer
                  Please do not ask me for Duet support via PM or email, use the forum
                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                  1 Reply Last reply Reply Quote 0
                  • A Former User?
                    A Former User
                    last edited by

                    Perfect timing, just got a new low power uv laser to use with photosensitive pcbs - hope to test it asap

                    1 Reply Last reply Reply Quote 0
                    • dc42undefined
                      dc42 administrators
                      last edited by dc42

                      The laser power is adjusted every 5 milliseconds at present during acceleration and deceleration. I hope this is OK. In the longer term I will probably make the adjustment interval the greater of 3ms and 5 cycles at the laser PWM frequency.

                      Duet WiFi hardware designer and firmware engineer
                      Please do not ask me for Duet support via PM or email, use the forum
                      http://www.escher3d.com, https://miscsolutions.wordpress.com

                      1 Reply Last reply Reply Quote 0
                      • clearlynotstefundefined
                        clearlynotstef
                        last edited by

                        Wow this post has been so helpful! I will be following the progress with lightburn integration closely, I'm so excited to hear that you're already working on it. RRF has the potential to be outstanding with laser as it is with filament!

                        Best,
                        Stefan

                        1 Reply Last reply Reply Quote 0
                        • clearlynotstefundefined
                          clearlynotstef
                          last edited by

                          Do you have any idea of when Lightburn compatibility might come to fruition? I'm so happy to hear that you were working on it, but I can't get a sense of if its moving along or just something that was discussed and left alone.

                          Thanks,
                          Stefan

                          dc42undefined 1 Reply Last reply Reply Quote 0
                          • dc42undefined
                            dc42 administrators @clearlynotstef
                            last edited by dc42

                            @clearlynotstef said in Laser power adjustment/speed:

                            Do you have any idea of when Lightburn compatibility might come to fruition? I'm so happy to hear that you were working on it, but I can't get a sense of if its moving along or just something that was discussed and left alone.

                            Thanks,
                            Stefan

                            LightBurn compatibility in what sense? I am fairly certain that firmware 2.03 and 3.0beta are already compatible with LightBurn. The difference is that 3.0beta implements velocity ramping.

                            Duet WiFi hardware designer and firmware engineer
                            Please do not ask me for Duet support via PM or email, use the forum
                            http://www.escher3d.com, https://miscsolutions.wordpress.com

                            1 Reply Last reply Reply Quote 0
                            • TonyPagettundefined
                              TonyPagett
                              last edited by

                              Do I need to activate this velocity ramping or does it just work as is when in laser mode?

                              dc42undefined 1 Reply Last reply Reply Quote 0
                              • dc42undefined
                                dc42 administrators @TonyPagett
                                last edited by dc42

                                @TonyPagett said in Laser power adjustment/speed:

                                Do I need to activate this velocity ramping or does it just work as is when in laser mode?

                                RRF3 implements velocity ramping when in laser mode, provided that you specify the laser power using S parameters on the G1 commands. So you don't need to enable it in Lightburn. RRF2 does not.

                                Duet WiFi hardware designer and firmware engineer
                                Please do not ask me for Duet support via PM or email, use the forum
                                http://www.escher3d.com, https://miscsolutions.wordpress.com

                                TonyPagettundefined 1 Reply Last reply Reply Quote 0
                                • TonyPagettundefined
                                  TonyPagett @dc42
                                  last edited by

                                  @dc42 Thank you.
                                  My next question is this. The following code moves the laser (CNC) in the defined square but only switches the laser on for the first line (or one side of the square).
                                  M3 S255
                                  G1 Y75.0000 Z0.01000 F2500.0
                                  G1 X75.00000
                                  G1 Y25.00000
                                  G1 X25.00000
                                  M03 S0

                                  If I add an S command to each line it works OK

                                  Is there a way round this?

                                  dc42undefined 1 Reply Last reply Reply Quote 0
                                  • dc42undefined
                                    dc42 administrators @TonyPagett
                                    last edited by dc42

                                    Select "laser power sticky" in your M452 command. Preferably, don't use M3 to set the laser power, just use a S parameter on the first G1 move.

                                    Duet WiFi hardware designer and firmware engineer
                                    Please do not ask me for Duet support via PM or email, use the forum
                                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                                    TonyPagettundefined 1 Reply Last reply Reply Quote 0
                                    • TonyPagettundefined
                                      TonyPagett @dc42
                                      last edited by

                                      Select "laser power sticky"

                                      How do I do this?

                                      1 Reply Last reply Reply Quote 0
                                      • dc42undefined
                                        dc42 administrators
                                        last edited by

                                        https://duet3d.dozuki.com/Wiki/Gcode#Section_M452_Select_Laser_Printer_Mode

                                        Duet WiFi hardware designer and firmware engineer
                                        Please do not ask me for Duet support via PM or email, use the forum
                                        http://www.escher3d.com, https://miscsolutions.wordpress.com

                                        TonyPagettundefined 1 Reply Last reply Reply Quote 0
                                        • TonyPagettundefined
                                          TonyPagett @dc42
                                          last edited by

                                          @dc42 You put "Laser power sticky" in M42 .
                                          That's what threw me 😁

                                          dc42undefined 1 Reply Last reply Reply Quote 0
                                          • dc42undefined
                                            dc42 administrators @TonyPagett
                                            last edited by dc42

                                            @TonyPagett said in Laser power adjustment/speed:

                                            @dc42 You put "Laser power sticky" in M42 .
                                            That's what threw me 😁

                                            Sorry about that!

                                            Duet WiFi hardware designer and firmware engineer
                                            Please do not ask me for Duet support via PM or email, use the forum
                                            http://www.escher3d.com, https://miscsolutions.wordpress.com

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