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

    Is there a basic guide to set the duet up as a CNC

    Scheduled Pinned Locked Moved
    CNC
    4
    25
    1.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.
    • A Former User?
      A Former User
      last edited by

      The only CNC specifc config is https://duet3d.dozuki.com/Wiki/Gcode#Section_M453_Select_CNC_Printer_Mode

      Work coordinates are described in G10 and G54

      https://duet3d.dozuki.com/Wiki/Gcode#Section_G10_Set_workplace_coordinate_offset_or_tool_offset
      https://duet3d.dozuki.com/Wiki/Gcode#Section_G54_to_G59_3_Select_coordinate_system

      1 Reply Last reply Reply Quote 0
      • Asdasd1234undefined
        Asdasd1234
        last edited by

        Thanks @bearer

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

          @Asdasd1234 said in Is there a basic guide to set the duet up as a CNC:

          but it only wants to give me a .nc file rather than a .gcode even though I'm picking Grbl. Do I just re-name the file or something?

          yeah the post processor will output gcode but the extension is .nc by default

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

            See also https://duet3d.dozuki.com/Wiki/Configuring_RepRapFirmware_for_a_CNC_machine.

            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
            • Asdasd1234undefined
              Asdasd1234
              last edited by

              thanks guys ill read into this now

              1 Reply Last reply Reply Quote 0
              • Asdasd1234undefined
                Asdasd1234
                last edited by

                Ok so am I right in saying :

                • I have a gcode file (just a re-named .nc file from fusion 360)
                • I home my machine using g28.
                • I jog the machine to the start of the file gcode
                • Use G10 L20 P2 X0 Y0 Z0 To set the co-ords for the start of the file.
                • then run the file?

                How do I ensure the file runs using the work co-ords and not the machine co-ords? Do I need to specify it at the start of the file?

                A Former User? Danalundefined 3 Replies Last reply Reply Quote 0
                • A Former User?
                  A Former User @Asdasd1234
                  last edited by

                  @Asdasd1234 said in Is there a basic guide to set the duet up as a CNC:

                  How do I ensure the file runs using the work co-ords and not the machine co-ords? Do I need to specify it at the start of the file?

                  Think there is an option in your post processor to either run G28 or G54 at the start of the exported g-code? Been awhile since I've messed with that stuff. You can review the top of the exported g-code to verify what you get.

                  1 Reply Last reply Reply Quote 0
                  • Danalundefined
                    Danal
                    last edited by

                    @Asdasd1234 said in Is there a basic guide to set the duet up as a CNC:

                    How do I ensure the file runs using the work co-ords

                    All CNC machines that follow G-Code standards are always in a work coordinate system.* The default at power up is G54. When you do the G10 L20 P2, you are setting the "second" system, namely G55.

                    Therefore, you can have a G55 at the very start of your file, or issue a G55 via the Web interface.

                    * Always, with the single exception of an individual line that starts with G53, which will operate in machine coordinates. G53 is not 'sticky' and therefore applies to only the line where it appears.

                    Delta / Kossel printer fanatic

                    Asdasd1234undefined 1 Reply Last reply Reply Quote 0
                    • Asdasd1234undefined
                      Asdasd1234 @Danal
                      last edited by Asdasd1234

                      @Danal
                      Ah, so I could do the following?

                      • G28 home the machine
                      • Jog machine to start of file.
                      • Run macro that does:
                        -G10 L20 P2 X0 Y0 Z0
                        -G55
                      • Then run the file?

                      Sorry for all the questions, I just realllly dont want to crash the machine into an axis or the bed etc

                      Danalundefined dc42undefined 2 Replies Last reply Reply Quote 0
                      • Danalundefined
                        Danal @Asdasd1234
                        last edited by Danal

                        @Asdasd1234 said in Is there a basic guide to set the duet up as a CNC:

                        Ok so am I right in saying :

                        • I have a gcode file (just a re-named .nc file from fusion 360)
                        • I home my machine using g28.
                        • I jog the machine to the start of the file gcode
                        • Use G10 L20 P2 X0 Y0 Z0 To set the co-ords for the start of the file.
                        • then run the file?

                        How do I ensure the file runs using the work co-ords and not the machine co-ords? Do I need to specify it at the start of the file?

                        You are basically correct, here is a slight rephrasing of a couple of lines, just for clarity.

                        • I have a gcode file (just a re-named .nc file from fusion 360) Correct, upload that file via the Web interface
                        • I home my machine using g28. Correct
                        • I jog the machine to the start of the file gcode to the tip of the cutter just touching the origin of the stock. Normally in the 'lower left' corner, and just touching top-of-stock in Z.
                        • Use G10 L20 P2 X0 Y0 Z0 To set the co-ords for the start of the file. the second work-coordinate-system (G55) to match the physical object I want to cut
                        • then run the file? Issue a G55, then, Yes, in the Jobs tab, click then file, then OK

                        Delta / Kossel printer fanatic

                        1 Reply Last reply Reply Quote 0
                        • Danalundefined
                          Danal @Asdasd1234
                          last edited by

                          @Asdasd1234 said in Is there a basic guide to set the duet up as a CNC:

                          G28 home the machine
                          Jog machine to start of file.
                          Run macro that does:
                          -G10 L20 P2 X0 Y0 Z0
                          -G55
                          Then run the file?

                          Yes

                          Delta / Kossel printer fanatic

                          Asdasd1234undefined 1 Reply Last reply Reply Quote 0
                          • Asdasd1234undefined
                            Asdasd1234 @Danal
                            last edited by

                            @Danal
                            Thats great, I'll try that now. Thanks a bunch for the help people. Its much appreciated

                            1 Reply Last reply Reply Quote 0
                            • Danalundefined
                              Danal
                              last edited by

                              No problem.

                              This does assume you've set Z0 to top of stock in Fusion. This is a fairly normal CNC practice.

                              Delta / Kossel printer fanatic

                              Asdasd1234undefined 1 Reply Last reply Reply Quote 0
                              • Asdasd1234undefined
                                Asdasd1234 @Danal
                                last edited by

                                @Danal
                                I'm pretty sure I have, but will double check

                                1 Reply Last reply Reply Quote 1
                                • Asdasd1234undefined
                                  Asdasd1234
                                  last edited by

                                  Ah, I might have an issue.

                                  F360, when set to grbl only lists out the co-ordinates and doesn't do a G1/0 before them like:

                                  G1 Z1 F500
                                  Z-1.999
                                  Y26.033 Z-2 F1200
                                  Y26.034
                                  X28.967 Y26.035
                                  X28.595 Y26.047
                                  X28.194 Y26.057
                                  X27.792 Y26.067
                                  
                                  

                                  Will this still work?

                                  1 Reply Last reply Reply Quote 0
                                  • Danalundefined
                                    Danal
                                    last edited by

                                    No. Duet doesn't support "sticky" G1 or G0. You will need to select a different post processor, or modify that one.

                                    Delta / Kossel printer fanatic

                                    dc42undefined 1 Reply Last reply Reply Quote 0
                                    • Danalundefined
                                      Danal
                                      last edited by

                                      I use Mach3 post. Which isn't perfect, but it does put G1 on each line.

                                      Delta / Kossel printer fanatic

                                      1 Reply Last reply Reply Quote 0
                                      • Asdasd1234undefined
                                        Asdasd1234
                                        last edited by

                                        i found a post processor online for duet. I need to manually delete out the G54 at the start, but my test pen-plot has come out perfect. Thanks a bunch!

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

                                          @Asdasd1234 said in Is there a basic guide to set the duet up as a CNC:

                                          I have a gcode file (just a re-named .nc file from fusion 360)

                                          you can edit the .cps file and change the line that says (line 28 in the grbl if thats what you used)
                                          extension = "nc";
                                          to say
                                          extension = "gcode";
                                          to not have to do the renaming.

                                          @Asdasd1234 said in Is there a basic guide to set the duet up as a CNC:

                                          I need to manually delete out the G54 at the start

                                          try putting a "2" in WCS offset here if you wanted G55 instead.
                                          Setup -> Post process tab:
                                          2e1ae776-7f80-4a86-8b74-fe046c94d92e-image.png

                                          (edit: or you could edit the file and change 1 to 2 in line 353 to make it permament and not have to set it each time.)
                                          ((or search for var workOffset = currentSection.workOffset;and change workOffset = 1; to workOffset = 2; a few lines below if your post is different from the grbl))
                                          (((or if you just wanted to get rid of the whole G54 thing try changeing the Safe retracts parameter in the post to ClearanceHeight
                                          bc723522-0a24-4561-9959-30403c9e2562-image.png )))

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

                                            @Danal said in Is there a basic guide to set the duet up as a CNC:

                                            No. Duet doesn't support "sticky" G1 or G0. You will need to select a different post processor, or modify that one.

                                            Yes it does, when in CNC mode and using recent firmware versions (2.05 or 3.x).

                                            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

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