BL Touch



  • I have a Duet WIFI on a CR-10 S5 with a BL Touch that I havent been able to set up. Anyone have a file already created?


  • Moderator

    Why not sure create a config file set from the config tool for your board type and firmware version and compare to what you have now. It's going to depend on your firmware version and how you have it hooked up, which you haven't mentioned.

    https://configtool.reprapfirmware.org/Start

    https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_BLTouch



  • I completely replaced my gcode just in case i was doing something weird. Im rocking Firmware 2.03 (2019-06-13b2). The BL touch is mounted to the side of the Bondtech DDS system here is a picture for reference from the site: alt text
    I get the following error when z is independently homed and when homing all.

     G28 Z
    
    Error: M280: Invalid servo index 7 in M280 command
    
    Error: M280: Invalid servo index 7 in M280 command
    
    Error: Z probe already triggered at start of probing move
    Error: M280: Invalid servo index 7 in M280 command
    
    Error: Homing failed
    
     Error: M280: Invalid servo index 7 in M280 command
    
    Error: M280: Invalid servo index 7 in M280 command
    
    Error: Z probe already triggered at start of probing move
    Error: M280: Invalid servo index 7 in M280 command
    

    Here is my config.g :

    ;config.g
    ; Configuration file for Duet WiFi (firmware version 2.03)
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Sun Sep 27 2020 23:42:26 GMT-0600 (Mountain Daylight Time) 
    
    ; General preferences
    G90                                                ; send absolute coordinates...
    M83                                                ; ...but relative extruder moves
    M550 P"A.C.E."                                     ; set printer name
    M669 K0                                            ; select Cartesian mode
    
    ; Network
    M551 P"My password would be here"                         ; set password
    M552 S1                                            ; enable network
    M586 P0 S1                                         ; enable HTTP
    M586 P1 S0                                         ; disable FTP
    M586 P2 S0                                         ; disable Telnet
    
    ; Drives
    M569 P0 S1                                         ; X physical drive 0 goes forwards
    M569 P1 S1                                         ; Y physical drive 1 goes forwards
    M569 P2 S0                                         ; Z physical drive 2 goes backwards
    M569 P2 S0                                         ; Z physical drive 2 goes backwards
    M569 P3 S0                                         ; E 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 Z400.00 E415                     ; set steps per mm
    M566 X1200.00 Y1200.00 Z24.00 E300.00              ; set maximum instantaneous speed changes (mm/min)
    M203X9000.00 Y9000.00 Z180.00 E6000.00             ; set maximum speeds (mm/min)
    M201 X500.00 Y500.00 Z100.00 E5000.00              ; set accelerations (mm/s^2)
    M906 X800 Y800 Z800 E1000 I50                      ; 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 X500 Y500 Z500 S0                             ; set axis maxima
    
    
    ; Endstops
    M574 X1 Y1 S1                                      ; set active high endstops
    M574 Z1 S2                                         ; set endstops controlled by probe
    
    
    ; Filament runout sensor
    ;M591 D0 P1 C3 S1 instead
    
    ; Z-Probe
    M307 H3 A-1 C-1 D-1                                ; disable heater on PWM channel for BLTouch
    M558 P9 H5 F120 T9000                              ; set Z probe type to bltouch and the dive height + speeds
    M558 H30                                           ;*** Remove this line after delta calibration has been done and new delta parameters have been saved
    G31 P500 X0 Y0 Z0                                  ; set Z probe trigger value, offset and trigger height
    M557 X15:485 Y15:485 S20                           ; define mesh grid
    
    ; Heaters
    M305 P0 T100000 B4092 R4700                        ; set thermistor + ADC parameters for heater 0
    M143 H0 S75                                        ; set temperature limit for heater 0 to 75C
    M305 P1 T100000 B4092 R4700                        ; set thermistor + ADC parameters for heater 1
    M143 H1 S560                                       ; set temperature limit for heater 1 to 560C
    
    ; Fans
    M106 P0 S1.0 I0 F500 H1 T50                        ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P1 S0.0 I0 F500 H-1                           ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P2 S0.0 I0 F500 H-1                           ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off
    
    
    ; Tools
    M563 P0 D0 H1 F0:1                         ; define tool 1
    G10 P0 X0 Y0 Z0                            ; set tool 0 axis offsets
    G10 P0 R0 S45                              ; set initial tool 0 active and standby temperatures to 45C
    
    
    ; 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
    
    ; Other settings
    ;G29 S1                                             ; Enable automatic bed mesh compensation
    ;M572 D0 S0.16                                      ; Enable pressure-advance
    ;M915 X Y S10 F1 R1                                ; Enable stall detection for X and Y axis with a sensitivity of 10 and report only
    ;M915 Z S0 F1 R1                                   ; Enable stall detection for Z axis with a sensitivity of 10 and report only
    
    
    ; Miscellaneous
    ;M501                                               ; Load saved parameters from non-volatile memory
    

    home all gcode:

    ; homeall.g
    ; called to home all axes
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Sun Sep 27 2020 23:42:27 GMT-0600 (Mountain Daylight Time)
    G91                     ; relative positioning
    G1 H2 Z5 F9000          ; lift Z relative to current position
    G1 H1 X-505 Y-505 F3600 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 H2 X5 Y5 F9000       ; go back a few mm
    G1 H1 X-505 Y-505 F600  ; move slowly to X and Y axis endstops once more (second pass)
    G90                     ; absolute positioning
    G1 X15 Y15 F9000        ; 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 Z5 F150             ; lift Z relative to current position
    ;G90                    ; absolute positioning
    

    home z gcode:

    ; homez.g
    ; called to home the Z axis
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Sun Sep 27 2020 23:42:27 GMT-0600 (Mountain Daylight Time)
    G91              ; relative positioning
    G1 H2 Z5 F9000   ; lift Z relative to current position
    G90              ; absolute positioning
    G1 X15 Y15 F9000 ; 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 Z5 F150      ; lift Z relative to current position
    ;G90             ; absolute positioning
    

    and bed gcode:

    ; bed.g
    ; called to perform automatic bed compensation via G32
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Sun Sep 27 2020 23:42:26 GMT-0600 (Mountain Daylight Time)
    M561 ; clear any bed transform
    G29  ; probe the bed and enable compensation
    
    


  • Hi,

    So did you try other values in the M280 commands to determine what is the correct value?

    Frederick



  • @fcwilt Lol, i dont even know what the M280 command is.



  • I fixed the first error however now im getting this:

    G28 Z
    
    Error: Z probe already triggered at start of probing move
    Error: Homing failed
    


  • @Gost101 said in BL Touch:

    @fcwilt Lol, i dont even know what the M280 command is.

    Well you should have system files deployprobe.g and retractprobe.g

    deployprobe.g should have something like
    M280 P0 S10 ; servo setting to drop pin on BLTouch v3.0

    retractprobe.g should have something like
    M280 P0 S00 ; servo setting to retract pin on BLTouch v3.0

    The P parameter needs to be changed to match your setup.


    Also do you have a G31 command somewhere else besides config.g?

    The one there is strange. The P parameter should be 25 for the BL Touch.

    The X and Y are likely not 0 - that would indicate the pin of the probe is exactly where the tip of the nozzle is.

    The Z is likely not zero - that would indicate that when the probe triggers the Z position is Z=0.

    My G31 looks like
    G31 P24 X0 Y24.5 Z2.80

    Yours needs to be updated to match your setup.

    Frederick



  • @Gost101 Post your M122 result and show which version of the firmware you have installed .

    M122
    === Diagnostics ===
    RepRapFirmware for Duet 2 WiFi/Ethernet version 3.1.1 running on Duet WiFi 1.02 or later
    Board ID: 08DGM-95BLL-N6PSS-6JTD6-3SJ6K-K0UZJ
    Used output buffers: 3 of 24 (20 max)
    


  • @peter247 said in BL Touch:

    M122

    Here is the code you requested:
    If your willing I have a disocrd that we could talk through at https://discord.gg/8RVDzx

    4:15:21 AMM122
    === Diagnostics ===
    RepRapFirmware for Duet 2 WiFi/Ethernet version 2.03 running on Duet WiFi 1.02 or later
    Board ID: 08DGM-917DA-G4MS8-6J1F4-3SN6S-1TV38
    Used output buffers: 1 of 24 (8 max)
    === RTOS ===
    Static ram: 25680
    Dynamic ram: 93724 of which 0 recycled
    Exception stack ram used: 388
    Never used ram: 11280
    Tasks: NETWORK(ready,524) HEAT(blocked,1236) MAIN(running,3820) IDLE(ready,160)
    Owned mutexes:
    === Platform ===
    Last reset 00:01:04 ago, cause: software
    Last software reset at 2020-09-28 04:14, reason: User, spinning module GCodes, available RAM 11280 bytes (slot 2)
    Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0441f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d
    Error status: 0
    Free file entries: 10
    SD card 0 detected, interface speed: 20.0MBytes/sec
    SD card longest block write time: 0.0ms, max retries 0
    MCU temperature: min 27.7, current 27.9, max 28.3
    Supply voltage: min 12.0, current 12.1, max 12.3, under voltage events: 0, over voltage events: 0, power good: yes
    Driver 0: standstill, SG min/max 84/586
    Driver 1: standstill, SG min/max 83/615
    Driver 2: standstill, SG min/max not available
    Driver 3: standstill, SG min/max not available
    Driver 4: standstill, SG min/max not available
    Date/time: 2020-09-28 04:15:19
    Cache data hit count 235992943
    Slowest loop: 4.17ms; fastest: 0.07ms
    I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
    === Move ===
    Hiccups: 0, FreeDm: 169, MinFreeDm: 167, MaxWait: 34339ms
    Bed compensation in use: none, comp offset 0.000
    === DDARing ===
    Scheduled moves: 6, completed moves: 6, StepErrors: 0, LaErrors: 0, Underruns: 0, 0
    === Heat ===
    Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1
    === GCodes ===
    Segments left: 0
    Stack records: 2 allocated, 0 in use
    Movement lock held by null
    http is ready with "M122 " in state(s) 0
    telnet is idle in state(s) 0
    file is idle in state(s) 0
    serial is idle in state(s) 0
    aux is idle in state(s) 0
    daemon is idle in state(s) 0
    queue is idle in state(s) 0
    autopause is idle in state(s) 0
    Code queue is empty.
    === Network ===
    Slowest loop: 15.42ms; fastest: 0.00ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
    HTTP sessions: 2 of 8
    - WiFi -
    Network state is running
    WiFi module is connected to access point
    Failed messages: pending 0, notready 0, noresp 0
    WiFi firmware version 1.23
    WiFi MAC address ec:fa:bc:25:b8:10
    WiFi Vcc 3.46, reset reason Turned on by main processor
    WiFi flash size 4194304, free heap 23552
    WiFi IP address 10.0.0.209
    WiFi signal strength -46dBm, reconnections 0, sleep mode modem
    Socket states: 0 0 0 0 0 0 0 0
    


  • @fcwilt
    Heres my deploy and retract code:
    Deploy:

    M280 P3 S10 ; servo setting to drop pin on BLTouch v3.0
    

    Retract:

    M280 P3 S00 ; servo setting to retract pin on BLTouch v3.0
    

    Config after some changes:

    ;config.g
    ; Configuration file for Duet WiFi (firmware version 2.03)
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Sun Sep 27 2020 23:42:26 GMT-0600 (Mountain Daylight Time) 
    
    ; General preferences
    G90                                                ; send absolute coordinates...
    M83                                                ; ...but relative extruder moves
    M550 P"A.C.E."                                     ; set printer name
    M669 K0                                            ; select Cartesian mode
    
    ; Network
    M551 P"SpaceForceHu2020!!"                         ; set password
    M552 S1                                            ; enable network
    M586 P0 S1                                         ; enable HTTP
    M586 P1 S0                                         ; disable FTP
    M586 P2 S0                                         ; disable Telnet
    
    ; Drives
    M569 P0 S1                                         ; X physical drive 0 goes forwards
    M569 P1 S1                                         ; Y physical drive 1 goes forwards
    M569 P2 S0                                         ; Z physical drive 2 goes backwards
    M569 P2 S0                                         ; Z physical drive 2 goes backwards
    M569 P3 S0                                         ; E 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 Z400.00 E415                     ; set steps per mm
    M566 X1200.00 Y1200.00 Z24.00 E300.00              ; set maximum instantaneous speed changes (mm/min)
    M203X9000.00 Y9000.00 Z180.00 E6000.00             ; set maximum speeds (mm/min)
    M201 X500.00 Y500.00 Z100.00 E5000.00              ; set accelerations (mm/s^2)
    M906 X800 Y800 Z800 E1000 I50                      ; 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 X500 Y500 Z500 S0                             ; set axis maxima
    
    
    ; Endstops
    M574 X1 Y1 S1                                      ; set active high endstops
    M574 Z1 S2                                         ; set endstops controlled by probe
    
    
    ; Filament runout sensor
    ;M591 D0 P1 C3 S1 instead
    
    ; Z-Probe
    M307 H3 A-1 C-1 D-1                                ; disable heater on PWM channel for BLTouch
    M558 P9 H5 F100 T2000                              ; set Z probe type to bltouch and the dive height + speeds
    M558 H30                                           ;*** Remove this line after delta calibration has been done and new delta parameters have been saved
    G31 P25 X0 Y24.5 Z2.80                             ; set Z probe trigger value, offset and trigger height
    M557 X15:485 Y15:485 S20                           ; define mesh grid
    
    ; Heaters
    M305 P0 T100000 B4092 R4700                        ; set thermistor + ADC parameters for heater 0
    M143 H0 S75                                        ; set temperature limit for heater 0 to 75C
    M305 P1 T100000 B4092 R4700                        ; set thermistor + ADC parameters for heater 1
    M143 H1 S560                                       ; set temperature limit for heater 1 to 560C
    
    ; Fans
    M106 P0 S1.0 I0 F500 H1 T50                        ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P1 S0.0 I0 F500 H-1                           ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P2 S0.0 I0 F500 H-1                           ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off
    
    
    ; Tools
    M563 P0 D0 H1 F0:1                         ; define tool 1
    G10 P0 X0 Y0 Z0                            ; set tool 0 axis offsets
    G10 P0 R0 S45                              ; set initial tool 0 active and standby temperatures to 45C
    
    
    ; 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
    
    ; Other settings
    ;G29 S1                                             ; Enable automatic bed mesh compensation
    ;M572 D0 S0.16                                      ; Enable pressure-advance
    ;M915 X Y S10 F1 R1                                ; Enable stall detection for X and Y axis with a sensitivity of 10 and report only
    ;M915 Z S0 F1 R1                                   ; Enable stall detection for Z axis with a sensitivity of 10 and report only
    
    
    ; Miscellaneous
    ;M501                                               ; Load saved parameters from non-volatile memory
    

    Home All:

    G91                     ; relative positioning
    G1 H2 Z5 F9000          ; lift Z relative to current position
    G1 H1 X-505 Y-505 F3600 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 H2 X5 Y5 F9000       ; go back a few mm
    G1 H1 X-505 Y-505 F600  ; move slowly to X and Y axis endstops once more (second pass)
    G90                     ; absolute positioning
    G1 X15 Y15 F9000        ; 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 Z5 F150             ; lift Z relative to current position
    ;G90                    ; absolute positioning
    

    Bed:

    M561 ; clear any bed transform
    G29  ; probe the bed and enable compensation
    


  • @Gost101

    Hi.

    You cannot use my values - they are specific to my hardware.

    You have to determine values that are correct for your hardware.

    The X parameter has to be the distance from the tip of your nozzle to the pin of the BL Touch along the X axis.

    The Y parameter has to be the distance from the tip of your nozzle to the pin of the BL Touch along the Y axis.

    The Z parameter has to be the Z position when the BL Touch triggers.

    Frederick



  • @fcwilt I roughly measured the X distance with calipers. the Y axis controls the bed going forward and backwards. How can I determine the Z value?



  • @Gost101

    Have you tried moving to a different heater pin ?.
    I could not get heater 3 working , so moved to heater 7.



  • Ill move to heater 7, standby for code changes and status



  • @peter247 I moved to heater 7, no change



  • @Gost101

    Are you getting power and self test when you first give it power ?



  • The pin does not drop or retract the bl touch is still blinking red while status code:

    G28 Z
     
    Error: Z probe already triggered at start of probing move
    Error: Homing failed
    


  • @peter247 Power and self test?



  • @Gost101 said in BL Touch:

    still blinking red

    That is a important bit to tell !!!!!



  • This post is deleted!


  • @peter247

    Self test is when you first switch on the machine / give it power , the pin will deploy than retract and go solid red.



  • @peter247 It hasn't done that yet so far even after multiple reboots.



  • @Gost101

    if it doesn't do that it is a bltouch fault and not a configuration fault.
    pull the pin and see if it is bent



  • I legit unplugged the bl touch wires and plugged them back in. It did the move thing and actually homed z. lol



  • @Gost101

    if you get the red flash the deploy and retract doesn't work until you reset it.
    reset it by power recycle OR S160 , eg M280 P3 S160


Log in to reply