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

    First cut success - with questions!

    Scheduled Pinned Locked Moved
    Duet Web Control
    8
    66
    3.3k
    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.
    • Nightowlundefined
      Nightowl
      last edited by Nightowl

      Implementing those changes has caused a different problem, I can't run any g-code files.

      The console is reporting the following error:
      M32 "0:/gcodes/Initial Test Cut.nc"
      File 0:/gcodes/Initial Test Cut.nc selected for printing
      Cancelled printing file 0:/gcodes/Initial Test Cut.nc, print time was 0h 0m
      Error: G0/G1: target position outside machine limits

      I've REM'd out the global variable in config.g, but that didn't make any difference. Does it matter where this is located within the config.g file? I've put it after General Preferences.

      I can't get far enough to test the pause.g or resume.g files.

      Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
      I'm still on my learning curve, so take everything I say with caution!

      RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

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

        @nightowl999 which firmware version are you using? If you are using recent firmware that supports the 'global' command then I think you must have made another change at the same time. The position of that command in config.g is not critical, but I suggest near the end.

        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

        Nightowlundefined 2 Replies Last reply Reply Quote 0
        • Nightowlundefined
          Nightowl
          last edited by

          This has become rather perplexing...

          Yesterday I could run a couple of test cuts without any problem. In fact, I was really pleased!

          After implementing the changes above (although I didn't check the machine before I made those changes today!) the files won't run, reporting the error:

          M32 "0:/gcodes/Initial Test Cut.nc"
          File 0:/gcodes/Initial Test Cut.nc selected for printing
          Cancelled printing file 0:/gcodes/Initial Test Cut.nc, print time was 0h 0m
          Error: G0/G1: target position outside machine limits

          So I reverted to the original pause.g and resume.g files and REM'd out the global command, but I still get the same issue.

          I have had the outside machine limits error before, when trying to sort the axes and limit switches out, but that got resolved.

          Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
          I'm still on my learning curve, so take everything I say with caution!

          RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

          1 Reply Last reply Reply Quote 0
          • Nightowlundefined
            Nightowl @dc42
            last edited by Nightowl

            @dc42

            Board: Duet 3 MB6HC (MB6HC)
            Firmware: RepRapFirmware for Duet 3 MB6HC 3.3 (2021-06-15)

            Which is a bit weird, because I keep copies of the version upgrades (in case I need to go back) and the version I have in storage is 3.4

            Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
            I'm still on my learning curve, so take everything I say with caution!

            RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

            1 Reply Last reply Reply Quote 0
            • Nightowlundefined
              Nightowl @dc42
              last edited by

              @dc42

              Just updated the firmware, but there's no difference.

              I guess I'll start from scratch and go through the RRF config tool again.

              Ho hum 😢 😢

              Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
              I'm still on my learning curve, so take everything I say with caution!

              RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

              fcwiltundefined 1 Reply Last reply Reply Quote 0
              • jay_s_ukundefined
                jay_s_uk
                last edited by

                @nightowl999 why? its obvious whats going on. you're trying to run a job outside the axis limits. redoing the config won't change that

                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                1 Reply Last reply Reply Quote 1
                • fcwiltundefined
                  fcwilt @Nightowl
                  last edited by

                  @nightowl999 said in First cut success - with questions!:

                  I guess I'll start from scratch and go through the RRF config tool again.

                  IMHO the RRF config tool is a barrier to learning the g-code that controls your machine.

                  The issue of trying to move past the axis limits is simple. However you generated the code it was using axis limits that did not match your machine.

                  How do you generate code for a CNC machine?

                  Thanks.

                  Frederick

                  Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                  Nightowlundefined 2 Replies Last reply Reply Quote 1
                  • Nightowlundefined
                    Nightowl @fcwilt
                    last edited by

                    @jay_s_uk

                    @jay_s_uk said in First cut success - with questions!:

                    @nightowl999 why? its obvious whats going on. you're trying to run a job outside the axis limits. redoing the config won't change that

                    I guess I must be, but redoing the config (or at least looking at my original config to compare with the existing one) was the only place I felt I could reliably start from, but there is little difference between the two files.

                    Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                    I'm still on my learning curve, so take everything I say with caution!

                    RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                    jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                    • jay_s_ukundefined
                      jay_s_uk @Nightowl
                      last edited by

                      @nightowl999 exactly, little difference so is a pointless task.
                      What are your M208 limits?
                      Are you using workplace offsets?
                      How big is the part?
                      What coordinates is the part at in the CAM software?
                      Are you working with 0 as the top of the stock or the top of the spoil board?

                      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                      Nightowlundefined 1 Reply Last reply Reply Quote 1
                      • Nightowlundefined
                        Nightowl @fcwilt
                        last edited by

                        @fcwilt

                        @fcwilt said in First cut success - with questions!:

                        The issue of trying to move past the axis limits is simple. However you generated the code it was using axis limits that did not match your machine.
                        How do you generate code for a CNC machine?

                        Yesterday I was using Vectric Cut2D Trial version to cut their 'Avalon' sample file and ran it successfully, but this was before I made any of the changes shown above.

                        I made the file changes today and then used Vectric Cut2D Desktop version (I've just bought the license) to run a small test file, and get the error.

                        I've homed the machine after turning it on, moved the gantry to - and set - the work zero and loaded the file, then I got the error. IO am able to jog the machine in any of the 6 directions away from the work zero, and the machine goes back to that spot when I click Home All, but again the file won't run.

                        What have I missed?

                        Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                        I'm still on my learning curve, so take everything I say with caution!

                        RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                        1 Reply Last reply Reply Quote 0
                        • Nightowlundefined
                          Nightowl @jay_s_uk
                          last edited by Nightowl

                          @jay_s_uk

                          M208 limits:
                          X0 Y0 Z0 S1
                          X550 Y787 Z100 S0

                          Am I using workplace offsets?
                          I am. I've jogged the cutter to the stock zero and set that as work zero.

                          How big is the part?
                          10" x 10" x 0.5"

                          What coordinates is the part at in the CAM software?
                          OMG. Give me a minute...

                          Am I working with 0 as the top of the stock or the top of the spoil board?
                          Top of the stock

                          Update:
                          Tool position is shown as 0, 0, 0
                          Machine position is shown as 47, 234, 92

                          Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                          I'm still on my learning curve, so take everything I say with caution!

                          RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                          fcwiltundefined 1 Reply Last reply Reply Quote 0
                          • Nightowlundefined
                            Nightowl
                            last edited by

                            So you both have a point....

                            I wasn't really concentrating on where the spindle was in relation to the project when testing it today, but when I moved it closer to the front, left of the working area, the file ran an air cut successfully.

                            I'm not sure if this is legacy Duet, but with my S3 CNC machine I could pretty much put the stock anywhere on the spoil board and, as long as I set the work zero properly, it would cut fine. I would have thought the same would be true for a Duet-controlled CNC machine. Perhaps I'm wrong.

                            From this experience, I will definitely have to experiment some more, just to see what the machine vs software limits are, then I won't make an idiot of myself - again!

                            Thank you, guys 👍

                            Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                            I'm still on my learning curve, so take everything I say with caution!

                            RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                            jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                            • jay_s_ukundefined
                              jay_s_uk @Nightowl
                              last edited by

                              @nightowl999 well it is the same, but you need to make sure that whatever you're cutting is within the limits of the machine. If it goes outside your maximum limits it won't run

                              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                              Nightowlundefined 1 Reply Last reply Reply Quote 0
                              • Nightowlundefined
                                Nightowl @jay_s_uk
                                last edited by

                                That's actually a good safety feature, @jay_s_uk. One of the reasons I got rid of the S3 was because it would do random and inexplicable things, resulting in deeper than expected holes in the stock!

                                The file I tried to run was to check the calibration of the machine, i.e. a 3" diameter circle and a 3" square in a horizontal line on a 10" piece of stock, so I have to assume it was setup too far over, but it didn't seem to be.

                                Time for some experimentation...

                                Thanks again.

                                Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                                I'm still on my learning curve, so take everything I say with caution!

                                RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                                1 Reply Last reply Reply Quote 0
                                • fcwiltundefined
                                  fcwilt @Nightowl
                                  last edited by

                                  @nightowl999 said in First cut success - with questions!:

                                  I am. I've jogged the cutter to the stock zero and set that as work zero.

                                  What does that mean? How is it done?

                                  In the 3D printer world the slicer program knows the limits of the printer.

                                  If you tried to slice an object that was too big the program would issue a warning.

                                  If you tried to slice an object that was not too big but you positioned it in the slicers "virtual printer" so that some part of it was outside the printer limits the program would also issue a warning.

                                  If you successfully sliced an object but forced the printer X=0 Y=0 point to some other location (using a G92 command - something you normally would never do) then you could encounter a problem if that resulted in some part of the object being outside the printer limits.

                                  Does you program work anything like that?

                                  Frederick

                                  Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                  jay_s_ukundefined Nightowlundefined 2 Replies Last reply Reply Quote 0
                                  • jay_s_ukundefined
                                    jay_s_uk @fcwilt
                                    last edited by

                                    @fcwilt CNC uses physical endstops to know where the machine home is, however you don't have to place the stock you want to cut at 0,0. you can set it anywhere on the spoilboard (bed in the 3d printer world) and then tell RRF where that stock is by setting its 0,0 point as a workplace offset.

                                    Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                    fcwiltundefined 1 Reply Last reply Reply Quote 0
                                    • fcwiltundefined
                                      fcwilt @jay_s_uk
                                      last edited by

                                      @jay_s_uk said in First cut success - with questions!:

                                      @fcwilt CNC uses physical endstops to know where the machine home is, however you don't have to place the stock you want to cut at 0,0. you can set it anywhere on the spoilboard (bed in the 3d printer world) and then tell RRF where that stock is by setting its 0,0 point as a workplace offset.

                                      I don't use workplace offsets but I was under the impression they worked as you have used them.

                                      I will need to do some testing.

                                      Frederick

                                      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                      1 Reply Last reply Reply Quote 0
                                      • Nightowlundefined
                                        Nightowl @fcwilt
                                        last edited by

                                        @fcwilt
                                        In programs like Vectric Cut2D, I would design a project to be cut out of a piece of material, usually wood ('real' wood, plywood or MDF). Some people would use the limits of the stock, e.g. use a 6x4x4" block of wood to cut a hole in the middle and call it a box, but I prefer to cut the box out of a larger block, so square edges and a flat top of the block aren't too important, although a flat base is.

                                        The Z zero is (for me) on the top of the block and X and Y zero are to the front left of the block. Others may do things differently, e.g. using the middle of the block as X and Y zero, or the baseboard as their Z zero.

                                        In my case, the tip of the cutter is set on the top of the material at the X and Y start point and click Go, then the machine cuts and leaves a nice shiny box! The Vectric software I use has a size limit (24" x 24") so I can't cut anything larger than that, unless I tile it - but I'm only just starting out and that strategy is a bit advanced for me.

                                        Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                                        I'm still on my learning curve, so take everything I say with caution!

                                        RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                                        1 Reply Last reply Reply Quote 1
                                        • Nightowlundefined
                                          Nightowl
                                          last edited by Nightowl

                                          I'm not getting this, but I'm tired and increasingly frustrated, so I'm going to leave it for now, but here are a couple of photos to show what my issues are (or at least the issues I'm struggling to understand).

                                          This is the maximum work area, although there's quite a bit of dead space at the rear (as the spindle is mounted on the front of the X gantry) and about 20mm inside the Y rails...

                                          IMG_3955.jpeg

                                          This is the workpiece at the front, with a tape measure to show how big the project area is (10x10") from the work zero (where the spindle is)...

                                          IMG_3970.jpeg

                                          But I'm still getting the "Error: G0/G1: target position outside machine limits", which doesn't make sense.

                                          I'll write a smaller project in Cut2D and see if that makes a difference.

                                          Time for a beer with my dinner, I think!

                                          Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                                          I'm still on my learning curve, so take everything I say with caution!

                                          RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                                          fcwiltundefined 1 Reply Last reply Reply Quote 0
                                          • fcwiltundefined
                                            fcwilt @Nightowl
                                            last edited by

                                            @nightowl999

                                            We've got company right now and will for several hours yet.

                                            It it weren't for that I would run some tests here and determine what is going on.

                                            Sorry I cannot help you this minute.

                                            Frederick

                                            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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