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

    Axis bounds for move.axes[n] queries

    Scheduled Pinned Locked Moved
    Gcode meta commands
    2
    3
    197
    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.
    • Merlin246undefined
      Merlin246
      last edited by

      Hello,

      I am attempting to query the machinePosition of one of my axes, specifically axis 7 (Duet 2 Wifi + Duet X5) on an E3D Toolchanger. This is the toolhead axis, C, that locks and unlocks tools; it is set to driver 7 in the config.

      M584 X0 Y1 Z2 C7 E3:4:5:6 									; Apply custom drive mapping
      

      However when querying the position using

      move.axes[7].machinePosition
      

      The following error appears:

      M98 P"0:/macros/SIMUL_HOME_TEST"
      Error: in file macro line 49 column 4: meta command: array index out of bounds.

      Is there a specific indexing for the Duet X5 drivers?

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

        @merlin246 you have 4 axes XYZC and their indices are 0 to 3 respectively.

        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

        Merlin246undefined 1 Reply Last reply Reply Quote 0
        • Merlin246undefined
          Merlin246 @dc42
          last edited by

          @dc42 Ah didn't know extruder's aren't included, thanks!

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