Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Documentation suggestions

    Documentation
    3
    6
    185
    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.
    • mikeabuilder
      mikeabuilder last edited by mikeabuilder

      Just got redirected to the Duet3D documentation form the wiki. Nice work. I have an editorial comment and two content suggestions.

      Editorial comment - It would be nice to be able to hide the navigation column on the left side of the page. That column and the page content column together take up about a third of the width of the window.

      Two suggestions on the meta commands page.

      1. It would be great to have a definition of "code block". I've wondered in the past and today, through trial and error, I found that an indented set of text (in a loop or if statement) is a unique code block. I was declaring variables in one and wondering why the variables were not available later, outside the if statement.

      2. A comment somewhere that if you are writing macros in a windows OS, set the EOL to be Linux-style (LF only). Windows default (CR LF) written macros work, but error messages count the CR and LF as two lines, so all line numbers were multiplied by 2.

      droftarts dc42 2 Replies Last reply Reply Quote 0
      • Referenced by  mikeabuilder mikeabuilder 
      • Moved from Gcode meta commands by  Phaedrux Phaedrux 
      • droftarts
        droftarts administrators @mikeabuilder last edited by

        @mikeabuilder I've added a notes section to the Meta Gcode Commands page, and added your second suggestion there. I'll check with @dc42 regarding the first.

        Ian

        Cartesian bed-slinger with Duet 3 Mini 5+ WiFi : RRP Fisher Delta v1 with Duet 2 Maestro : TronXY X5S with Duet 2 Wifi (in progress)

        1 Reply Last reply Reply Quote 0
        • mikeabuilder
          mikeabuilder last edited by

          Thanks Ian. I like the idea of a notes section for collecting little bits of useful info. And apologies for reading your username, hearing "Dro farts" in my head, and wondering who Dro is. 🙂

          droftarts 1 Reply Last reply Reply Quote 0
          • droftarts
            droftarts administrators @mikeabuilder last edited by

            @mikeabuilder it's actually 'Dr of tarts'. I spent a long time in GUI clinics. And got a masters in baking.

            Ian

            Cartesian bed-slinger with Duet 3 Mini 5+ WiFi : RRP Fisher Delta v1 with Duet 2 Maestro : TronXY X5S with Duet 2 Wifi (in progress)

            1 Reply Last reply Reply Quote 2
            • dc42
              dc42 administrators @mikeabuilder last edited by

              @mikeabuilder re#2, are you running in standalone or SBC mode? In standalone mode at least, LF and CRLF should behave the same.

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

                @dc42 - I'm running in standalone mode. To demo my observation I made two files (fail_file_CRLF.g fail_file_LF.g attached) with a bad command on line 3. One file was saved with windows EOL (CR LF) and the other with Linux EOL (LF only).

                I uploaded both to my macro directory and when I run them I get the following error messages:

                LF only - calls out a problem on line 3 as expected.

                21beb731-73b6-4f30-8a28-455f7c8f3b4f-image.png

                CRLF file - calls out problem on line 5. It's counting one line for the CR and one line for the LF on each of lines 1 and 2, so it thinks the error on line 3 is really line 5.
                5ef388ff-5639-4e35-9033-0cae1499c5cf-image.png

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