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

    Conditional logic

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    7
    280
    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.
    • jens55undefined
      jens55
      last edited by

      I just upgraded to RRF 3.01 and would like to start playing around a bit with conditional logic. I have no clue what I am doing so I need to find documentation on all the new and wondrous things that can be done. There are two parts to the needed documentation: 1) documentation of all the variables and all the operations possible
      2) Something written for the great unwashed that explains how all this works with examples.
      Since all of this is still very much in flux, I am wondering if this documentation (or some sort of start of it) exists?

      There seem to be tidbits here and there but I have not found anything that pulls these tidbits together into some sort of coherent tutorial or reference manual.

      T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
      • T3P3Tonyundefined
        T3P3Tony administrators @jens55
        last edited by

        @jens55

        The documentation for conditions, loops etc is here :

        https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands

        And object model:

        https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware

        www.duet3d.com

        1 Reply Last reply Reply Quote 0
        • jens55undefined
          jens55
          last edited by

          Thanks, I think I am not ready for playing with this. Hopefully I will pick up a little bit here and there from code posted with questions.

          deckingmanundefined 1 Reply Last reply Reply Quote 0
          • deckingmanundefined
            deckingman @jens55
            last edited by

            @jens55 I'm with you on this. I hadn't heard of an object model until @dc42 introduced the concept. I had to do an internet search to find out what one is. Maybe it's a prerequisite that us non-writers of code educate ourselves in order to understand the terminology but right now, I just don't have the time to do that. It would be enormously beneficial if someone could put together a layman's guide.

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

            1 Reply Last reply Reply Quote 0
            • T3P3Tonyundefined
              T3P3Tony administrators
              last edited by

              I think this will come out as specific examples by people to achieve an aim/ solve a problem.

              E.g. probe a bed and if its sufficient out of "true" then rather than using mesh compensation, throw an error and wait for the user to level it a bit better.

              If you don't have a pressing need for it then worth waiting for cool examples (which might feed the need to experiment!)

              I hope to have some examples for my toolchanger when i get a chance to actually get back to working on it!

              www.duet3d.com

              deckingmanundefined 1 Reply Last reply Reply Quote 0
              • deckingmanundefined
                deckingman @T3P3Tony
                last edited by

                @T3P3Tony I guess we can always pose questions along the lines of - "This is what I want to do - how do I do it?" Do you think that a new category - "Example conditional gcode" might be a useful? I think David proposed something similar for github but not all of us know our way around that.

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

                1 Reply Last reply Reply Quote 0
                • jens55undefined
                  jens55
                  last edited by

                  A new category to have the information collected in one area is an excellent idea!

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