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

    search for gcodes

    Scheduled Pinned Locked Moved Solved
    Documentation
    6
    12
    465
    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.
    • nikschaundefined
      nikscha
      last edited by nikscha

      Hi all,
      small rant about the search in the new wiki:
      I really dislike how when I search for a gcode on the wiki search, there's often other articles displayed before it. Say I forgot the gcode (or parameters) for setting motor current, and I search for "set motor current", then the right entry only shows up on the 3rd spot: (meaning I can't just press enter to open it)

      b4b4203c-46ef-463e-8de6-612e26108414-image.png

      I wish there was a dedicated search for gcodes only.

      Also: The search engine can't deal with typos at all, and every single one of the words in the query has to match. How is this better than just using ctrl+f?

      I really like the new wiki, but please overhaul the search

      Stay in school

      deckingmanundefined 1 Reply Last reply Reply Quote 2
      • deckingmanundefined
        deckingman @nikscha
        last edited by

        @nikscha I find this useful for quickly finding gcodes. https://docs.duet3d.com/User_manual/Reference/Gcodes_by_function. (Setting motor currents comes under "Motion").

        The problem with searching on a text string is the same as not knowing the gcode number you want. Personally, I think it does a pretty good job because in your example, someone might want to set the base motor current (M906), someone else might want to set the standstill motor current reduction (M917) and someone else might want to know the command for setting the motor current as a percentage of normal current (M913). Even if the search result was limited to G (or M) codes, there are still 3 different "answers" for users who not might not know the exact terminology so only enter "motor current".

        Essentially, specific answers can only be given to specific questions.

        Ian
        https://somei3deas.wordpress.com/
        https://www.youtube.com/@deckingman

        nikschaundefined 1 Reply Last reply Reply Quote 1
        • nikschaundefined
          nikscha @deckingman
          last edited by

          @deckingman Thank you for the link, that's indeed helpful.

          But I disgree with you on this:

          @deckingman said in search for gcodes:

          The problem with searching on a text string is the same as not knowing the gcode number you want.

          I know exactly what gcode I'm looking for, I just don't remember the number (Personally I just have a hard time with that). So for me it would be easier if I could just type the name of the command instad.

          And it doesn't excuse the issue with typos. I (non-native speaker) sometimes misspell english words, and it would be nice if the search engine would be a bit more forgiving.

          Stay in school

          oliofundefined 1 Reply Last reply Reply Quote 0
          • oliofundefined
            oliof @nikscha
            last edited by

            @nikscha if you search for "gcode set motor current" you get M916 as the first result

            a41c364a-9157-41fc-98df-f4616a85ea5c-image.png

            So I would say @deckingman s point about precise searches yielding precise answers still holds true.

            As per "fuzzy matches" to searches, you already see that I get a number of matches that are not directly matching my search term. More than that and we get into the realm of the system sometimes helping too much, which is equally frustrating.

            <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

            nikschaundefined 1 Reply Last reply Reply Quote 0
            • nikschaundefined
              nikscha @oliof
              last edited by

              @oliof
              yeah that's not working so well...
              7f4a0b40-0ce0-4fe8-884d-35c96b8e8058-image.png

              And what if I spell "address" wrong? Not a single result, and the "did you mean..." are also wrong:
              38580b1d-0fc5-4d3b-8314-e1b7fc76154f-image.png
              (what's exapansion?)

              Stay in school

              nikschaundefined droftartsundefined 2 Replies Last reply Reply Quote 0
              • nikschaundefined
                nikscha @nikscha
                last edited by nikscha

                @nikscha
                Just now I wanted to update the firmware for a can expansion board, but searching for "gcode can board update" doesn't yield the right (or any) gcode. I need to open an article first (not the first one btw) and do a ctrl+f for update to find the right gcode...
                a1b8110a-55c1-4e23-9b82-fa68d5c4ffd7-image.png

                But maybe I wasn't precise enough?
                Lets try a more precise query, surely it will yield the precise result:

                78f0a201-7a51-4e28-872d-b4ef4a5a4da7-image.png

                Nope, doesn't work.

                If I remove the word "board" from the query, it does work....

                This is the gcode I was looking for by the way:

                4cf63b28-f3ed-4c8c-a37f-988672bcaff0-image.png

                Maybe I'm just so spoiled from google search reading my mind that this seems overly frustrating...

                Stay in school

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

                  @nikscha said in search for gcodes:

                  what's exapansion?

                  As it turns out, a typo on four wiki pages! Thanks for pointing this out, I've fixed them.

                  As for the search facility, at the moment it is all that is offered. Another option, as you have pointed out, is ctrl-f on the Gcode dictionary page. I'll talk to @T3P3Tony and see if it can be extended, or if wiki.js has any fuzzy search options.

                  Ian

                  Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                  nikschaundefined 1 Reply Last reply Reply Quote 2
                  • nikschaundefined
                    nikscha @droftarts
                    last edited by

                    @droftarts
                    Welcome ^^

                    I hope I am not too negative, I really appreciate the work of the Duet team!

                    Stay in school

                    droftartsundefined 1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator
                      last edited by

                      I know it's a bit of a cop out, but google search may work better for you.

                      11bad3ee-78c7-41cd-95cd-a8c82ba9c1b7-Screen Shot 2023-09-11 at 10.13.58 AM.png Screen Shot 2023-09-11 at 10.13.58 AM.png

                      Z-Bot CoreXY Build | Thingiverse Profile

                      A Former User? 1 Reply Last reply Reply Quote 1
                      • droftartsundefined
                        droftarts administrators @nikscha
                        last edited by

                        @nikscha typing “dictionary” first, then being a bit looser with your search terms can also help. Eg “dictionary firmware update” brings up M997 first.

                        Ian

                        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • droftartsundefined
                            droftarts administrators
                            last edited by

                            As shown in @Phaedrux 's screen shot, if you're using google, you can use a site-specific search, which will return results from solely the specified website. I use this a lot to search the forum.

                            For the forum, start your search with site:https://forum.duet3d.com/ with your search terms after.
                            For the wiki, start your search with site:https://docs.duet3d.com/ , again with your search terms after.

                            Ian

                            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                            1 Reply Last reply Reply Quote 1
                            • droftartsundefined droftarts marked this topic as a question
                            • droftartsundefined droftarts has marked this topic as solved
                            • First post
                              Last post
                            Unless otherwise noted, all forum content is licensed under CC-BY-SA