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

    Printer Not hitting any of the endstops

    Scheduled Pinned Locked Moved
    Firmware installation
    4
    16
    232
    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.
    • rodneysramosjundefined
      rodneysramosj
      last edited by

      config.g configtool.json homeall.g homex.g homey.g homez.g

      Here is the files we've read through them plenty of times and cant figure it out.
      we've made sure that endstops are wired correctly. Printer doesnt reach any of the endstops when homing.

      jay_s_ukundefined droftartsundefined rodneysramosjundefined 3 Replies Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @rodneysramosj
        last edited by

        @rodneysramosj are you steps per mm correct? Is it moving the correct amount for the distance commanded?
        How big is the printer?

        I also don't see any endstops configured in your config

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        rodneysramosjundefined 1 Reply Last reply Reply Quote 0
        • droftartsundefined
          droftarts administrators @rodneysramosj
          last edited by

          @rodneysramosj Here's your config.g:

          ; Configuration file for RepRapFirmware on Duet 3 Main Board 6HC
          ; executed by the firmware on start-up
          ;
          ; generated by RepRapFirmware Configuration Tool v3.5.10
          
          ; General Settings
          G90                      ; use absolute coordinates
          M83                      ; relative extruder moves
          M550 P"Duet 3"           ; set hostname
          
          ; PanelDue Setup
          M575 P1 S1 B115200       ; configure PanelDue support
          
          ; Network Configuration
          M551 P"Password1"        ; set machine password
          M552 P192.168.1.20 S1    ; configure Ethernet adapter
          M553 P255.255.255.0      ; set netmask
          M554 P192.168.1.254     ; set gateway
          M586 P0 S1               ; configure HTTP
          
          ; Smart Drivers Setup
          M569 P0.0 S1 D2          ; driver 0.0 goes forwards (X axis)
          M569 P0.1 S1 D2          ; driver 0.1 goes forwards (Y axis)
          M569 P0.2 S1 D2          ; driver 0.2 goes forwards (Z axis)
          M569 P0.3 S1 D2          ; driver 0.3 goes forwards (extruder 0)
          
          ; Motor Idle Current Reduction
          M906 I30                 ; set motor current idle factor
          M84 S30                  ; set motor current idle timeout
          
          ; Axes Configuration
          M584 X0.0 Y0.1 Z0.2      ; set axis mapping
          M350 X16 Y16 Z16 I1      ; configure microstepping with interpolation
          M906 X2800 Y2800 Z6000   ; set axis driver currents
          M92 X53.33 Y53.33 Z400   ; configure steps per mm
          M208 X0:1060 Y0:530 Z0:1000 ; set min/max axis limits
          M566 X3000 Y3000 Z60     ; set max instantaneous speed changes (mm/min)
          M203 X6000 Y6000 Z180    ; set max speeds (mm/min)
          M201 X500 Y500 Z20       ; set accelerations (mm/s^2)
          
          ; Extruder Configuration
          M584 E0.3                ; set extruder mapping
          M350 E16 I1              ; configure microstepping with interpolation
          M906 E450                ; set extruder driver currents
          M92 E2682                ; configure steps per mm
          M566 E120                ; set max instantaneous speed changes (mm/min)
          M203 E3600               ; set max speeds (mm/min)
          M201 E250                ; set accelerations (mm/s^2)
          
          ; Probes
          M558 K0 P1 C"io5.in" H2.5 F120 T6000 ; configure analog probe
          G31 P500 X0 Y0 Z3.5              ; set Z probe trigger value, offset, and trigger height
          
          ; Temperature Sensors Configuration
          M308 S0 P"temp0" Y"thermistor" A"Heated Bed Set 0" T200000 B3950 C6.370029e-8   ; Heated bed sensor
          M308 S1 P"temp1" Y"thermistor" A"Heated Bed Set 1" T200000 B3950 C6.370029e-8   ; Heated bed sensor 2
          M308 S2 P"temp2" Y"thermistor" A"Roto Internal Temp" T100000 B4267 C7.046861e-8 ; Internal temp sensor
          M308 S3 P"121.temp0" Y"thermistor" A"Roto Extruder Temp" T100000 B4267 C7.046861e-8 ; Extruder temp sensor
          
          ; Heaters Setup
          M950 H0 C"out1" T0        ; create heater #0 linked to temp sensor 0
          M143 H0 S120              ; set max temp for heater 0 (120°C for example)
          M307 H0 R2.43 D5.5 E1.35 K0.56 B1  ; heater model for heater 0
          
          M950 H1 C"121.out0" T3    ; create heater #1 linked to temp sensor 3 (extruder)
          M143 H1 S300              ; set max temp for heater 1
          M307 H1 R2.43 D5.5 E1.35 K0.56 B0  ; heater model for heater 1
          
          M950 H2 C"out2" T1        ; create heater #2 linked to temp sensor 1 (another heated bed)
          M143 H2 S120              ; set max temp for heater 2
          M307 H2 R2.43 D5.5 E1.35 K0.56 B1  ; heater model for heater 2
          
          ; Heated Beds Configuration
          M140 P0 H0                ; configure heated bed #0 (linked to heater 0)
          M140 P2 H2                ; configure heated bed #2 (linked to heater 2)
          
          ; Fans Configuration
          M950 F0 C"out4+out4.tach" ; create fan #0
          M106 P0 C"Roto Fan" S0 B10 H2 T45 ; configure fan #0
          
          ; Tools Configuration
          M563 P0 S"Roto Toolboard" D0 H1 F0 ; create tool #0, link to heater 1
          M568 P0 R0 S0              ; set initial temperatures for tool #0 to 0°C
          
          ; Miscellaneous
          T0 ; select first tool
          
          ; Custom Settings for Safety
          M950 J4 C"!^io4.in"        ; create E-Stop button
          M581 P4 S0 T0 R0           ; trigger E-Stop on input
          
          ; End of File
          

          As @jay_s_uk says, there are no endstops configured, only a Z probe. See https://docs.duet3d.com/User_manual/Connecting_hardware/Sensors_endstops and https://docs.duet3d.com/en/How_to_guides/Commissioning#h-8-check-endstops

          Your homeall.g file has the motors moving to the 'low end' of the X and Y axis, ie towards X0 and Y0. Is that where the endstops are positioned?

          Ian

          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

          rodneysramosjundefined 1 Reply Last reply Reply Quote 0
          • rodneysramosjundefined
            rodneysramosj @jay_s_uk
            last edited by

            @jay_s_uk ```
            code_text

            ; executed by the firmware on start-up
            ;
            ; generated by RepRapFirmware Configuration Tool v3.5.10 on Wed Feb 26 2025 14:22:18 GMT-0500 (Eastern Standard Time)
            
            ; General
            G90 ; absolute coordinates
            M83 ; relative extruder moves
            M550 P"Duet 3" ; set hostname
            
            ; Accessories
            M575 P1 S1 B57600 ; configure PanelDue support
            
            ; Network
            M551 P"Password1" ; set machine password
            M552 P192.168.1.20 S1 ; configure Ethernet adapter
            M553 P255.255.255.0 ; set netmask
            M554 P192.168.1.254 ; set gateway
            M586 P0 S1 ; configure HTTP
            
            ; Wait a moment for the CAN expansion boards to become available
            G4 S2
            
            ; Smart Drivers
            M569 P0.0 S0 D2 ; driver 0.0 goes forwards (X axis)
            M569 P0.1 S0 D2 ; driver 0.1 goes forwards (Y axis)
            M569 P0.2 S0 D2 ; driver 0.2 goes forwards (Z axis)
            M569 P0.3 S1 D2 ; driver 0.3 goes forwards (extruder 0)
            
            ; Motor Idle Current Reduction
            M906 I30 ; set motor current idle factor
            M84 S30 ; set motor current idle timeout
            
            ; Axes
            M584 X0.0 Y0.1 Z0.2 ; set axis mapping
            M350 X16 Y16 Z16 I1 ; configure microstepping with interpolation
            M906 X2800 Y2800 Z6000 ; set axis driver currents
            M92 X53.33 Y53.33 Z400 ; configure steps per mm
            M208 X0:1060 Y0:530 Z0:1000 ; set minimum and maximum axis limits
            M566 X3000 Y3000 Z60 ; set maximum instantaneous speed changes (mm/min)
            M203 X6000 Y6000 Z180 ; set maximum speeds (mm/min)
            M201 X500 Y500 Z20 ; set accelerations (mm/s^2)
            
            ; Extruders
            M584 E0.3 ; set extruder mapping
            M350 E16 I1 ; configure microstepping with interpolation
            M906 E450 ; set extruder driver currents
            M92 E2682 ; configure steps per mm
            M566 E120 ; set maximum instantaneous speed changes (mm/min)
            M203 E3600 ; set maximum speeds (mm/min)
            M201 E250 ; set accelerations (mm/s^2)
            
            ; Probes
            M558 K0 P1 C"io5.in" H2.5 F120 T6000 ; configure analog probe via slot #0
            G31 P500 X0 Y0 Z3.5                  ; set Z probe trigger value, offset and trigger height
            
            ; Kinematics
            M669 K0 ; configure Cartesian kinematics
            
            ; Endstops
            M574 X1 P"io3.in" S1 ; configure X axis endstop
            M574 Y1 P"io1.in" S1 ; configure Y axis endstop
            M574 Z1 P"io2.in" S1 ; configure Z axis endstop
            
            ; Sensors
            M308 S0 P"temp0" Y"thermistor" A"Heated Bed Set 0" T200000 B3950 C6.370029e-8 ; configure sensor #0
            M308 S1 P"temp1" Y"thermistor" A"Heated Bed Set 1" T200000 B3950 C6.370029e-8 ; configure sensor #1
            M308 S2 P"temp2" Y"thermistor" A"Roto Internal Temp" T100000 B4267 C7.046861e-8 ; configure sensor #2
            M308 S3 P"121.temp0" Y"thermistor" A"Roto Extruder Temp" T100000 B4267 C7.046861e-8 ; configure sensor #3
            
            ; Heaters
            M950 H0 C"out1" T0 ; create heater #0
            M143 H0 P0 T0 C0 S120 A0 ; configure heater monitor #0 for heater #0
            M307 H0 R0.43 D5.5 E1.35 K0.56 B1 ; configure model of heater #0
            M950 H1 C"121.out0" T3 ; create heater #1
            M143 H1 P0 T3 C0 S300 A0 ; configure heater monitor #0 for heater #1
            M307 H1 R0.43 D5.5 E1.35 K0.56 B0 ; configure model of heater #1
            M950 H2 C"out2" T1 ; create heater #2
            M143 H2 P0 T1 C0 S120 A0 ; configure heater monitor #0 for heater #2
            M307 H2 R0.43 D5.5 E1.35 K0.56 B1 ; configure model of heater #2
            
            ; Heated beds
            M140 P0 H0 ; configure heated bed #0
            M140 P2 H2 ; configure heated bed #2
            
            ; Tools
            M563 P0 S"Roto Toolboard" D0 H1 F0 ; create tool #0
            M568 P0 R0 S0 ; set initial tool #0 active and standby temperatures to 0C
            
            ; Fans
            M950 F0 C"out0+out5.tach"         ; create fan #0
            M106 P0 C"Roto Fan" S0 B10 H2 T60:59 ; configure fan #0
            
            ; Miscellaneous
            T0 ; select first tool
            
            ; Custom settings
            ;E-Stop
            M950 J4 C"!^io4.in"
            M581 P4 S0 T0 R0
            
            Sorry File mustve not fully sent they are configured
            jay_s_ukundefined 1 Reply Last reply Reply Quote 0
            • rodneysramosjundefined
              rodneysramosj @rodneysramosj
              last edited by

              @rodneysramosj our printer is 1220 by 610mm and yes the steps are correct it moves 10mm when told

              1 Reply Last reply Reply Quote 0
              • rodneysramosjundefined
                rodneysramosj @droftarts
                last edited by

                @droftarts yes they are on the low end of the printer and in my other replies there is the correct config file and it is the one we are actively using.

                1 Reply Last reply Reply Quote 0
                • jay_s_ukundefined
                  jay_s_uk @rodneysramosj
                  last edited by

                  @rodneysramosj said in Printer Not hitting any of the endstops:

                  M208 X0:1060 Y0:530 Z0:1000 ; set minimum and maximum axis limits

                  this shows your printer only being 1060mm wide. This number should be the same as the maximum print size, otherwise your motors will end up moving short

                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                  rodneysramosjundefined 1 Reply Last reply Reply Quote 0
                  • rodneysramosjundefined
                    rodneysramosj @jay_s_uk
                    last edited by

                    @jay_s_uk said in Printer Not hitting any of the endstops:

                    M208

                    We have set the dimensions correctly in the g code and has not resolved the issue and the printer only gives a slight movement in all directions depending on the home and says that it is home and hasn't hit any estops.

                    jay_s_ukundefined droftartsundefined 2 Replies Last reply Reply Quote 0
                    • jay_s_ukundefined
                      jay_s_uk @rodneysramosj
                      last edited by

                      @rodneysramosj have you tested the endstops?
                      You can either look at DWC for this, a green box appears on each axis letter to show you its triggered, or use M119.
                      They should show not triggered when not pressed and triggered when pressed.
                      If they are the wrong way round, you will need to invert them by adding a ! to the pin name for each applicable endstop

                      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                      rodneysramosjundefined 1 Reply Last reply Reply Quote 0
                      • droftartsundefined
                        droftarts administrators @rodneysramosj
                        last edited by

                        @rodneysramosj As @jay_s_uk said, and I already posted, check the endstops are functioning correctly: https://docs.duet3d.com/en/How_to_guides/Commissioning#h-8-check-endstops

                        Ian

                        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                        1 Reply Last reply Reply Quote 0
                        • rodneysramosjundefined
                          rodneysramosj @jay_s_uk
                          last edited by

                          @jay_s_uk endstops are wired correct and they are triggering correctly through config. however, it is moving in the wrong direction now and in the opposite direction from the endstops. we tried changing it in the config tool from low end to high end and now they are currently swapped back after troubleshooting.

                          fcwiltundefined 1 Reply Last reply Reply Quote 0
                          • fcwiltundefined
                            fcwilt @rodneysramosj
                            last edited by

                            @rodneysramosj said in Printer Not hitting any of the endstops:

                            @jay_s_uk endstops are wired correct and they are triggering correctly through config. however, it is moving in the wrong direction now and in the opposite direction from the endstops. we tried changing it in the config tool from low end to high end and now they are currently swapped back after troubleshooting.

                            If the movement is not towards the end-stops you need to check your homing code to see if it is using moves in the correct direction.

                            Frederick

                            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                            rodneysramosjundefined 1 Reply Last reply Reply Quote 0
                            • rodneysramosjundefined
                              rodneysramosj @fcwilt
                              last edited by

                              @fcwilt we got it to a point where it hits the endstops but it stays stopped on the endstops and doesnt come back out.

                              fcwiltundefined 1 Reply Last reply Reply Quote 0
                              • fcwiltundefined
                                fcwilt @rodneysramosj
                                last edited by

                                @rodneysramosj said in Printer Not hitting any of the endstops:

                                @fcwilt we got it to a point where it hits the endstops but it stays stopped on the endstops and doesnt come back out.

                                Does your code command it to back out?

                                Frederick

                                Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                rodneysramosjundefined 1 Reply Last reply Reply Quote 0
                                • rodneysramosjundefined
                                  rodneysramosj @fcwilt
                                  last edited by

                                  @fcwilt were trying to make it retract here is our code it is currently hitting the end stop and then continues to go past the Endstop until the endstop is hit again then it fully stops. changing the back off distance from positive to negative doesn't change the way it moves. it is currently set to 5 for visibility. we are testing the endstops by hand and not by carriage. ```

                                  ; homex.g
                                  ; called to home the X axis
                                  ;
                                  ; generated by RepRapFirmware Configuration Tool v3.5.10 on Wed Mar 19 2025 10:03:37 GMT-0400 (Eastern Daylight Time)
                                  
                                  ; increase Z
                                  ;G91 ; relative positioning
                                  ;G1 H2 Z5 ; move Z relative to current position to avoid dragging nozzle over the bed
                                  ;G90 ; absolute positioning
                                  
                                  ; home X
                                  G91 ; relative positioning
                                  var maxTravel = move.axes[0].max - move.axes[0].min + 5 ; calculate how far X can travel plus 5mm
                                  G1 H1 X{var.maxTravel} F1200 ; coarse home in the -X direction
                                  G4 P500
                                  G1 X-75 F6000 ; move back 5mm
                                  M400 
                                  G1 H1 X{var.maxTravel} F300 ; fine home in the -X direction
                                  G90 ; absolute positioning
                                  
                                  ; decrease Z again
                                  ;G91 ; relative positioning
                                  ;G1 H2 Z-5 F6000 ; move Z relative to current position
                                  ;G90 ; absolute positioning
                                  
                                  ```
                                  droftartsundefined 1 Reply Last reply Reply Quote 0
                                  • droftartsundefined
                                    droftarts administrators @rodneysramosj
                                    last edited by

                                    @rodneysramosj Is the X endstop a max endstop or min endstop? Currently your G1 H1 X... homing moves are positive, so should be moving to the right, towards a max endstop. If this is wrong, you probably need to check the direction the motors are moving is correct, see https://docs.duet3d.com/en/How_to_guides/Commissioning#h-10-check-stepper-motors

                                    Your printer origin X0 Y0 Z0 should be in the front left corner. Positive X moves should move the nozzle to the right, positive Y moves should move the nozzle towards the back.

                                    Ian

                                    Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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