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

    Help

    Scheduled Pinned Locked Moved
    Gcode meta commands
    3
    5
    719
    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.
    • Leblondundefined
      Leblond
      last edited by

      Evening guys a question about Gcode meta commands for novices like me.
      Eg: sensors.probes [0] .value [0] is part of a command set? if so, where can I find these commands? if not how do i create them?

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        Do you mean like this?

        https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands

        Z-Bot CoreXY Build | Thingiverse Profile

        Leblondundefined 2 Replies Last reply Reply Quote 0
        • Leblondundefined
          Leblond @Phaedrux
          last edited by

          @Phaedrux
          Maybe I explained myself wrong, forgive me.
          This is an example:
          G1 X {move.axes [0] .max-10} Y {move.axes [1] .min + 10}
          Between the braces, we find {move.axes [0] .max-10}
          What I'm asking is: is move.axes part of a command set? If so, where do I find these commands

          1 Reply Last reply Reply Quote 0
          • Leblondundefined
            Leblond @Phaedrux
            last edited by

            @Phaedrux
            what I don't understand is the MOVE and AXES command in the link you sent me and that I had already seen I didn't find them

            1 Reply Last reply Reply Quote 0
            • OwenDundefined
              OwenD
              last edited by

              Move and Axes are part of the object model which is used to query various parameters

              https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware

              Think of it like a tree or a flow chart.
              Each object may branch out into other objects.
              Where it's necessary to identify the same parameter on many tools or axes, each one is allocated a unique identifier in an array. Arrays are surrounded by square brackets [ ]

              In the case of move.axes[0].min
              It will give the the axis minima you set for axis 0. (X) in your config.g using M208
              move.axes[1].min would be Y minima.

              You can the use curly brackets { } to allow you to do math based on the values.

              This allows you to write macros which will automatically update if you were to change the value in M208 for example

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