BLTouch working
-
post the Macro,
If you are using M280 P3 S120 I1 that's what it does it cycles continually until M280 P3 S160 I1 to reset the probe to it's normal operating procedure this is a built in bltouch feature and not part of reprap firmware.see my post on page 2 or 4 for testing the probing of a single point.
Ok, I'm up and running! probe is working great! Now gotts tune my bed, the map looks like utah, align my z axies, set z offset and enjoy
Thank you and everyone else who had the patience to deal with my meathead questions! There's no way I could have figured this out on my own.
-
After much struggle I finally was able to get the touch to work. For some reason using M558 P5 did not work for me the Z probe would always sit a 1000, so I ended up using M558 P4 and it works like a charm. Do I have an old version of the probe or something maybe?
;Z Probe Setup in Config.g
M307 H3 A-1 C-1 D-1 ;reserve pin 21 for servo use
M558 P4 X0 Y0 Z1 H6 F450 T4000
G31 X-17 Y7 Z2.3 P25 ; Set the probe height and threshold; increase Z to decrease bed probe distance X11.0 Y0.5
; Deploy Probe (having I1 at the end it did not work)
M280 P3 S10
;Home Z
T0 ; select first hot end
G91 ; Relative coordinates
G1 Z5 F200 ; Lower bed to avoid hotend dragging in bed.
G90 ; Absoulte coordinates
G1 X35 Y15 F3000 ; Go to first bed probe point and home the Z axis
M401
G30 ; Calibrate Z-axis
M402
G1 Z1 F200 ; Raise bed to 1mm.
;Mesh Level
;Setup
T0 ; select first hot end
G91 ; Relative coordinates;Home X and Y
G1 Z4 F720 ; Lower bed to avoid hotend dragging in bed.
G1 X-350 Y-240 F3000 S1 ; move up to 240mm in the -X and -Y directions until the homing switches are triggered
G1 X6 Y6 F600 ; move slowly 6mm in +X and +Y directions
G1 X-10 Y-10 S1 ; move up to 10mm in the -X and -Y directions until the homing switches are triggered;Home Z
G90 ; Absoulte coordinates
G1 X35 Y15 Z6 F3000 ; Go to first bed probe point and home the Z axis
M401 ; Deploy Probe
G30 ; Home Z-axis;Preform Mesh level
M557 X10:290 Y10:190 S20 ; Bed level from X30Y12 to X299Y188 in 20mm incrementsG29 S0 ; Auto Bed Level and create report (If I retacted probe first bad things happend)
M374 ; Save calibration grid
M402 ; Retract ProbeG1 X70 Y200 F3000 ; Dock after bedlevel. Move first in front of docking notch
G1 X70 Y235 F3000 ; Dock after bedlevel
-
With P4 in your M558 command, you need to connect the sensor output to the E0 endstop connector. With P5 you connect it to the IN pin on the ZProbe connector. I added a wiring table at https://duet3d.com/wiki/Connecting_a_Z_probe#BLTouch last week and updated it today, using what little information I was able to find about BLTouch on the web.
-
Oooh dang, I wasted so much time, I mixed it up I guess with reading to put it on E0 and using P5, I read through this forum 3 or so times trying to get all the information scattered around and still screwed it up
I am working on a more complete walk-through integrating the Duet with the BigBox, I plan on a section detailing the BLTouch as well.
-
Are this connections right?
Can someone make a step by step description of the firmware modifications required?
http://i68.tinypic.com/rle5g1.jpgthese are not quite right. black and white leads should go to other port and not panel due connector. reverse pins accordingly
-
Duet Wifi BL touch is not working. It blinks red and shows z probe = 1000. i cant get probe to deploy manually either. Am i missing something or is it just plain wrong? pretty sure it is wired right.
config.g = ; BLTouch
M307 H3 A-1 C-1 D-1
M558 P5 X0 Y0 Z1 H3 F200 T5000Bed.g = ; bed.g
; called to perform automatic bed compensation via G32
; Clear any bed transform
M561
; Home all axes
G28
; Probe the bed at 5 points
G30 P0 X15 Y15 H0 Z-99999
G30 P1 X15 Y268 H0 Z-99999
G30 P2 X255 Y268 H0 Z-99999
G30 P3 X255 Y15 H0 Z-99999
G30 P4 X128 Y138 H0 Z-99999 SDeployprobe.g
M280 P3 S10 I1
#Retractprobe.g
M280 P3 S90 I1 -
When the probe is blinking red it is in an error state and you need to use M280 P3 S160 I1 to reset the probe state
You can use M280 P3 S120 I1 to run a self test, the S160 will be required to reset if from the self test
-
Thanks Sniffle!, i was able to get z probe to reset with the command and learned 2 things. 1 is i have a loose connection on the 50 pin connector port and think i need a better connector type.it was alarming because bed was too high and probe post self test would fail. lowering bed before starting test and i can extend and retract no problem. The problem appears to be the z axis. after i home it, it wont move any more and appears to go backwards (ie movement +10 before home moves bed up but after homing z, hitting any of the move + buttons takes the bed to the bottom and printer errors out since no endstop on that end. anyone have any idea why z movement appears to invert after homing?
-
I micro stepped through homez and am still seeing z axis movement invert after homing. I am also confused by the G92 setting. my z stop appears to be .3mm below printhead should i do G92 Z.3 or move sensor? i also tried skipping the last G90 command at end thinking that was inverting axis movement but same result. afte homing z goes backward and bed crashes into bottom of machine if i dont turn it off. even a manual move of .1 sends bed all 450mm down.
; homez.g
; called to home the Z axisG91 ; relative mode
G1 Z-4 F200 ; lower bed 4mm to ensure it is below the switch trigger height
G90 ; back to absolute mode
G1 X128 Y141 F2000 ; put head wherever you want it to be when you home Z (omit this line if it doesn't matter)
G91 ; relative mode
G1 Z450 S1 F100 ; move Z up until the switch triggers
G90 ; back to absolute mode
G92 Z0 ; tell the firmware that we are at Z=0mm -
I don't understand your Z homing file. You have that G1 Z450 S1 command to move the print head up or bed down until the endstop is triggered, which suggests that you have a Z-max endstop switch. But then you have a G92 Z0 command which suggests you have a Z-min endstop switch. Which do you have?
I also have a feeling that you may have configured your Z axis to move in the wrong direction. If you have a print head that moves in Z, positive Z movement should move the print head up. If you have a moving bed, positive Z movement should move the bed down.
-
i think you are right on point! my printer has print head mounted to x axis rail at fixed height. bed moves up and down. z0 is at top where end stop is located. Give me a minute to digest this and i bet you already gave me the answer i was looking for! Thanks again! You really do a great job here and it is much appreciated. I do tech support for a living and am often frustrated by silly questions. i suspect you have the patience of a saint. LOL
-
updated z home and inverted z axis in config.g so + = bed moves down. Moving Z before homing + = down. Z home appears to work too but after it completes i am at z end stop aka z0 and z axis movement is inverted again. If i move g + it goes up and hits print head but - doesn't move at all. Something is inverting z movement during\after homing???
; homez.g
; called to home the Z axisG91 ; relative mode
G1 Z4 F200 ; lower bed 4mm to ensure it is below the switch trigger height
G90 ; back to absolute mode
G1 X128 Y141 F2000 ; put head wherever you want it to be when you home Z (omit this line if it doesn't matter)
G91 ; relative mode
G1 Z-450 S1 F100 ; move Z up until the switch triggers
G90 ; back to absolute mode
G92 Z0 ; tell the firmware that we are at Z=0mmconfig.g
; Drives
M569 P0 S0 ; Drive 0 goes Backwards
M569 P1 S0 ; Drive 1 goes Backwards
M569 P2 S0 ; Drive 2 goes Backwards
M569 P3 S0 ; Drive 3 goes Backwards -
tried to recreate issue by moving to middle of z and activating end stop switch with my finger. that is not causing z axis to invert and it does appear to work correctly so has to be something in the software right? with end stop triggered, - movements dont work but + do and move the bed down. clueless as to why z axis inverts after z homing
-
Is your Z switch at the bottom or the top of the bed travel?
-
top
-
Your Z homing file looks ok to me now, except that you may want to back off Z a little and re-home at a slower speed, as the standard X and Y homing files do. Also adjust the Z parameter in your G92 Z0 command to be the exact Z height after the switch is triggered.
What M208 commands do you have in config.g? After homing, the limits set by M208 are enforced.
-
when z end stop triggers, ph is about 2mm above bed. should i move sensor up so z=0 or is there some sort of offset here?
updated z home as recommended i think…
config.g
M208 X3 Y0 Z0S1 ; Set axis minima
should there be a space between Z0 and S1?; homez.g
; called to home the Z axisG91 ; relative mode
G1 Z10 F200 ; lower bed 10mm to ensure it is below the switch trigger height
G90 ; back to absolute mode
G1 X128 Y141 F2000 ; put head wherever you want it to be when you home Z (omit this line if it doesn't matter)
G91 ; relative mode
G1 Z-450 S1 F100 ; move Z up until the switch triggers
G1 z10 F6000
G1 z-450 F360 S1 ; Move slowly to z axis endstop once more
G90 ; back to absolute mode
G92 Z0 ; tell the firmware that we are at Z=0mm -
There should be a space in that command, but in most cases you can get away without one.
It's best if your Z homing switch triggers a little before Z=0. If it's triggering at exactly 2.0mm, change G92 Z0 in homez.g to G92 Z2.0
HTH David
-
i also had a max z value wrong on the other end of m208 maximum which i believe was what caused z to invert after homing.
z homing works now but does not do it twice like i thought it would. bl touch appears to be working at start it is lit up solid red but it does not deploy probe during bed leveling so it still crashes ph into bed. manual retract and deploy work but when i start bed config, it does not deploy probe. i even added manual deploy at start but it is not working either
#Retractprobe.g
M280 P3 S90 I1Deployprobe.g
M280 P3 S10 I1
; bed.g
; called to perform automatic bed compensation via G32; Clear any bed transform
M561; Home all axes
G28
;# Deployprobe.g
M280 P3 S10 I1
; Probe the bed at 5 points
G30 P0 X15 Y15 H0 Z-99999
G30 P1 X15 Y268 H0 Z-99999
G30 P2 X255 Y268 H0 Z-99999
G30 P3 X255 Y15 H0 Z-99999
G30 P4 X128 Y138 H0 Z-99999 S
;#Retractprobe.g
M280 P3 S90 I1 -
i found a 2nd command in bed.g that cleared home results. i removed that and bl touch started working but did not deploy probe before test started. I added deploy and retract directly to bed.g and that helped . It moved to 1st probe spot and probed successfully but then bed drops below probes reach and it tries to continue probing but eventually errors out. Why is bed moving down after 1st probe? i cant seem to remember the setting for probe offset. i know i am offset on x axis about 28mm but i am not sure about z end stop position setting or why bed drops below probe after 1st probe deploys successfully.
; bed.g
; called to perform automatic bed compensation via G32; Clear any bed transform
M561;# Deployprobe.g
M280 P3 S10 I1
; Probe the bed at 5 points
G30 P0 X15 Y15 H0 Z-99999
G30 P1 X15 Y268 H0 Z-99999
G30 P2 X255 Y268 H0 Z-99999
G30 P3 X255 Y15 H0 Z-99999
G30 P4 X128 Y138 H0 Z-99999 S
;#Retractprobe.g
M280 P3 S90 I1Config.g
; BLTouch
M307 H3 A-1 C-1 D-1
M558 P5 X0 Y0 Z1 H3 F200 T5000