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

    G28 W Error: Failed to enable endstops

    Scheduled Pinned Locked Moved Solved
    Using Duet Controllers
    3
    3
    236
    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.
    • Ajith Pinnintiundefined
      Ajith Pinninti
      last edited by

      Please.I'ts been a week I'm unable to find the solution.

      I've added an expansion board dueX5 to the duet2 wifi board. As mentioned in the documentation I've removed the connector pin to "open for X2" and added the W axis in the config file. But When I try to do homing It's getting an error message as G28 W Error: Failed to enable endstops. All my other axes X, Y, Z, U, and V work perfectly. I'm confused about why It's happened.
      I've verified the dueX5 connection using the command "M115".It's well. I've tried all the different methods mentioned for this problem. Nothing solved me.
      Please check my config file and suggest any solution for this problem.

      My config.g file

      ; Configuration file for Duet WiFi (firmware version 3.3)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v3.3.15 on Mon Dec 05 2022 15:09:52 GMT+0530 (India Standard Time)
      
      ; General preferences
      M575 P1 S1 B57600                                            ; enable support for PanelDue
      G90                                                          ; send absolute coordinates...
      M83                                                          ; ...but relative extruder moves
      M550 P"MORPHEX"                                              ; set printer name
      
      ; Network
      M552 S1                                                      ; enable network
      M586 P0 S1                                                   ; enable HTTP
      M586 P1 S0                                                   ; disable FTP
      M586 P2 S0                                                   ; disable Telnet
      
      ; Drives
      M569 P0 S1                                                   ; physical drive 0 goes forwards
      M569 P1 S1                                                   ; physical drive 1 goes forwards
      M569 P2 S0                                                   ; physical drive 2 goes backwards
      M569 P3 S1                                                   ; physical drive 3 goes forwards
      M569 P4 S0                                                   ; physical drive 4 goes forwards
      M569 P5 S1                                                   ; physical drive 5 goes forwards
      M584 X0 Y1 Z2 U3 V4 W5                                        ; set drive mapping
      M350 X256 Y256 Z128 U256 V128 W128 I0                          ; configure microstepping without interpolation
      M92 X51200.00 Y51200 Z192000.00 U51200.00 V1600.00 W3200.00 ; set steps per mm
      M566 X3000.00 Y3000.00 Z120.00 U1800.00 V12000.00 W12000.00    ; set maximum instantaneous speed changes (mm/min)
      M203 X3000.00 Y3000.00 Z180.00 U1800.00 V12000.00 W12000.00   ; set maximum speeds (mm/min)
      M201 X5000.00 Y5000.00 Z5000.00 U500.00 V9000.00 W9000.00       ; set accelerations (mm/s^2)
      M906 X1950 Y1950 Z1950 U1950 V600 W1000 I30                    ; set motor currents (mA) and motor idle factor in per cent
      M84 S30                                                      ; Set idle timeout
      
      ; Axis Limits
      M208 X0 Y0 Z0 U0 V0 W0 S1                                             ; set axis minima
      M208 X80 Y86 Z36 U78 V80 W80 S1                                        ; set axis maxima
      
      ; Endstopsng
      M574 X1 S1 P"!xstop"                                         ; configure switch-type (e.g. microswitch) endstop for low end on X via pin !xstop
      M574 Y1 S1 P"!ystop"                                         ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin !ystop
      M574 Z1 S1 P"!zstop"                                         ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin !zstop
      M574 U1 S1 P"!e0stop"                                         ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin !zstop
      M574 V1 S1 P"!e1stop"                                         ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin !zstop
      M574 W1 S1 P"!e2stop"                                         ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin !zstop
      
      ; Z-Probe
      M558 P0 H0.025 F120 T300                                     ; disable Z probe but set dive height, probe speed and travel speed
      M557 X0:50 Y0:50 S5                                          ; define mesh grid
      
      ; Heaters
      M140 H-1                                                     ; disable heated bed (overrides default heater mapping)
      
      ; Fans
      M950 F0 C"fan0" Q65535                                       ; create fan 0 on pin fan0 and set its frequency
      M106 P0 S0.1 H-1                                             ; set fan 0 value. Thermostatic control is turned off
      M950 F1 C"fan1" Q65535                                       ; create fan 1 on pin fan1 and set its frequency
      M106 P1 S0 H-1                                               ; set fan 1 value. Thermostatic control is turned off
      M950 F2 C"fan2" Q65535                                       ; create fan 2 on pin fan2 and set its frequency
      M106 P2 S0 H-1                                               ; set fan 2 value. Thermostatic control is turned off
      
      ; Tools
      
      ; Custom settings are not defined
      
      ; Miscellaneous
      M501                                                         ; load saved parameters from non-volatile memory
      
      
      

      homew.g file

      ; homew.g
      ; called to home the V axis
      ;
      ; generated by RepRapFirmware Configuration Tool v3.3.10 on Wed Jun 01 2022 12:38:09 GMT+0530 (IST)
      G91                ; relative positioning
      G1 H2 W1 F3000  ; lift Z relative to current position
      G1 H1 W-80 F9000    ; move quickly to w axis endstop and stop there (first pass)
      G1 H2 W2 F5000      ; go back a few mm
      G1 H1 W-80 F3000    ; move slowly to V axis endstop once more (second pass)
      G1 H2 W-0.025 F3000 ; lower Z again
      G90                ; absolute positioning
      

      whenever I'm pressing homeW in the web interface Z position is changing as in the 1st line of code in homeW.g. But after that nothing worked and the resulting G28 W Error: Failed to enable endstops.

      Here I'm leaving my homeX.g file and HomeX is working.

      ; homex.g
      ; called to home the X axis
      ;
      ; generated by RepRapFirmware Configuration Tool v3.3.15 on Mon Dec 05 2022 15:09:52 GMT+0530 (India Standard Time)
      G91                ; relative positioning
      G1 H2 Z0.025 F300  ; lift Z relative to current position
      G1 H1 X-85 F300    ; move quickly to X axis endstop and stop there (first pass)
      G1 H2 X5 F300      ; go back a few mm
      G1 H1 X-85 F180    ; move slowly to X axis endstop once more (second pass)
      G1 H2 Z-0.025 F300 ; lower Z again
      G90                ; absolute positioning
      
      

      Please.I'ts been a week I'm unable to find the solution.

      jay_s_ukundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator @Ajith Pinninti
        last edited by

        @Ajith-Pinninti said in G28 W Error: Failed to enable endstops:

        M574 W1 S1 P"!e2stop"

        Try duex.e2stop as the pin name.

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 1
        • jay_s_ukundefined
          jay_s_uk @Ajith Pinninti
          last edited by

          @Ajith-Pinninti can you paste the output from the following?
          M98 P"config.g"

          @Ajith-Pinninti said in G28 W Error: Failed to enable endstops:

          M350 X256 Y256 Z128 U256 V128 W128 I0

          i also wouldn't be running at this many microsteps. x16 or x32 is sufficient. you will be overloading the MCU when you start running fast prints

          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

          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator @Ajith Pinninti
            last edited by

            @Ajith-Pinninti said in G28 W Error: Failed to enable endstops:

            M574 W1 S1 P"!e2stop"

            Try duex.e2stop as the pin name.

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 1
            • Ajith Pinnintiundefined Ajith Pinninti has marked this topic as solved
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA