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

    BLTouch giving error

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    5
    12
    345
    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.
    • terhartundefined
      terhart
      last edited by droftarts

      Hi,
      the (original Antclaps)BLTouch sensor on my printer is giving problems.
      When I use the G28 command or home the Z direction, I get the error: G28 Z Error: Bad command: probe
      I tried to find the reason for the error, tried different versions of the firmware, nothing works really. The error stays.
      When I use the command M280 P0 S10 / M280 P0 S90 no error occurs.
      Using M401 P0 and M402 P0 give an error.

      Does anybody have an idea of what I'm doing wrong here?
      Thanks a lot for your help.

      =========================================================================
      This is what the system looks like:
      Board: Duet 2 WiFi
      Current firmware version: 3.4.1
      WiFi Server: 1.26
      Web Control: 3.4.1
      I tried other (newer) versions but that makes no difference, error stays)

      =========================================================================
      This is what the system files look like:
      Config.g:
      ; Configuration file for Duet WiFi (firmware version 3)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v3.2.3 on Sat Apr 17 2021 19:16:17 GMT+0200 (Midden-Europese zomertijd)

      ; General preferences
      G90 ; send absolute coordinates...
      M83 ; ...but relative extruder moves
      M550 P"Ter Hart 3D-Printer" ; set printer name
      M669 K1 ; select CoreXY mode

      ; 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 backwards X-Motor
      M569 P1 S1 ; physical drive 1 goes forward Y-Motor
      M569 P2 S0 ; physical drive 2 goes backwards Z-Motor Twee motoren in parallel
      M569 P3 S1 ; physical drive 3 goes forward E0-Motor
      M584 X0 Y1 Z2 E3 ; set drive mapping
      M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
      M92 X100.00 Y100.00 Z1600.00 E563.77 ; set steps per mm

      M566 X350.00 Y350.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
      M566 X350.00 Y350.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
      M203 X9000.00 Y9000.00 Z120.00 E1200.00 ; set maximum speeds (mm/min)
      M201 X2000.00 Y2000.00 Z150.00 E1000.00 ; set max acceleration HtH 23052022
      M906 X1500 Y1500 Z1500 E1500 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 X270 Y270 Z300 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.heater3" ; create servo pin 0 for BLTouch
      M558 P9 C"^zprobe.in" H5 F120 T9000 ; set Z probe type to bltouch and the dive height + speeds
      G31 P500 X0 Y0 Z1.65 ; set Z probe trigger value, offset and trigger height Hogere waarde = dichter naar het glas

      ; Grid
      M557 X0:250 Y0:180 S180 ; 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
      M140 H0 ; map heated bed to heater 0
      M143 H0 S120 ; set temperature limit for heater 0 to 120C

      M308 S1 P"e0temp" Y"thermistor" A"Hotend" 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

      ; Fans
      ; Control Cooling Fan
      M950 F0 C"fan0" Q100 ; create fan 0 on pin fan0 and set its frequency
      M106 P0 S0 H-1 C"Cooling Fan" ; set fan 0 value. Thermostatic control is turned off

      ; Control Nozzle Fan
      M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
      M106 P1 S1 H1 T45 C"Nozzle Fan" ; set fan 1 value. Thermostatic control is turned on

      ; Control MCU temperature
      M308 S4 Y"mcu-temp" A"MCU Temp"
      M950 F2 C"fan2" Q100 ; create fan 2 on pin fan2 and set its frequency
      M106 P2 H2:3 L0.15 X1 B0.3 T25:35 C"MCU Fan" ; set fan 2 value, turn on at 50% if the CPU temperature reaches 45C, and increase to full speed gradually as the temperature rises to 50C

      ; 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

      ; Filament sensor
      M591 P1 C"e0stop" S1 D0 ; filament monitor connected to E0 endstop

      ; Custom settings are not defined

      ; Miscellaneous
      M575 P1 S1 B57600 ; enable support for PanelDue
      M501 ; set the active parameters to those stored in sys/config-override.g on the SD card
      M912 P0 S-12 ; correctie MCU temperatuur T nozzle - T MCU

      ================================================================================

      ; deployprobe.g
      ; called to deploy a physical Z probe
      ;
      ; generated by RepRapFirmware Configuration Tool v3.2.3 on Sat Apr 17 2021 19:16:17 GMT+0200
      M280 P0 S10 ; deploy BLTouch

      ; retractprobe.g
      ; calle� to retract a physical Zprobe
      ;
      ; generated �y RepRapFirmware Configuration Tool v3.2.3 on Sat Apr 17 2021 19:16:17 GMT+0200 (Midden-Europese zomertijd)
      M280 P0 S90 ; retract BLTouch

      The macros use M401 and M402

      jay_s_ukundefined droftartsundefined 2 Replies Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @terhart
        last edited by

        @terhart post your homez file
        M401 and M402 should just be M401 and M402 with no P0 at the end

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        1 Reply Last reply Reply Quote 0
        • droftartsundefined
          droftarts administrators @terhart
          last edited by

          @terhart @jay_s_uk M401 and M402 should be able to take a P parameter; see https://docs.duet3d.com/User_manual/Reference/Gcodes#m401-deploy-z-probe

          However, this sounds like a bug, and that it is looking for deployprobe0.g, and when it does not find it, it is not switching to deployprobe.g. I've marked this as a bug for @dc42 to check.

          Ian

          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

          1 Reply Last reply Reply Quote 1
          • terhartundefined
            terhart
            last edited by

            Here is the homez file:
            Thanks a lot for your help.

            ; homez.g
            ; called to home the Z axis
            ;
            ; generated by RepRapFirmware Configuration Tool v3.2.3 on Sat Apr 17 2021 19:16:17 GMT+0200 (Midden-Europese zomertijd)
            G91 ; relative positioning
            G1 H2 Z5 F6000 ; lift Z relative to current position
            G90 ; absolute positioning
            G1 X15 Y15 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 Z5 F100 ; lift Z relative to current position
            ;G90 ; absolute positioning

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

              Did you modify your deploy and retract macros to remove the P0 from the M280 commands?

              Z-Bot CoreXY Build | Thingiverse Profile

              terhartundefined 2 Replies Last reply Reply Quote 0
              • terhartundefined
                terhart @Phaedrux
                last edited by

                @Phaedrux Yes, I did. But unfortunately it didnt solve anything. Error stays.
                Thanks for your help.

                1 Reply Last reply Reply Quote 0
                • terhartundefined
                  terhart @Phaedrux
                  last edited by

                  @Phaedrux Next to my previous remark: This is exact error text that is generated:

                  M98 P"0:/macros/BLTouch Retract"
                  Error: Bad command: probe

                  There is no error on the deploy macro.
                  Also, if I initiate the command "M280!P0 S90" or "M280!P0 S10" the BLTouch deploys and retract without an error.
                  The error only comes on M402.

                  Thanks.

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

                    deployprobe.g and retractprobe.g must be in the sys folder for M401 and M402 to work. They must be named that way too.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 0
                    • dc42undefined
                      dc42 administrators @terhart
                      last edited by

                      @terhart said in BLTouch giving error:

                      M98 P"0:/macros/BLTouch Retract"
                      Error: Bad command: probe

                      We'll need to see the contents of macro file "BLTouch Retract" to diagnose that.

                      Duet WiFi hardware designer and firmware engineer
                      Please do not ask me for Duet support via PM or email, use the forum
                      http://www.escher3d.com, https://miscsolutions.wordpress.com

                      terhartundefined 1 Reply Last reply Reply Quote 0
                      • terhartundefined
                        terhart @dc42
                        last edited by

                        @dc42
                        Hi, thanks for helping me.
                        This is all that is in the BL Touch Retract file:

                        M402

                        If I just enter M402 on the command line, a "probe" error is raised.

                        Best regards,

                        Hans ter Hart

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

                          retractprobe.g deployprobe.g

                          Try placing these files in your sys folder.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          terhartundefined 1 Reply Last reply Reply Quote 0
                          • terhartundefined
                            terhart @Phaedrux
                            last edited by

                            @Phaedrux

                            THANKS!!!! That did it....!! Problem solved! No error anymore.
                            Thanks a lot for your help.

                            Best regards,

                            Hans

                            1 Reply Last reply Reply Quote 1
                            • Phaedruxundefined Phaedrux marked this topic as a question
                            • Phaedruxundefined Phaedrux has marked this topic as solved
                            • First post
                              Last post
                            Unless otherwise noted, all forum content is licensed under CC-BY-SA