BLTouch working, then not working, then working for a bit...



  • Sigh. So Sometimes the BLTouch deploys, sometimes it doesn't. If it does deploy on a G28, the next thing I do is a G29 and it doesn't deploy and pounds into the build plate. I do an emergency stop and cycle the power and run a g28. Sometimes the probe deploys sometimes it doesn't. Two weeks ago it was working fine every time. I beginning to lose faith in, and patience with the Duet.

    ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu Sep 06 2018 21:21:12 GMT-0700 (Pacific Daylight Time)

    ; General preferences
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves

    ; Network
    M550 Pe3 ; Set machine name
    M552 S1 ; Enable network
    ;*** Access point is configured manually via M587
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P0 S0 ; Drive 0 goes backwards
    M569 P1 S0 ; Drive 1 goes backwards
    M569 P2 S1 ; Drive 2 goes forwards
    M569 P3 S0 ; Drive 3 goes backwards
    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    M92 X80.00 Y80.00 Z400 E95 ; Set steps per mm
    M566 X1000 Y1000 Z100 E30000 ; Set maximum instantaneous speed changes (mm/min)
    M203 X6000 Y6000 Z500 E1500 ; Set maximum speeds (mm/min)

    M201 X300 Y300 Z100 E5000 ; Set accelerations (mm/s^2) was 500 you changed it to 300 for stall guard
    M906 X500 Y500 Z500 E1000 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S300 ; Set idle timeout

    ; Axis Limits
    M208 X-5.5 Y-10 Z0 S1 ; Set axis minima
    M208 X258.5 Y246 Z260 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y1 S1 ; Set active high endstops

    ; Z-Probe
    M574 Z1 S2 ; Set endstops controlled by probe
    M307 H3 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
    M307 H4 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
    M558 P9 H2.5 F120 T6000 ; Set Z probe type to bltouch and the dive height + speeds
    G31 P25 X-31 Y0 Z1.86 ; Set Z probe trigger value, offset and trigger height
    M557 X50:185 Y50:185 S65 ; Define mesh grid

    ; Heaters
    M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C
    M305 P1 X150 T"K" ; Set THERMOCOUPLE parameters for heater 1 X150 is the right channel (terminal block) on the daughterboard. X151 is the right channel.
    ;M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S345 ; Set temperature limit for heater 1 to 345C

    ; Fans
    M106 P0 S0 I0 B0.5 F250 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S1 I0 B0.5 F500 L255 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Minimum Speed is 1/3 aka 87 Thermostatic control is turned on triggered at nozzle temp 45;
    M106 P2 S0 I0 B0.5 F500 H-1 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

    ; Tools
    M563 P0 D0 H1 ; 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

    ; Automatic power saving
    M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss

    ; Custom settings
    M591 D0 P5 C3 R10:300 E3.0 S1 ; Duet3D laser sensor for extruder drive 0 is connected to endstop input 3 (E0), tolerance 10 to 120%, 3mm comparison length

    ; deployprobe.g
    ; called to deploy a physical Z probe
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu Sep 06 2018 21:21:12 GMT-0700 (Pacific Daylight Time)
    M280 P3 S10 I1

    ; bed.g
    ; called to perform automatic bed compensation via G32
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu Sep 06 2018 21:21:12 GMT-0700 (Pacific Daylight Time)
    M561 ; clear any bed transform
    M98 Pdeployprobe.g ; deploy mechanical Z probe
    ; Probe the bed at 4 points
    G30 P0 X50 Y50 H0 Z-99999 ;G30 P0 X20 Y20 H0 Z-99999
    G30 P1 X50 Y185 H0 Z-99999 ;G30 P1 X20 Y215 H0 Z-99999
    G30 P2 X185 Y185 H0 Z-99999 ;G30 P2 X215 Y215 H0 Z-99999
    G30 P3 X185 Y50 H0 Z-99999 S ;G30 P3 X215 Y20 H0 Z-99999 S
    M98 Pretractprobe.g ; retract mechanical Z probe


  • administrators

    Which firmware version are you using, and which Duet?



  • @BearcatTD said in BLTouch working, then not working, then working for a bit...:

    Sometimes the probe deploys sometimes it doesn't.

    this sounds more like a problem with the bltouch.
    if the bltouch does not deploy properly there is a grub screw at the top that can be adjusted



  • @dc42

    I have a Duet 2 wifi

    Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
    Firmware Electronics: Duet WiFi 1.02 or later
    Firmware Version: 2.04RC3 (2019-10-08b3)
    WiFi Server Version: 1.23
    Web Interface Version: 1.22.6



  • also check the wiring. a lot of people have problems with the bltouch extension cable.
    that could cause intermitten connection problems.



  • @Veti said in BLTouch working, then not working, then working for a bit...:

    also check the wiring. a lot of people have problems with the bltouch extension cable.
    that could cause intermitten connection problems.

    I have a couple of extra BLTouches laying around that I have tried with the same results. All connections seem to be firm.



  • I found a brand new BLTouch with an extension cable. Still the same. It's the board, or the code.


  • administrators

    @BearcatTD said in BLTouch working, then not working, then working for a bit...:

    @dc42

    I have a Duet 2 wifi

    Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
    Firmware Electronics: Duet WiFi 1.02 or later
    Firmware Version: 2.04RC3 (2019-10-08b3)
    WiFi Server Version: 1.23
    Web Interface Version: 1.22.6

    Please install 2.04RC4. There is a known issue when 2.04RC3 is used with the version 3 BLTouch.



  • Downloaded and installed. Got this error: Error: M997: In-application binary "iap4e.bin" not found

    Current Software information:

    Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
    Firmware Electronics: Duet WiFi 1.02 or later
    Firmware Version: 2.04RC3 (2019-10-08b3)
    WiFi Server Version: 1.23
    Web Interface Version: 1.22.6

    Pin still doesn't deploy.



  • I guess the firmware didn't install, yet the text said it did. I went and found the iap4e.bin file, then the firmware installed. Still no probe deployment. I've spent an entire weekend screwing with this...



  • What happens if you send the command to put the probe into test mode where it deploys and retracts repeatedly? Let it run that for a long time and see if it successfully deploys and retracts or if it gets stuck/fails.

    What do you have in your homing files?
    What do you have in the deploy and retract files?
    What version of BLTouch is it? Clone or genuine?



  • @Phaedrux
    The BLTouch is a genuine v3.0. Here are all of the files you requested, plus config.g. Thanks!

    ; homeall.g
    ; called to home all axes
    ;
    ; generated by RepRapFirmware Configuration Tool on Sat Sep 29 2018 12:21:44 GMT-0700 (Pacific Daylight Time)
    G91 ; relative positioning
    G1 Z2.5 F6000 S2 ; lift Z relative to current position
    M98 Pdeployprobe.g ; deploy mechanical Z probe
    G1 S1 X-269 Y-261 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 X5 Y5 F6000 ; go back a few mm
    G1 S1 X-269 Y-261 F360 ; move slowly to X and Y axis endstops once more (second pass)
    G90 ; absolute positioning
    G1 X51 Y20 F6000 ; go to first bed probe point and home Z
    G30 ; home Z by probing the bed

    ; Uncomment the following lines to lift Z after probing
    ;G91 ; relative positioning
    ;G1 S2 Z2.5 F100 ; lift Z relative to current position
    ;G90 ; absolute positioning

    M98 Pretractprobe.g ; retract mechanical Z probe

    ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Sat Sep 29 2018 12:21:45 GMT-0700 (Pacific Daylight Time)
    G91 ; relative positioning
    G1 Z2.5 F6000 S2 ; lift Z relative to current position
    G1 S1 X-269 F1800 ; move quickly to X axis endstop and stop there (first pass)
    G1 X5 F6000 ; go back a few mm
    G1 S1 X-269 F360 ; move slowly to X axis endstop once more (second pass)
    G1 Z-2.5 F6000 S2 ; lower Z again
    G90 ; absolute positioning

    ; homey.g
    ; called to home the Y axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Sat Sep 29 2018 12:21:44 GMT-0700 (Pacific Daylight Time)
    G91 ; relative positioning
    G1 Z2.5 F6000 S2 ; lift Z relative to current position
    G1 S1 Y-261 F1800 ; move quickly to Y axis endstop and stop there (first pass)
    G1 Y5 F6000 ; go back a few mm
    G1 S1 Y-261 F360 ; move slowly to Y axis endstop once more (second pass)
    G1 Z-2.5 F6000 S2 ; lower Z again
    G90 ; absolute positioning

    ; homez.g
    ; called to home the Z axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Sat Sep 29 2018 12:21:44 GMT-0700 (Pacific Daylight Time)
    G91 ; relative positioning
    G1 Z2.5 F6000 S2 ; lift Z relative to current position
    G90 ; absolute positioning
    G1 X51 Y20 F6000 ; go to first probe point
    G30 ; home Z by probing the bed

    ; Uncomment the following lines to lift Z after probing
    ;G91 ; relative positioning
    ;G1 S2 Z2.5 F100 ; lift Z relative to current position
    ;G90 ; absolute positioning

    ; deployprobe.g
    ; called to deploy a physical Z probe
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu Sep 06 2018 21:21:12 GMT-0700 (Pacific Daylight Time)
    M280 P3 S10 I1

    ; retractprobe.g
    ; called to retract a physical Z probe
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu Sep 06 2018 21:21:12 GMT-0700 (Pacific Daylight Time)
    M280 P3 S90 I1

    ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu Sep 06 2018 21:21:12 GMT-0700 (Pacific Daylight Time)

    ; Config.g
    ; General preferences
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves

    ; Network
    M550 Pe3 ; Set machine name
    M552 S1 ; Enable network
    ;*** Access point is configured manually via M587
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P0 S0 ; Drive 0 goes backwards
    M569 P1 S0 ; Drive 1 goes backwards
    M569 P2 S1 ; Drive 2 goes forwards
    M569 P3 S0 ; Drive 3 goes backwards
    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    M92 X80.00 Y80.00 Z400 E95 ; Set steps per mm
    M566 X1000 Y1000 Z100 E30000 ; Set maximum instantaneous speed changes (mm/min)
    M203 X6000 Y6000 Z500 E1500 ; Set maximum speeds (mm/min)

    M201 X300 Y300 Z100 E5000 ; Set accelerations (mm/s^2) was 500 you changed it to 300 for stall guard
    M906 X500 Y500 Z500 E1000 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S300 ; Set idle timeout

    ; Axis Limits
    M208 X-5.5 Y-10 Z0 S1 ; Set axis minima
    M208 X258.5 Y246 Z260 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y1 S1 ; Set active high endstops

    ; Z-Probe
    M574 Z1 S2 ; Set endstops controlled by probe
    M307 H3 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
    M307 H4 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
    M558 P9 H2.5 F120 T6000 ; Set Z probe type to bltouch and the dive height + speeds
    G31 P25 X-31 Y0 Z2.759 ; Set Z probe trigger value, offset and trigger height
    M557 X50:185 Y50:185 S65 ; Define mesh grid

    ; Heaters
    M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S345 ; Set temperature limit for heater 1 to 345C

    ; Fans
    M106 P0 S0 I0 B0.5 F250 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S1 I0 B0.5 F500 L255 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Minimum Speed is 1/3 aka 87 Thermostatic control is turned on triggered at nozzle temp 45;
    M106 P2 S0 I0 B0.5 F500 H-1 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

    ; Tools
    M563 P0 D0 H1 ; 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

    ; Automatic power saving
    M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss

    ; Custom settings
    M591 D0 P5 C3 R10:300 E3.0 S1 ; Duet3D laser sensor for extruder drive 0 is connected to endstop input 3 (E0), tolerance 10 to 120%, 3mm comparison length



  • @BearcatTD
    thanks for posting your config files. I too have had lots of problems getting BL touch (classic) to work.
    it turns out the docs say not to use deploy and retract probe.g files
    but when i added those files, it started to work.
    the trouble shooting doc is confusing, 1 line says do not use in new firmware, the next line says be sure to have them.
    either way, now i'm off to tweak. just want to say thanks for sharing.

    "Don't use M98 PDeployprobe.g The old way using probe type 5 required you to use M98 PDeployprobe.g and M98PRetractprobe.g to deploy and retract the pin. Type9 now handles the deployment internally. If you need to manually deploy and retract, use M401 and M402, respectively."
    "Double Check Deployprobe.g and Retractprobe.g Make sure your deploy and retract macros located in the sys folder are configured correctly. "



  • @ianborg said in BLTouch working, then not working, then working for a bit...:

    "Don't use M98 PDeployprobe.g The old way using probe type 5 required you to use M98 PDeployprobe.g and M98PRetractprobe.g to deploy and retract the pin. Type9 now handles the deployment internally. If you need to manually deploy and retract, use M401 and M402, respectively."
    "Double Check Deployprobe.g and Retractprobe.g Make sure your deploy and retract macros located in the sys folder are configured correctly. "

    M98 PDeployprobe.g means running the deploy file as a macro. That's not recommended because then the firmware doesn't know what state the probe is in. The deployprobe.g file still needs to exist and have the M280 command in it, you just shouldn't manually execute it. Let the firmware handle that part. It will deploy and retract automatically when using G30 or G29.



  • @BearcatTD said in BLTouch working, then not working, then working for a bit...:

    M98 Pdeployprobe.g ; deploy mechanical Z probe
    M98 Pretractprobe.g ; retract mechanical Z probe

    Remove those from your home all file. Let the firmware deploy and retract the probe automatically.

    Still curious to see the results of putting it in test mode for a while.



  • @Phaedrux Thanks!

    I deleted those two lines, power cycled the printer and everything has been working fine for the last hour or two. But, alas, that has uncovered another problem...LOL...see new post!

    Thanks again for everyone's kind suggestions!
    Pat



  • @Phaedrux appreciate the follow up. the wording still seemed confusing to me. perhaps they will update the docs to be more specific with the requirement. also thanks for the tip on removing the unnecessary lines, all is working well now.


Log in to reply