BLTouch giving error
-
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 mmM566 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 120CM308 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 BLTouchThe macros use M401 and M402
-
@terhart post your homez file
M401 and M402 should just be M401 and M402 with no P0 at the end -
@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
-
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 -
Did you modify your deploy and retract macros to remove the P0 from the M280 commands?
-
@Phaedrux Yes, I did. But unfortunately it didnt solve anything. Error stays.
Thanks for your help. -
@Phaedrux Next to my previous remark: This is exact error text that is generated:
M98 P"0:/macros/BLTouch Retract"
Error: Bad command: probeThere 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.
-
deployprobe.g and retractprobe.g must be in the sys folder for M401 and M402 to work. They must be named that way too.
-
@terhart said in BLTouch giving error:
M98 P"0:/macros/BLTouch Retract"
Error: Bad command: probeWe'll need to see the contents of macro file "BLTouch Retract" to diagnose that.
-
@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
-
Try placing these files in your sys folder.
-
THANKS!!!! That did it....!! Problem solved! No error anymore.
Thanks a lot for your help.Best regards,
Hans
-
-