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

    In addition to Conditionals, loops and maths ......

    Scheduled Pinned Locked Moved
    Firmware wishlist
    2
    3
    571
    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.
    • timcurtis67undefined
      timcurtis67
      last edited by

      David,
      I addition to Conditionals, loops and maths in GCode commands getting added to the firmware would it be possible to add variables for temporary storage?

      At least 6-10 variables. Maybe like H0 thru H9. That way when probing locations in X,Y & Z I can store those values, use them in the new math commands to solve locations. They could just be local variables that aren't saved after shut down.

      Example to locate X offset of tool 1 on my IDEX machine. I can probe in X minus direction until It hits, store the X coordinate in H0.

      Probe in the positive direction until it hits, store that X coordinate in H1.

      store the result of H0-H1 in H2. code H2=H0-H1

      Then send H1 to my G10 offset for T1. code G10 P1 X(H1).

      IMO storage of values like coordinates, and maybe temperatures and being able to use them directly in GCodes would be a great benefit.

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

        Yes variables will be supported.

        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 0
        • timcurtis67undefined
          timcurtis67
          last edited by

          Sweet! Thank you.

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