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

    How to get DWC to Display what line of Gcode it is on?

    Scheduled Pinned Locked Moved Unsolved
    CNC
    7
    45
    2.7k
    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.
    • Tinmanundefined
      Tinman @gloomyandy
      last edited by

      @gloomyandy You may find it interesting that I can take a file that consistently fails at around 2% of completion, delete the last 90% of the file so that the part where it fails is still intact, re-run the file and it sails right past the place it failed before.

      Are there issues related to file size when doing CNC files?

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

        @Tinman I see you are running firmware 3.5beta2. Please upgrade to 3.5beta3 and see whether the issue still occurs.

        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

        Tinmanundefined 1 Reply Last reply Reply Quote 0
        • Tinmanundefined
          Tinman @dc42
          last edited by

          @dc42 Thanks for looking into this. I have just upgraded to beta 3 and still having this problem. I'd be happy to send you a file to look at.

          Tinmanundefined 1 Reply Last reply Reply Quote 0
          • Tinmanundefined
            Tinman @Tinman
            last edited by

            @Tinman Until then I need to break CNC jobs into 4 to 8 multiple parts to get the machine to run them without needing to do a hard reset. Problem with a hard reset is that it results in the loss of WCS which is almost always probed on a surface that has now been milled away.

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

              @Tinman I think the issue may be related to the multiple motion systems in RRF 3.5 and the code in your stop.g file. Does the problem go away if you remove the M0 command from the end of the job file? What commands do you have in stop.g?

              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

              Tinmanundefined 1 Reply Last reply Reply Quote 0
              • Tinmanundefined
                Tinman @dc42
                last edited by

                @dc42 I opened this topic because I wanted to be able to run a full job with multiple toolchanges from a single gcode file. Perhaps I will start a separate thread about recovering WCS from an e-stop.

                For now though, would you take a look at one of my multi toolchange files that fails on beta 2 and beta 3?

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

                  @Tinman as I said in my previous post, I think the issue is related to the contents of your stop.g file. So I need to see the contents of that file.

                  I can think of a way to save and restore the WCS offsets, so please start a separate thread on that topic.

                  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

                  Tinmanundefined 1 Reply Last reply Reply Quote 0
                  • Tinmanundefined
                    Tinman @dc42
                    last edited by Tinman

                    @dc42 There's not a single line of active code in my stop.g just a few disabled lines:

                    ; stop.g
                    ; called when M0 (Stop) is run (e.g. when a print from SD card is cancelled)
                    ;
                    ; generated by RepRapFirmware Configuration Tool v3.3.15 on Thu Dec 01 2022 17:27:42 GMT-0500 (Eastern Standard Time)

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

                      @Tinman thanks. Please make the file available. I am away from the office so I won't be able to try it for a few days.

                      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

                      Tinmanundefined 4 Replies Last reply Reply Quote 0
                      • Tinmanundefined
                        Tinman @dc42
                        last edited by

                        @dc42 I had to change extension from .nc to .gc for site to allow upload.

                        Thanks again for looking at this. It gets about halfway through the initial face milling process before it freezes. Roughly (very roughly) around line 500.

                        Axle Insert Flat Side Complete Job.gc

                        1 Reply Last reply Reply Quote 0
                        • Tinmanundefined
                          Tinman @dc42
                          last edited by

                          @dc42 The behaviour of this file is even more troubling:

                          Tall Axle Insert Whole Job.gc

                          The Z axis randomly climbed by about 70mm during the facing operation and then froze. There is nothing unusual in that section of the file. This kind of behaviour is dangerous in a cnc machine. The latest RRF updates have been great however as our mill becomes more mature and our users want to run real jobs this is going to be a serious obstacle.

                          OwenDundefined 1 Reply Last reply Reply Quote 0
                          • OwenDundefined
                            OwenD @Tinman
                            last edited by OwenD

                            @Tinman
                            Based on @dc42's comments above about the problem possibly being related to the multiple motion systems have you tried

                            • Removing M0 from the file (if a second motion system is getting ahead it may be stopping the job)
                            • If the above is true, it may also turn off the spindle when it reaches M5, so maybe remove as well
                            • Liberally sprinkle M400 in the code (say every 100 lines). Do this especially before your tool change.

                            Can't explain the lifting by 70mm unless that was part of another file that's activated by M0, Tnnn or a trigger

                            What's in "ManualToolChange.g" ?

                            Tinmanundefined 1 Reply Last reply Reply Quote 0
                            • Tinmanundefined
                              Tinman @OwenD
                              last edited by

                              @OwenD I previously mentioned that if I delete the last 90% of the file it sails through the trouble section without problem. I suspect it has to do with file length. It seems too simple but I have no other theories.

                              dc42undefined OwenDundefined 2 Replies Last reply Reply Quote 0
                              • dc42undefined
                                dc42 administrators @Tinman
                                last edited by

                                @Tinman the file length will affect how long to takes the second file reader to find the M0 at the end of the file, or run out of file if there isn't a M0 command.

                                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

                                Tinmanundefined 1 Reply Last reply Reply Quote 0
                                • Tinmanundefined
                                  Tinman @dc42
                                  last edited by

                                  @dc42 I do have an M0 at the end of the file. Compared to my 3D printer files these cnc files are quite small. Please look at the file I uploaded.

                                  1 Reply Last reply Reply Quote 0
                                  • OwenDundefined
                                    OwenD @Tinman
                                    last edited by

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • Tinmanundefined
                                      Tinman @dc42
                                      last edited by Tinman

                                      @dc42 Please look at my file and tell me why it crashes the board the way it does? I need to be able to support other makers and users of our Milo cnc mill and this has really got me stuck.

                                      1 Reply Last reply Reply Quote 0
                                      • Phaedruxundefined Phaedrux marked this topic as a question
                                      • Tinmanundefined
                                        Tinman @dc42
                                        last edited by

                                        @dc42 I uploaded the file as you requested. Still hoping you can look at it.

                                        Tinmanundefined dc42undefined 2 Replies Last reply Reply Quote 0
                                        • Tinmanundefined
                                          Tinman @Tinman
                                          last edited by

                                          @Phaedrux I'm part of the Millennium Mills design team. I'd be happy to show you how our Milo CNC mill works and how this specific problem is affecting efficient toolpath generation. I think you're also in Canada so I could show you live if that works. I've been avoiding further macro generation because I don't want to recommend these methods to our users if this can't be fixed.

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

                                            @Tinman this is on my list to look at. It slipped below my radar for a while because the thread title doesn't describe the problem, or indeed suggest that there is a problem.

                                            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

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