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

Macro parameters (made simple?)

Scheduled Pinned Locked Moved
Firmware wishlist
2
2
282
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.
  • undefined
    JuKu
    last edited by 2 Oct 2019, 11:12

    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
    • undefined
      dc42 administrators
      last edited by 2 Oct 2019, 15:21

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