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

    Macro parameters (made simple?)

    Scheduled Pinned Locked Moved
    Firmware wishlist
    2
    2
    283
    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.
    • JuKuundefined
      JuKu
      last edited by

      Macro parameters have been discussed a few times before, but are not implemented yet. In my application, these would be huge. And almost everything I can think of now could be done by simple text substitution:

      M98 P"examplemacro.g 100 200 300"

      In the macro file, substitute all <P1> 's with 100, all <P2> 's with 200 and all <P3> 's with 300. You get the idea.

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

        I plan to do something similar when I complete the work on conditional GCode.

        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 4
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA