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

    Failed to Enable Endstops

    Scheduled Pinned Locked Moved
    General Discussion
    4
    26
    1.6k
    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.
    • Tpmosesundefined
      Tpmoses
      last edited by

      I was able to get the bed sensor to read, using this line.

      M308 S0 P"spi.cs1" Y"thermocouple-max31856"
      M950 H0 C"bedheat" T0
      M307 H0 B0 S1
      
      1 Reply Last reply Reply Quote 0
      • Tpmosesundefined
        Tpmoses
        last edited by

        The Heating Element temp now works too, the Callout is the spi.cs1, the number changes based on the port on the daughter chip.

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

          Excellent - glad to hear you got it working.

          And I learned something new in the process - thank you.

          Anything else not working?

          Frederick

          Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

          Tpmosesundefined 1 Reply Last reply Reply Quote 0
          • Tpmosesundefined
            Tpmoses @fcwilt
            last edited by

            @fcwilt The x and y drives wont run and I am guessing the extruder will have the same problem as it is on that board, they are on a breakout board not the standard drive ports. The previous config the ports used were 8, 6, and 5 respectively, in the new configuration they were assigned as 0, 1 and 3. Z didn't change, and its the only one that is still working. When I assign them like the previous config nothing happens, so I am guessing when I say there is probably a callout in the drive assignment that I am missing.

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

              ; Drives
              M569 P8 S1                                         ; physical drive 6 goes forwards
              M569 P6 S0                                         ; physical drive 8 goes forwards
              M569 P2 S0                                         ; physical drive 2 goes forwards
              M569 P5 S0                                         ; physical drive 5 goes forwards
              M584 X8 Y6 Z2 E5                                   ; set drive mapping
              

              What do you have in your config now?

              Can you show a photo of what you mean by breakout board for the drivers?

              Z-Bot CoreXY Build | Thingiverse Profile

              Tpmosesundefined 1 Reply Last reply Reply Quote 0
              • Tpmosesundefined
                Tpmoses @Phaedrux
                last edited by

                @Phaedrux here is a picture of the board in the cabinet.

                20210122_150119.jpg

                Here is the page with the wire diagram,

                https://duet3d.dozuki.com/Wiki/Duet_Expansion_Breakout_Board

                I have attempted to put assign the drives in the way that it is in your screenshot, as well as trying to put it in the format as on the above page.

                Thanks!

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

                  If the motors are wired the same as before you should be able to use the same commands as your old config.

                  ; Drives
                  M569 P8 S1                                         ; physical drive 6 goes forwards
                  M569 P6 S0                                         ; physical drive 8 goes forwards
                  M569 P2 S0                                         ; physical drive 2 goes forwards
                  M569 P5 S0                                         ; physical drive 5 goes forwards
                  M584 X8 Y6 Z2 E5                                   ; set drive mapping
                  

                  I think what is happening during homing is that your endstops are reporting as triggered immediately because the endstops need to be inverted.

                  In your old config you had S0 to invert the signal, and in the new config you would need to do the inversion a little differently by adding a ! to the pin name.

                  Change your endstop config to this

                  ; Endstops
                  M574 X1 S1 P"!xstop"                                
                  M574 Y1 S1 P"!ystop"                                
                  

                  Z-Bot CoreXY Build | Thingiverse Profile

                  Tpmosesundefined 1 Reply Last reply Reply Quote 0
                  • Tpmosesundefined
                    Tpmoses @Phaedrux
                    last edited by

                    @Phaedrux looks like it was a combination of both, here is the current config.g, it will home all three axis' now.

                    Thank you all for your help, I will probably have more questions in the next few days.

                    ; Configuration file for Duet WiFi (firmware version 3)
                    ; executed by the firmware on start-up
                    ;
                    ; generated by RepRapFirmware Configuration Tool v3.2.2 on Fri Jan 22 2021 11:13:01 GMT-0600 (Central Standard Time)
                    
                    ; General preferences
                    G90                                                ; send absolute coordinates...
                    M83                                                ; ...but relative extruder moves
                    M550 P"Caymas 3D Printer"                          ; 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 P8 R1 T2.5:2.5:5:5 S0                                         ; physical drive 8 goes forwards
                    M569 P6 R1 T2.5:2.5:5:5 S1                                         ; physical drive 6 goes forwards
                    M569 P2 S0                                         ; physical drive 2 goes forwards
                    M569 P5 R1 T2.5:2.5:5:5 S1                                         ; physical drive 5 goes forwards
                    M584 X6 Y8 Z2 E5                                   ; set drive mapping
                    M350 X16 Y16 Z16 E16 I1                            ; configure microstepping with interpolation
                    M92 X320.00 Y320.00 Z640.00 E40.00                 ; set steps per mm
                    M566 X200.00 Y200.00 Z12.00 E120.00                ; set maximum instantaneous speed changes (mm/min)
                    M203 X3000.00 Y3000.00 Z3400.00 E4000.00            ; set maximum speeds (mm/min)
                    M201 X200.00 Y200.00 Z12.00 E250.00                ; set accelerations (mm/s^2)
                    M906 X2000 Y2000 Z2800 E800 I30                    ; set motor currents (mA) and motor idle factor in per cent
                    M84 S30                                            ; Set idle timeout
                    
                    ; Axis Limits
                    M208 X0 Y0 Z0 S1                                   ; set axis minima
                    M208 X1100 Y1100 Z1100 S0                          ; set axis maxima
                    
                    ; Endstops
                    M574 X1 S1 P"!xstop"                                ; configure active-low endstop for low end on X via pin xstop
                    M574 Y1 S1 P"!ystop"                                ; configure active-low endstop for low end on Y via pin ystop
                    M574 Z1 S2                                         ; configure Z-probe endstop for low end on Z
                    
                    ; Z-Probe
                    M558 P1 C"zprobe.in+zprobe.mod" H5 F240 T3600      ; set Z probe type to unmodulated and the dive height + speeds
                    G31 P500 X570 Y570 Z1.8                            ; set Z probe trigger value, offset and trigger height
                    M557 X100:1100 Y100:1100 S100                      ; define mesh grid
                    
                    ; Heaters
                    M308 S0 P"spi.cs1" Y"thermocouple-max31856"        ; configure sensor 0 as thermocouple on pin bedtemp
                    M950 H0 C"bedheat" T0                              ; create bed heater output on bedheat and map it to sensor 0
                    M307 H0 B0 S1.00                                   ; disable bang-bang mode for the bed heater and set PWM limit
                    M140 H0                                            ; map heated bed to heater 0
                    M143 H0 S120                                       ; set temperature limit for heater 0 to 120C
                    M308 S1 P"spi.cs2" Y"thermocouple-max31856"      ; 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 S320                                       ; set temperature limit for heater 1 to 320C
                    
                    ; Fans
                    M950 F0 C"fan0" Q500                               ; create fan 0 on pin fan0 and set its frequency
                    M106 P0 S0 H-1                                     ; set fan 0 value. Thermostatic control is turned off
                    M950 F1 C"fan1" Q500                               ; create fan 1 on pin fan1 and set its frequency
                    M106 P1 S1 H1 T45                                  ; set fan 1 value. Thermostatic control is turned on
                    
                    ; Tools
                    M563 P0 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
                    M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
                    
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator
                      last edited by

                      Great. Glad we were able to help.

                      One more issue I can forsee you running into next is heating the bed. It will need to be PID tuned.

                      M303 H0 S60 to tune it to 60c, for the hotend M303 T0 S200 followed by M500 to save the results to config-overide.g and then add M501 to the end of config.g to load them again at start up.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      Tpmosesundefined 1 Reply Last reply Reply Quote 0
                      • Tpmosesundefined
                        Tpmoses @Phaedrux
                        last edited by

                        @Phaedrux Thank you, I will apply to the program!

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