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

    We need a verbose mode for general troubleshooting

    Scheduled Pinned Locked Moved
    General Discussion
    7
    14
    703
    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.
    • Cecilundefined
      Cecil @RandyL00123
      last edited by Cecil

      @randyl00123 What about using conditional Gcode with some global variable (turing on and off "verbose mode") and do conditional M117-display message in macro files?

      chrishammundefined 1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators @Cecil
        last edited by

        @cecil If you can attach a USB cable to your Duet, you can send M111 P3 S1 to see when G-codes are executed. It can be turned off again by sending M111 S0.

        Duet software engineer

        RandyL00123undefined 1 Reply Last reply Reply Quote 1
        • Stephen6309undefined
          Stephen6309 @RandyL00123
          last edited by

          @randyl00123 Use echo in the macro, it'll show up in the DWC console.

          1 Reply Last reply Reply Quote 0
          • RandyL00123undefined
            RandyL00123 @chrishamm
            last edited by

            @chrishamm said in We need a verbose mode for general troubleshooting:

            M111 P3 S1

            Do I NEED to use a USB, or will the web interface not transmit the verbose? I've used M117, but wasn't aware of M111, which I'm trying at the moment. Thanks for the tip!

            gloomyandyundefined 1 Reply Last reply Reply Quote 0
            • gloomyandyundefined
              gloomyandy @RandyL00123
              last edited by

              @randyl00123 Pretty sure you need a usb console to see the m111 output.

              RandyL00123undefined 1 Reply Last reply Reply Quote 0
              • RandyL00123undefined
                RandyL00123 @gloomyandy
                last edited by

                @gloomyandy One thing I have always found confusing about the gcode explanations is the inconsistancy of definitions. For example, in M111, Pnn is the module number. What is a "module", how did it recieve a number, and what does that "number"refer to?

                RandyL00123undefined gloomyandyundefined dc42undefined 3 Replies Last reply Reply Quote 0
                • RandyL00123undefined
                  RandyL00123 @RandyL00123
                  last edited by

                  @randyl00123 I found the same confusions when trying to figure out what an 'axis' vs motor number vs drive axis, etc. I'm not new to programming, but I find it quite confusing trying to interpret what is being said. Personally, I'm finding that examples of code from other people to be more helpful when actually writing the code. The Gcode pages are ok once you actually understand what a gcode does, and it's particular switches.

                  Granted, I've decided to build one of the most complicated kinematics out there. I have a background that includes programming batch files back in DOS days, Qbasic, Pascal, C and C++ in College, so if I'm having a hard time understanding the nuances of the gcode explanation language, I can't even imagine the confusion of a nube.

                  1 Reply Last reply Reply Quote 0
                  • gloomyandyundefined
                    gloomyandy @RandyL00123
                    last edited by

                    @randyl00123 In fairness M111 is really a pretty low level sort of tool and probably unlikely to be used by many folks. Like many gcodes if you just enter the code (M111 in this case), you get some information. With M111 it will display all of the available modules (and their associated numbers) and the debug level set for each.

                    RandyL00123undefined 1 Reply Last reply Reply Quote 0
                    • RandyL00123undefined
                      RandyL00123 @gloomyandy
                      last edited by

                      @gloomyandy One other "wish list" item: a way to comment out blocks of code, rather than semi colon every single line...ie C++ uses // \ or /// / to comment out a larger block of code.

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

                        @randyl00123 said in We need a verbose mode for general troubleshooting:

                        @gloomyandy One thing I have always found confusing about the gcode explanations is the inconsistancy of definitions. For example, in M111, Pnn is the module number. What is a "module", how did it recieve a number, and what does that "number"refer to?

                        Send M111 and it will list all the module numbers.

                        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