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

    Relative movement without using G90 and G91

    Scheduled Pinned Locked Moved Solved
    Gcode meta commands
    2
    3
    174
    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.
    • Phrayzurundefined
      Phrayzur
      last edited by

      I'm using some nested macros and I'm having issues where, when I'm in relative movment mode, the machine returns to absolute movement becaue I've called a macro that has the G90 command. I'm wondering if it's possible to issue a single relative movement command (eg. G1 Z20) in absolute movement mode without using G90 and G91. Alternatively, is it possible to set the value of inputs[0].axesRelative to a variable value like set inputs[0].axesRelative = {RelativeMoveVar}?

      I've tried using M120 and M121 but it also affects feedrate and hotend position.

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

        @Phrayzur when a macro finishes the absolute/relative mode returns to what it was when the macro was called.

        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

        Phrayzurundefined 1 Reply Last reply Reply Quote 1
        • Phrayzurundefined
          Phrayzur @dc42
          last edited by

          @dc42 You are absolutely correct! I don't know why I thought otherwise. Thanks!

          1 Reply Last reply Reply Quote 0
          • dc42undefined dc42 marked this topic as a question
          • dc42undefined dc42 has marked this topic as solved
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA