Skip to main content

Unlimited Endstop Usage

Notes

Prerequisites
  • Must meet all the following conditions:
  1. The motherboard supports the DIAG function
  2. The driver supports DIAG signal output
  3. No device should be connected to the corresponding endstop port!

Motherboard Compatibility Check

Classification of Fly Motherboards:

TypeSupport StatusRepresentative ModelsOperation Requirements
ADirect connection by defaultSuper/Gemini/CDY/E3 series✅ Direct use of endstop interface
BRequires jumper to enableD/C/Pro-X10/Micro series⚡ Must install DIAG jumper cap
CNot supported at allFly-F407ZG❌ Unlimited endstop feature unavailable

Identification method:

  1. Check motherboard labeling: Look for a jumper labeled DIAG
  2. Consult the schematic: Confirm DIAG signal connection of the driver interface
  3. For most motherboards, unlimited endstop for Drive0 corresponds to io0, Drive1 corresponds to io1, and so on
  • Type A Motherboard
    • No DIAG jumper, direct connection by default to the endstop port
  • Type B Motherboard
    • Requires DIAG jumper

Driver Compatibility Check

Tip
  • TMC5160, TMC2240, and TMC2130 have two DIAG pins
  • Refer to the product documentation or contact customer support for confirmation
Driver ModelCompatibilityDIAG PinConfiguration RequirementsSensitivity Range
TMC2209✅ SupportedSingleDirect use0-255 # 255 is the most sensitive, 0 is the least sensitive
TMC5160✅ SupportedDualNeed to select diag pin-64 63 # -64 is the most sensitive, 63 is the least sensitive
TMC2240✅ SupportedDualNeed to select diag pin-64 63 # -64 is the most sensitive, 63 is the least sensitive
TMC2130✅ SupportedDualNeed to select diag pin-64 63 # -64 is the most sensitive, 63 is the least sensitive
TMC2208❌ Not supported-Unlimited endstop feature unavailableUnlimited endstop feature unavailable
TMC2660❌ Not supported-Unlimited endstop feature unavailableUnlimited endstop feature unavailable
LV8729❌ Not supported-Unlimited endstop feature unavailableUnlimited endstop feature unavailable

Key Identification Points:

  1. Dual-pin drivers must consult the corresponding manual to confirm function pins
  2. Some drivers support DIAG function, but if the corresponding header is not soldered, it cannot be used

Configuration Instructions

  • Need to modify the corresponding driver model and axis
  • Some machines using unlimited endstop homing may fail homing during retraction; set homing_retract_dist: to 0

Reference Configurations

  • In tmc2209_stepper_x, TMC2209 needs to be changed to the corresponding driver model
  • In stepper_x, x indicates this is the x-axis; if it is the y-axis, change to stepper_y
  • The pins in the configuration below are for reference only; adjust according to your actual setup
  • The diag_pin: configuration must include ^, or homing will fail
  • The value in driver_SGTHRS: must be tested and set; 255 is the most sensitive, 0 is the least sensitive
    [stepper_x]
    endstop_pin: tmc2209_stepper_x:virtual_endstop
    position_endstop: 0

    [tmc2209 stepper_x]
    diag_pin: ^PD9
    driver_SGTHRS: 100

Testing Sensitivity

  • Step 1

    • Enter the following command in the web console

    • Move the print head slowly to the center of the machine. Use the SET_TMC_FIELD command to set the sensitivity

    • Use the following command for TMC2209, modify the axis you are testing

      SET_TMC_FIELD STEPPER=stepper_x FIELD=SGTHRS VALUE=255
    • Use the following command for TMC5160, TMC2240, and TMC2130, modify the axis you are testing

      SET_TMC_FIELD STEPPER=stepper_x FIELD=sgt VALUE=-64
  • Step 2

    • Enter the following command in the web console
      G28 X
    • Confirm that the X-axis either doesn't move at all or stops moving quickly
    • If there is no movement, immediately issue the following command
      M112
    • Check the wiring or configuration of the corresponding DIAG PIN pin; any error must be corrected before continuing
  • Step 3

    • Next, gradually decrease the VALUE sensitivity setting and rerun the SET_TMC_FIELD and G28 X0 commands
    • Find the highest sensitivity that allows the carriage to move all the way to the end and stop reliably
    • For TMC2209 drivers, decrease SGTHRS; for other drivers, increase sgt
  • Step 4

    • Once a suitable value is found, remember it after homing as soon as it stops upon touch
    • If there is a knocking or clicking sound at maximum sensitivity, the homing speed may be too low, the driver current may be too low, or the axis may not be suitable for sensorless homing
    • Open printer.cfg and update the corresponding sensitivity configuration
Loading...
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
Loading...