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

Store location of stall detection to variable.

Scheduled Pinned Locked Moved
Gcode meta commands
3
3
237
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.
  • undefined
    berniej
    last edited by 14 Jul 2023, 20:56

    Hi all,

    I am trying to figure out how I can use either sensorless homing or stall detection to measure the length of a single axis.

    Ideally, I trigger a macro that sends one axis away from the home position until it hits the end of its travel - then stores that location in a variable.

    I understand there will be limited accuracy due to the loss of steps, but that is ok for my application.

    Any help or direction would be greatly appreciated!

    undefined 1 Reply Last reply 15 Jul 2023, 05:35 Reply Quote 0
    • undefined
      gloomyandy @berniej
      last edited by 15 Jul 2023, 05:35

      @berniej You may be able to use a G1 H4 move for this (along with a stall detection endstop). So the process would be....
      0. Define an axis that is longer than the actual max axis length

      1. Home at one end of the axis
      2. define a stall detect endstop for the far end of the axis to test
      3. Perform a G1 H4 move beyond the length of the axis
      4. After the stall the current position will give the position at which the stall happened
      undefined 1 Reply Last reply 18 Jul 2023, 20:18 Reply Quote 1
      • undefined
        berniej @gloomyandy
        last edited by 18 Jul 2023, 20:18

        @gloomyandy Thanks for the reply. I will try containing the G1 H4 in a macro with my settings for stall detection. I was not aware of the H parameter in RRF 3+.

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