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

    use variables with in macros

    Scheduled Pinned Locked Moved
    Gcode meta commands
    4
    6
    507
    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.
    • Eran898undefined
      Eran898
      last edited by

      hi,
      i would like to know if there is a way to write macro that use global variables, and then to combine it with lets say a message like m291?.
      for example i want to write macro for pid, i want to be able to enter my preferred temp in a m291 message and then it will automatically enter the right parameters in the macro.
      i know i can write macro in a macro for all my bed and head temps that i use but it make more sense to just enter the values i want.

      also is there a way to write loops or conditions in macros?
      if there is it would be super helpful if you can send me the link to go and study it.

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

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

        no variables (yet)

        Eran898undefined 1 Reply Last reply Reply Quote 0
        • Eran898undefined
          Eran898 @A Former User
          last edited by

          @bearer thank you for the info!
          its very disappointing .. i hear the "not yet" message for more then 3 years now..

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

            @Eran898 said in use variables with in macros:

            i hear the "not yet" message for more then 3 years now..

            Rome wasn't built in a day. The groundwork in RRF3 is all built now. Conditional gcode is out now. It is all coming in due time.

            Z-Bot CoreXY Build | Thingiverse Profile

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

              You can simulate a small number of numeric variables already, by defining a dummy tool and using its XYZ offsets as variables.

              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

              Eran898undefined 1 Reply Last reply Reply Quote 0
              • Eran898undefined
                Eran898 @dc42
                last edited by

                @Phaedrux
                i know but surely you can understand were the frustration come from..
                one thing i must say is the only reason i always recommend to friends to go for duet bored are the forum support ,its crazy how fast and good all the reply's here!!, specially by dc42!!
                @dc42 said in use variables with in macros:

                You can simulate a small number of numeric variables already, by defining a dummy tool and using its XYZ offsets as variables.

                can you please give me an example?,just to see how you use this correctly.

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