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

    Tool and probe offset to variabne

    Scheduled Pinned Locked Moved Solved
    Gcode meta commands
    macro variable
    2
    3
    196
    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.
    • Shokiundefined
      Shoki
      last edited by

      Hi,

      Is there a way to get the result of a gcode command inside a variable.

      I'm writing a few macros and I would need to store the offsets of different tools to a variable. These are the results from G10 P0, G10 P1 and G31 that appear in the console.

      I tried to find them in the object model description, but without success.
      https://github.com/Duet3D/RepRapFirmware/wiki/Object-Model-Documentation

      Thanks in advance for pointing me in the right direction.

      T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
      • T3P3Tonyundefined
        T3P3Tony administrators @Shoki
        last edited by

        @Shoki there is currently not a way to get replies from gcode commands into variables. That said the tool offsets are in the object model:
        tools[n].offsets[m]
        when "n" is the tool number and "m" is the axis index.

        www.duet3d.com

        Shokiundefined 1 Reply Last reply Reply Quote 1
        • Shokiundefined
          Shoki @T3P3Tony
          last edited by

          @T3P3Tony Thanks a lot ! I missed them when I read through the object model I don't know why.

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