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

    Fail to read my position while using G1 H3

    Scheduled Pinned Locked Moved
    General Discussion
    3
    5
    252
    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.
    • agusanoundefined
      agusano
      last edited by

      Hello everyone, I'm using the sensorless homing for the X axis.
      On my GCode routine, once I've done the homing process and the position is stored to 0 (forced by the G92 X0 code) I would like to move that axis till the opposite and with the G1 H3 parameter stop the movement and store my new position.
      Once I use this H3 gcode parameter, my Duet 2 allows me to move along the axis but ignores the real position of the machine, but it never stores to the new position o in the case I home the axis again it never turns back to 0. Can someone help me?
      Thanks in advance

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

        @agusano you should not be using G92 X0 after the homing move. A G1 H1 move will set the position to the limit you have set in M208.

        After the G1 H3 move completes, you should be able to read the position from move.axes[0].userPosition or move.axes[0].machinePosition.

        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

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

          Post your config.g and homing files.

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • agusanoundefined
            agusano @dc42
            last edited by

            @dc42 Thank you for your response. I've found that my problem was related to my fw version so it does'nt work properly. Now i read my position without any problem, but i would like to know if it is possible to read the position from one axis neither than from all the axis as the M114 does. Thank you!

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

              @agusano said in Fail to read my position while using G1 H3:

              @dc42 Thank you for your response. I've found that my problem was related to my fw version so it does'nt work properly. Now i read my position without any problem, but i would like to know if it is possible to read the position from one axis neither than from all the axis as the M114 does. Thank you!

              Yes, you can report the position to console like this:

              echo move.axes[0].userPosition
              

              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
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA