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

    Laser Gcode S Sticky after G0 question

    Scheduled Pinned Locked Moved
    Laser Cutters
    5
    16
    1.1k
    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.
    • GeorgeMundefined
      GeorgeM
      last edited by

      I just got my laser working on my printer. If you are ok with buying a program PicEngrave will produce the correct gcode.
      https://www.picengrave.com/PicEngrave_Pro_6_+_Laser.htm
      It will let you decide if you want the Sxx on the same line or on seperate line. It will also let you dictate what M code will control the laser (M106 or M3 etc.)

      1 Reply Last reply Reply Quote 0
      • mrsolis93undefined
        mrsolis93
        last edited by

        I am also interested in getting lightburn to work with the Duet. I have attatched a CO2 laser tube onto the gantry of my CNC router. Currently I use machinekit to drive it as it has support for 3d printing head that I use sometimes.

        I would like to use the duet for its ease of use and its ability to sync dual z axis and y axis motors. It also supports bed leveling which machinekit does not. I would like that very much as mesh leveling on a 6'x4' bed can be very useful for keeping the nozzle and laserhead at the correct height.

        From what I have read, lightburn is not currently supported. I would still be waiting on the duet 3 to push my nema 23 motors though. Is there plans to support lightburn's gcode in the near future?

        EasyTargetundefined 1 Reply Last reply Reply Quote 0
        • mikeisamonkundefined
          mikeisamonk
          last edited by mikeisamonk

          At the moment I am loading gcode In notepad++

          notepadG1.png

          It should add an S value on all lines starting with G1
          This is only good if your using 1 level of power.

          Mike

          1 Reply Last reply Reply Quote 0
          • EasyTargetundefined
            EasyTarget @mrsolis93
            last edited by

            @mrsolis93 said in Laser Gcode S Sticky after G0 question:

            Is there plans to support lightburn's gcode in the near future?

            It may be a better idea to ask the same of the LightBurn people; they could support Duet as a controller; add a more appropriate header to the code and a S parameter to every active G command.
            Even if Duet solves the resume problem andsupports persisting the level from cut-to-cut, the gcode preamble (headers) will still be wrong.

            The LightBurn developers have made a decision not to support custom headers and commands. The available devices (controllers) are in a dropdown; and they just offer a few options on a per-controller basis. Duet is not in that list, so you will always need to post-process, until they add it 😉

            I understand their reasoning (avoiding some support and 'you broke my machine' hassles), but it does mean they need to be proactive in supporting popular controllers.

            From my perspective this is ok since it's grbl-laser support is perfect and I'm using grbl-esp32 in my engraver. I'm going to give it a go since it's cheap and probably makes a great alternative to my current free open source toolchain, aka InkScape and LaserWeb4.

            Disaster? The original Printeye is dying with RRF 3.5 (M208 depreciated).
            PrintPy2024 to the rescue!
            MicroPython based; with simple wiring and and no custom PCB.

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

              I've made a change to the source code to preserve the laser power across G0 commands. It will be in the 2.04RC3 release. I've done the build already, but I won't have time to test it until Wednesday.

              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

              mikeisamonkundefined 1 Reply Last reply Reply Quote 1
              • mikeisamonkundefined
                mikeisamonk @dc42
                last edited by

                @dc42 thanks for the update.
                Going to save me a lot of post processing. 👍

                1 Reply Last reply Reply Quote 0
                • mrsolis93undefined
                  mrsolis93 @EasyTarget
                  last edited by

                  @EasyTarget
                  What headers are necessary for the duet to run lightburn?

                  Wouldnt it be possible to just write a lightburn header Macro? I would have to use headers anyway for autoleveling since laser cutters don't usually support that anyway.

                  EasyTargetundefined mikeisamonkundefined 2 Replies Last reply Reply Quote 0
                  • EasyTargetundefined
                    EasyTarget @mrsolis93
                    last edited by

                    @mrsolis93 said in Laser Gcode S Sticky after G0 question:

                    What headers are necessary for the duet to run lightburn?

                    I dont really know.. not using my Dued for my CNC work I've never investigated; but if you look at the example given by @mikeisamonk in the OP you can see the sort of preamble that is needed.

                    Wouldnt it be possible to just write a lightburn header Macro? I would have to use headers anyway for autoleveling since laser cutters don't usually support that anyway.

                    It would indeed, the core problem being that LightBurn has nowhere to enter the header. So you'd need to post process, or persuade it's developers to add the Duet and support all the M307,452,571 combinations people might need.

                    Disaster? The original Printeye is dying with RRF 3.5 (M208 depreciated).
                    PrintPy2024 to the rescue!
                    MicroPython based; with simple wiring and and no custom PCB.

                    1 Reply Last reply Reply Quote 0
                    • mikeisamonkundefined
                      mikeisamonk @mrsolis93
                      last edited by

                      @mrsolis93
                      This is what I use. This is slightly different to the above code the max output is set to 1.00 as lightburn outputs from 0-1 when smoothie hardware is selected.

                      What laser are you using?
                      I had to invert and convert the ppm signal from 3.3 to 5v for my diode laser.

                      G00 G17 G21 G54
                      G90
                      
                      M307 H3 A-1 C-1 D-1       ; Disable Heater output on H3
                      M452 P3 S1 R1.00 F2000         ; Enable Laser mode, on output 3 (heater 3), with max intensity being 1.00, and a PWM frequency of 2000
                      M571 P3 F200 S0
                      
                      M3
                      

                      Mike

                      1 Reply Last reply Reply Quote 2
                      • mrsolis93undefined
                        mrsolis93
                        last edited by

                        Thanks for the header information!

                        I am using a 60w CO2 laser tube and power supply from amazon. Also picked up a mirror/lens kit to bounce it all around my CNC router.

                        I am still playing with it and determining whether it is worth it to keep it on my machine or move it to a separate one. Part of that is finding a board that will support all the different tasks.

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