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

    Trouble with Axes homing

    Scheduled Pinned Locked Moved
    General Discussion
    3
    5
    189
    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.
    • Karthikundefined
      Karthik
      last edited by

      Hi,

      I have a cartesian printer controlled by Duet 2 wifi board running Reprap firmware v3.0.

      When I do home all, the corresponding axes are moving in the right direction and the end stops are being detected properly. The home buttons are turning into Blue color.

      The problem is after couple of seconds the buttons turn orange and shows "The following axes are not homed: X, Y, Z" message. I have no idea what's wrong.

      Here is the config.g file:

      ; Configuration file for Duet WiFi (firmware version 3)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v3.2.0 on Mon Dec 28 2020 18:47:42 GMT+0530 (India Standard Time)
      
      ; General preferences
      G90                                                    ; send absolute coordinates...
      M83                                                    ; ...but relative extruder moves
      M550 P"Zeus"                                           ; 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 S1                                             ; physical drive 2 goes forwards
      M569 P3 S1                                             ; physical drive 3 goes forwards
      M584 X0 Y1 Z10 E3                                       ; set drive mapping
      M350 X16 Y16 Z16 E16 I0                                ; configure microstepping without interpolation
      M92 X128.00 Y128.00 Z1600.00 E409.00                   ; set steps per mm
      M566 X900.00 Y900.00 Z120.00 E120.00                   ; set maximum instantaneous speed changes (mm/min)
      M203 X900.00 Y900.00 Z120.00 E1200.00                  ; set maximum speeds (mm/min)
      M201 X10.00 Y10.00 Z2.00 E250.00                       ; set accelerations (mm/s^2)
      M906 X800 Y800 Z1000 E800 I0                           ; set motor currents (mA) and motor idle factor in per cent
      M84 S5                                                 ; Set idle timeout
      
      ; Axis Limits
      M208 X0 Y0 Z0 S1                                       ; set axis minima
      M208 X350 Y500 Z250 S0                                 ; set axis maxima
      
      ; Endstops
      M574 X1 S0 P"!xstop"                                   ; configure active-high endstop for low end on X via pin !xstop
      M574 Y1 S0 P"!ystop"                                   ; configure active-high endstop for low end on Y via pin !ystop
      M574 Z2 S0 P"!zstop"                                   ; configure active-high endstop for high end on Z via pin !zstop
      
      ; Z-Probe
      ;M558 P0 H5 F120 T600                                   ; disable Z probe but set dive height, probe speed and travel speed
      ;M557 X15:215 Y15:195 S20                               ; define mesh grid
      
      ; Heaters
      M308 S0 P"bedtemp" Y"thermistor" T100000 B4138         ; configure sensor 0 as thermistor on pin bedtemp
      M950 H0 C"bedheat" T0                                  ; create bed heater output on bedheat and map it to sensor 0
      M307 H0 B1 S1.00                                       ; enable bang-bang mode for the bed heater and set PWM limit
      M140 H0                                                ; map heated bed to heater 0
      M143 H0 S280                                           ; set temperature limit for heater 0 to 280C
      M308 S1 P"e0temp" Y"thermistor" T100000 B4725 C7.06e-8 ; configure sensor 1 as thermistor on pin e0temp
      M950 H1 C"e0heat" T1                                   ; create nozzle heater output on e0heat and map it to sensor 1
      M307 H1 B0 S1.00                                       ; disable bang-bang mode for heater  and set PWM limit
      M143 H1 S280                                           ; set temperature limit for heater 1 to 280C
      
      ; Fans
      M950 F0 C"fan0" Q500                                   ; create fan 0 on pin fan0 and set its frequency
      M106 P0 S0.8 H1 T80                                    ; set fan 0 value. Thermostatic control is turned on
      M950 F1 C"fan1" Q500                                   ; 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" Q500                                   ; 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
      M563 P0 S"Extruder" D0 H1 F0                           ; define tool 0
      G10 P0 X0 Y0 Z0                                        ; set tool 0 axis offsets
      G10 P0 R0 S0                                           ; set initial tool 0 active and standby temperatures to 0C
      
      ; Custom settings are not defined
      
      ; Miscellaneous
      M575 P1 S1 B57600                                      ; enable support for PanelDue
      
      
      

      I am using switches as end stops for all three axes. Also the same happens if I perform homing for individual axis. Can someone tell me what's wrong?

      Thanks in advance!

      deckingmanundefined 1 Reply Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @Karthik
        last edited by deckingman

        @Karthik Axes will lose their homing status if there is no holding current on the stepper motors. That's because without any holding current, it would be easy to accidentally knock something out of position and it would no longer be in the position that the firmware thinks it is.

        In you configuration file, you have this
        M906 X800 Y800 Z1000 E800 I0 and M84 S5

        So effectively that's telling the firmware to set the holding current to zero after 5 seconds. When that happens, the axes will then be flagged as not homed. The fix is to change the I0 to something like I20 which will set the idle hold current to 20%.

        Ian
        https://somei3deas.wordpress.com/
        https://www.youtube.com/@deckingman

        1 Reply Last reply Reply Quote 1
        • Karthikundefined
          Karthik
          last edited by

          @deckingman Thank you very much. It worked. But is there any way to eliminate the holding current? I have lead screws for all three axes, and it wont easily move out of position.

          deckingmanundefined 1 Reply Last reply Reply Quote 0
          • deckingmanundefined
            deckingman @Karthik
            last edited by

            @Karthik said in Trouble with Axes homing:

            @deckingman Thank you very much. It worked. But is there any way to eliminate the holding current? I have lead screws for all three axes, and it wont easily move out of position.

            Not that I know of - at least not without losing the homed flag. Why would you want to?

            Ian
            https://somei3deas.wordpress.com/
            https://www.youtube.com/@deckingman

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

              If you're positive that things aren't going to move on you when the motors are off you can create a macro with G92 in it to set the current position to a known coordinate. I use that sometimes if I don't want to rehome again after the motors have turned off and I know that none of the axis are moved. My G92 has the same X Y Z coordinates as the machine has after homing. G92 X10 Y10 Z10.

              Z-Bot CoreXY Build | Thingiverse Profile

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