BLtouch, Firmware 3.0, Duet 2 and Duex 5 not working....



  • Hi *,

    I'm migrating my CR10S pro v2 to a Duet2 with a Duex5 this days today is my BLTouch problem.

    I generated a configuration with the generator but without luck. I tried understand the doku from the wiki but I simply do not get it. I'm sure it is me but I do not know how I could help myself, so you guys are my last hope.

    I connected the BLtouch to PWM 5 on the Duex5 and the "to pins" to "Z probe" on the Duet2. (https://betrue3d.dk/bltouch-on-duet-wifi-configuratio-and-usage/)

    Here is my last config: (This is my latest test state)

    ; Configuration file for Duet WiFi (firmware version 3)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun May 10 2020 08:05:32 GMT+0200 (Central European Summer Time)
    
    ; General preferences
    G90                                            ; send absolute coordinates...
    M83                                            ; ...but relative extruder moves
    M550 P"Homer"                                  ; 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 Z2 E3                               ; set drive mapping
    M350 X16 Y16 Z16 E16 I1                        ; configure microstepping with interpolation
    M92 X80.00 Y80.00 Z4000.00 E420.00             ; set steps per mm
    M566 X900.00 Y900.00 Z12.00 E120.00            ; set maximum instantaneous speed changes (mm/min)
    M203 X6000.00 Y6000.00 Z180.00 E1200.00        ; set maximum speeds (mm/min)
    M201 X500.00 Y500.00 Z20.00 E250.00            ; set accelerations (mm/s^2)
    M906 X800 Y800 Z800 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 X310 Y310 Z400 S0                         ; set axis maxima
    
    ; Endstops
    M574 X1 S1 P"xstop"                            ; configure active-high endstop for low end on X via pin xstop
    M574 Y1 S1 P"ystop"                            ; configure active-high endstop for low end on Y via pin ystop
    M574 Z1 S2                                     ; configure Z-probe endstop for low end on Z
    
    ; Z-Probe
    M950 S0 C"exp.heater7"                         ; create servo pin 0 for BLTouch
    M558 P9 C"exp.heater7" H5 F120 T6000           ; Chriss - set Z probe type to bltouch and the dive height + speeds
    G31 P500 X27 Y0 Z2.5                           ; set Z probe trigger value, offset and trigger height
    M557 X15:295 Y15:295 S20                       ; define mesh grid
    
    ; Heaters :: BED
    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
    M143 H0 S120                                   ; set temperature limit for heater 0 to 120C
    ;M307 H0 B1 S1.00                               ; enable bang-bang mode for the bed heater and set PWM limit
    ;M307 H0 B0 S1.00                               ; disable bang-bang mode for the bed heater and set PWM limit
    M307 H0 A245.4 C400.5 D1.3 S1.00 V24.1 B0		; Chriss - Disable bang-bang, tuned with "M303 H0 S120"
    M140 H0                                        ; map heated bed to heater 0
    
    ; Heaters :: Hotend
    M308 S1 P"e0temp" Y"thermistor" T100000 B4138  ; 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
    M143 H1 S280                                   ; set temperature limit for heater 1 to 280C
    ;M307 H1 B0 S1.00                               ; disable bang-bang mode for heater  and set PWM limit
    M307 H1 A709.3 C250.2 D3.4 S1.00 V24.0 B0      ; Chriss - tuned with "M303 H0 S280"
    
    
    ; BLTouch - Heaters
    ;M307 H7 A-1 C-1 D-1                            ; Chriss - Disable the 7th Heater to free up PWM channel 5 on the Duex board.
    
    
    
    
    
    
    
    ; 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 S"Extrudor" 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
    
    
    

    I hope that somebody can help me....

    Cheers, Chriss



  • @Chriss said in BLtouch, Firmware 3.0, Duet 2 and Duex 5 not working....:

    M558 P9 C"exp.heater7" H5 F120 T6000

    M558 P9 C"^zprobe.in" H5 F120 T6000



  • @DIY-O-Sphere said in BLtouch, Firmware 3.0, Duet 2 and Duex 5 not working....:

    M558 P9 C"^zprobe.in" H5 F120 T6000

    Still the same. 😞

    Would I need something like:
    M307 H7 A-1 C-1 D-1
    ?

    Cheers, Chriss



  • @Chriss said in BLtouch, Firmware 3.0, Duet 2 and Duex 5 not working....:

    M307 H7 A-1 C-1 D-1

    Should work without that.
    You can try to swap the lines to:
    M558 P9 C"^zprobe.in" H5 F120 T6000
    M950 S0 C"exp.heater7"



  • @DIY-O-Sphere said in BLtouch, Firmware 3.0, Duet 2 and Duex 5 not working....:

    Should work without that.

    Still the same... 😞
    Let me explain the problem a bit more:
    I get the error when "Home Z":
    Error: Z probe already triggered at the start of probinb move"

    And the endstop "2" is "Triggered=Yes" in the webinterface.

    The BLTouch is directly connected, no "made by me" wires between the board and the BLTouch.

    Do I need the "M307 H7 A-1 C-1 D-1"? I found that in the docu, it makes no difference for now, but it is good to know anyway. And I want to make it right.

    Cheers, Chriss



  • @Chriss
    You can try to remove the"^"



  • @Chriss
    Can you please post the content of retractprobe.g and deployprobe.g?
    Have you replaced them with the new ones?



  • @DIY-O-Sphere said in BLtouch, Firmware 3.0, Duet 2 and Duex 5 not working....:

    Can you please post the content of retractprobe.g and deployprobe.g?
    deployprope.g

    M280 P0 S10 ; deploy BLTouch
    

    retractprobe.g

    M280 P0 S90 ; retract BLTouch
    

    Have you replaced them with the new ones?
    I'm not sure, to be honest. I tried a lot of things and changed a lot back and forth. The only thing I may have changes is the "P0" in M280.

    One more thing: The BLTouch deployes and retracts the probe a couple of time when I power on the board. The status in the gui is at that point "triggered". So I think that board do not recognize the actual state of the probe.

    Btw: The red LED next to the "E6 heater" connector on the Duex is "on". Should that be the case?

    Cheers, Chriss



  • @Chriss
    The Duex inverts the signal.
    You have 2 options...

    M950 S0 C"!exp.heater7"
    or
    M950 S0 C"duex.pwm5"



  • @Chriss said in BLtouch, Firmware 3.0, Duet 2 and Duex 5 not working....:

    One more thing: The BLTouch deployes and retracts the probe a couple of time when I power on the board. The status in the gui is at that point "triggered". So I think that board do not recognize the actual state of the probe.

    Btw: The red LED next to the "E6 heater" connector on the Duex is "on". Should that be the case?

    Cheers, Chriss

    I think that should be fine, my E2 ( I think) LED on my Duex5 turns on once I start probing with my BLTouch

    @DIY-O-Sphere said in BLtouch, Firmware 3.0, Duet 2 and Duex 5 not working....:

    @Chriss
    The Duex inverts the signal.
    You have 2 options...

    M950 S0 C"!exp.heater7"
    or
    M950 S0 C"duex.pwm5"

    These should work for you - I use "duex.pwm1" as I plug my BLtouch into that header



  • @sebkritikel @DIY-O-Sphere

    Thanks for your your help, it is working now! 🙂 The change to "pwm5" did it.

    I use only M558 and M950 now:

    M558 P9 C"^zprobe.in" H5 F120 T6000
    M950 S0 C"duex.pwm5"
    

    I removed the "M307 H7 A-1 C-1 D-1" and left the "deployprope.g" and "retractprobe.g" untouched.

    Wow... what a journey.

    Cheers, Chriss



  • @sebkritikel @DIY-O-Sphere

    I was a bit to optimistic, the status of the endstop is "Triggered = no" now. So far so good. But the state change is not recognized. The motors do not stop when the probe got triggered and the state of the endstop do not change in the web-gui.

    My understanding is that this should make that:

    M574 X1 S1 P"xstop"                            ; configure active-high endstop for low end on X via pin xstop
    M574 Y1 S1 P"ystop"                            ; configure active-high endstop for low end on Y via pin ystop
    M574 Z1 S2                                     ; configure Z-probe endstop for low end on Z
    

    What did I miss?

    Cheers, Chriss


  • Moderator

    Double check your white wire for continuity. Check the crimp.

    What version of BLtouch is it?

    Please post your current config.g after all your changes.


  • administrators

    Does the pin deploy and retract when you send M401 and M402 ?

    AFAIR it's normal for the probe to show as triggered when the pin is retracted.



  • @Phaedrux

    Double check your white wire for continuity. Check the crimp.

    It works electrically, I see the status change in the web ui, this should not be the case if it is not connected, am I right?

    What version of BLtouch is it?

    3.1

    Please post your current config.g after all your changes.

    ; Configuration file for Duet WiFi (firmware version 3)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun May 10 2020 08:05:32 GMT+0200 (Central European Summer Time)
    
    ; General preferences
    G90                                            ; send absolute coordinates...
    M83                                            ; ...but relative extruder moves
    M550 P"Homer"                                  ; 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 S0                                     ; physical drive 0 goes backward
    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 Z2 E3                               ; set drive mapping
    M350 X16 Y16 Z16 E16 I1                        ; configure microstepping with interpolation
    M92 X80.00 Y80.00 Z4000.00 E420.00             ; set steps per mm
    M566 X900.00 Y900.00 Z12.00 E120.00            ; set maximum instantaneous speed changes (mm/min)
    M203 X6000.00 Y6000.00 Z180.00 E1200.00        ; set maximum speeds (mm/min)
    M201 X500.00 Y500.00 Z20.00 E250.00            ; set accelerations (mm/s^2)
    M906 X800 Y800 Z800 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 X310 Y310 Z400 S0                         ; set axis maxima
    
    ; Endstops
    M574 X1 S1 P"xstop"                            ; configure active-high endstop for low end on X via pin xstop
    M574 Y1 S1 P"ystop"                            ; configure active-high endstop for low end on Y via pin ystop
    M574 Z1 S2                                     ; configure Z-probe endstop for low end on Z
    
    ; Z-Probe
    
    ;M558 P9 C"exp.heater7" H5 F120 T6000           ; Chriss - set Z probe type to bltouch and the dive height + speeds
    ;M307 H7 A-1 C-1 D-1                            ; Chriss - Disable the 7th Heater to free up PWM channel 5 on the Duex board.
    M558 P9 C"^zprobe.in" H5 F120 T6000
    ;M950 S0 C"exp.heater7"                         ; Chriss - create servo pin 0 for BLTouch
    M950 S0 C"duex.pwm5"
    
    G31 P500 X27 Y0 Z2.5                           ; set Z probe trigger value, offset and trigger height
    M557 X15:295 Y15:295 S20                       ; define mesh grid
    
    ; Heaters :: BED
    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
    M143 H0 S120                                   ; set temperature limit for heater 0 to 120C
    ;M307 H0 B1 S1.00                               ; enable bang-bang mode for the bed heater and set PWM limit
    ;M307 H0 B0 S1.00                               ; disable bang-bang mode for the bed heater and set PWM limit
    M307 H0 A245.4 C400.5 D1.3 S1.00 V24.1 B0		; Chriss - Disable bang-bang, tuned with "M303 H0 S120"
    M140 H0                                        ; map heated bed to heater 0
    
    ; Heaters :: Hotend
    M308 S1 P"e0temp" Y"thermistor" T100000 B4138  ; 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
    M143 H1 S280                                   ; set temperature limit for heater 1 to 280C
    ;M307 H1 B0 S1.00                               ; disable bang-bang mode for heater  and set PWM limit
    M307 H1 A709.3 C250.2 D3.4 S1.00 V24.0 B0      ; Chriss - tuned with "M303 H0 S280"
    
    
    ; BLTouch - Heaters
    ;M307 H7 A-1 C-1 D-1                            ; Chriss - Disable the 7th Heater to free up PWM channel 5 on the Duex board.
    
    
    
    
    
    
    
    ; 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 S"Extrudor" 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
    
    
    


  • @Chriss Morning. What is in your deploy/retractprobe.g please.

    This is my deployprobe.g

    M280 P0 S10 	;_RRF3_ change P3 to P0
    

    HTH

    Paul



  • @PaulHew

    Good morning... 😉

    They are unchanged:

    deployprobe.g

    M280 P0 S10 ; deploy BLTouch
    

    retractprobe.g

    M280 P0 S90 ; retract BLTouch
    

    Cheers, Chriss



  • @Chriss The only thing I can see that would possibly make a difference is your M574, i do not have a M574 Z1.... I have a V3 on my RailCore

    This is mine

    ;Endstop Configuration
    M574 X1 S1 P"xstop"			             ; _RRF3
    M574 Y1 S1 P"ystop"			             ; _RRF3
    


  • @PaulHew

    I removed the line for the PBTouch as you mentioned. The status of the "Endstop 2 is now "n/a". And the motors still do not stop. The BLTouch blink when I trigger it manually. That seems like the wrong direction.

    I spended the last hour with some more test and I'm getting more and more confused.
    It seems like it is working now. The motors do stop now when I touch the probe to simulate the bed. I do not understand WHY that is now the case. One theory is that I need to touch the "bed" if Z is below the point where it was when I pres "HOME Z". O other theory is that I needed to restart the board a couple of times.

    Both sounds a bit like witchcraft.... that is most strange. Anyway, I will go no to my backyard and sacrifice a goad, just to make sure that I will not loose that status any more. 😉

    Thanks for your patience guys! Keep your fingers crossed that I do not have to reopen this thread!

    And to my future me: This is how it works now:

    ; Endstops
    M574 X1 S1 P"xstop"                            ; configure active-high endstop for low end on X via pin xstop
    M574 Y1 S1 P"ystop"                            ; configure active-high endstop for low end on Y via pin ystop                      
    M574 Z1 S2 
    
    ; Z-Probe
    M558 P9 C"^zprobe.in" H5 F120 T6000  ; set Z probe type to bltouch and the dive height + speeds
    M950 S0 C"duex.pwm5"                      ; create servo pin 0 for BLTouch
    G31 P500 X27 Y0 Z2.5                           ; set Z probe trigger value, offset and trigger height
    

    Cheers, Chriss


Log in to reply