independant z axis steppers, for bed leveling
-
@tracar again read this link https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors.
Scroll down 2/3 of the page and read the section for axis levelling using endstops.
-
@dhusolo
g32 works great alreadyi need help with setting the second z axis (U) as a independant entity that can be homed and Pre level the bed with (Z), before any g32 happens
-
-
@tracar
n RepRapFirmware 3, you do not need to split the axes to level them, as you do in RRF2. The firmware understands if you define the axis endstops correctly. For example, if you have a dual motor Z axis, with endstops at the axis minimum, define the Z endstop in config.g as follows:M574 Z1 S1 P"zstop+e1stop" ; configure active-high endstops for low end on Z via pins zstop and e1stop
Make sure that the two endstops are defined in the same order in the M574 command as the corresponding Z motors in your M584 command. For the example above, M584 Z2:4 would be correct, assuming one Z motor is plugged into driver 2 (Z driver on Duet 2) and its endstop is plugged into zstop, while the second Z motor is plugged into driver 4 (E1 driver on Duet 2) and its endstop is plugged into the E1 endstop pins.
When homing, RRF3 will home both axes, and stop each motor when each endstop is triggered. Note that DWC and M119 will only show one endstop per axis, but will show the axis endstop as triggered if either switch is triggered. So you can test them by triggering one at a time.
-
@dhusolo said in independant z axis steppers, for bed leveling:
think i figgered it out:; homeall.g
; called to home all axes
;
M280 P7 S160
G91 ; relative positioning
G1 S2 H2 Z5 F800 ; lift Z relative to current position
G1 H1 X-445 Y540 F1800 ; move quickly to X or Y endstop and stop there (first pass)
G1 H1 X-445 ; home X axis
G1 H1 Y540 ; home Y axis
G1 X5 Y-5 F800 ; go back a few mm
G1 H1 X-445 F200 ; move slowly to X axis endstop (second pass)
G1 H1 Y540 F200 ; move slowly to Y axis endstop (second pass)
M584 Z7 U8 P4 ; split Z motor control to Z and U
G1 S1 H1 Z-900 U-900 F400 ; home Z and U axis
G1 Z5 U5 F200 ; go back a few mm
G1 H1 Z-900 U-900 F100 ; move slowly to Z and U axis endstop (second pass)
M584 Z7:8 P3 ; back to combined axes and hidden U
G90 ; absolute positioning
G92 Z0 ; set Z position to axis minimum (you may want to adjust this)
G91 ; relative positioning
G1 Z10 F800 ; lift Z relative to current position
G90 ; absolute positioning; homez.g
; called to home the Z axis
;
M280 P7 S160 ; Alarm Release and Push-Pin UP
G91 ; relative positioning
G1 S2 H2 Z5 F800 ; lift Z relative to current position
M584 Z7 U8 P4 ; split Z motor control to Z and U
G1 S1 H1 Z-900 U-900 F400 ; home Z and U axis
G1 Z5 U5 F200 ; go back a few mm
G1 H1 Z-900 U-900 F100 ; move slowly to Z axis endstop (second pass)
M584 Z7:8 P3 ; back to combined axes and hidden U
G92 Z0 ; set Z position to axis minimum
G91 ; relative positioning
G1 Z5 F400 ; lift Z relative to current position
G90 ; absolute positioning -
Yes that should work, but in RRF3 it's even easier in that you don't need to split them into seperate axis.
-
@Phaedrux said in independant z axis steppers, for bed leveling:
r in that you don't need to split them into sep
i messed with v3xx two times, and both times we could not get them working, so i want to get this 2xx working as a fall back when i try 3xx again,
your help has been incredible, and i have gotten further in the past 2 days then in the past month combined
if i can bother you for 2 last items i will get out of here and on to cutting some aluminum for the printer.
i have 2 files left that im trying to get to work without errors, and more towards automatically saving the new probed values
and secondly with the hotend thermister code.;calibrate bltouch get z offset.g
T0
M291 P"Press ""OK"" if you would you like to calibrate the Z-offset for this Tool ." R"Calibrate Z-Offset" S3
M291 P"Make sure your nozzle is free of debris. Press ""Cancel"" if you need to stop and clean the nozzle." R"Calibrate Z-Offset" S3
M291 P"Homing, please wait..." R"Calibrate Z-Offset" S1
M98 P/sys/homeall.g
M208 S1 Z-2 ; allow movement below Z0
G1 X220 Y330 Z8 F2000 ; move to center of bed
M558 P0
G30 S-2
M500 P31; save results
M501 ; load new data
M208 S1 Z0 ; disallow movement below Z0
G1 Z25 ; drop build plate
M291 P"Z-offset calibration complete! " R"Calibrate Z-Offset" S1 T3;auto tune hotend thermister values.g
;hotend thermister auto
M303 H1 S240
; how the heck to auto save this info to the config.gwhen i run the probe ofset i get these errors:
8/29/2020, 1:25:50 PM M98 P"0:/macros/calibrate bltouch get z offset.g"
Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 893C.
8/29/2020, 1:25:50 PM M292
Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 893C.
8/29/2020, 1:25:50 PM M292
Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 893C.
8/29/2020, 1:25:50 PM M120 G91 G1 Z-5 F6000 G90 M121
Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 893C.
8/29/2020, 1:25:50 PM M120 G91 G1 Z-0.5 F6000 G90 M121
Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 893C.
8/29/2020, 1:25:50 PM M120 G91 G1 Z-0.5 F6000 G90 M121
Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 893C.
8/29/2020, 1:25:50 PM M120 G91 G1 Z-0.5 F6000 G90 M121
Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 893C.
8/29/2020, 1:25:50 PM M120 G91 G1 Z-0.5 F6000 G90 M121
Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 893C.
8/29/2020, 1:25:50 PM M120 G91 G1 Z-0.5 F6000 G90 M121
Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 893C.
8/29/2020, 1:25:50 PM M120 G91 G1 Z-0.5 F6000 G90 M121
Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 893C.
8/29/2020, 1:25:50 PM M292
Warning: Heater 1 appears to be over-powered. If left on at full power, its temperature is predicted to reach 893C. -
@tracar said in independant z axis steppers, for bed leveling:
M558 P0
G30 S-2
M500 P31; save resultsI don't think this is doing what you think it should be doing.
Please post your config-override.g to see what it's actually saving.
Using the manual probing to set z0 is fine, but it's not going to set the bltouch trigger height.
-
@Phaedrux said in independant z axis steppers, for bed leveling:
config-override.g
; config-override.g file generated in response to M500 at 2020-08-29 13:25
; This is a system-generated file - do not edit
; Heater model parameters
M307 H0 A90.0 C700.0 D10.0 S1.00 V0.0 B1
M307 H1 A868.0 C305.0 D3.1 S1.00 V24.2 B0
M307 H2 A340.0 C140.0 D5.5 S1.00 V0.0 B0
M307 H3 A340.0 C140.0 D5.5 S1.00 V0.0 B0
M307 H4 A340.0 C140.0 D5.5 S1.00 V0.0 B0
M307 H5 A340.0 C140.0 D5.5 S1.00 V0.0 B0
M307 H6 A340.0 C140.0 D5.5 S1.00 V0.0 B0
; Z probe parameters
G31 T1 P500 X0.0 Y0.0 Z4.25
G31 T3 P500 X0.0 Y0.0 Z0.70
G31 T4 P25 X0.0 Y0.0 Z0.00
; Probed tool offsets
G10 P0 Z-0.20
G10 L2 P1 X0.00 Y0.00 Z0.00
G10 L2 P2 X0.00 Y0.00 Z0.00
G10 L2 P3 X0.00 Y0.00 Z0.00
G10 L2 P4 X0.00 Y0.00 Z0.00
G10 L2 P5 X0.00 Y0.00 Z0.00
G10 L2 P6 X0.00 Y0.00 Z0.00
G10 L2 P7 X0.00 Y0.00 Z0.00
G10 L2 P8 X0.00 Y0.00 Z0.00
G10 L2 P9 X0.00 Y0.00 Z0.00 -
@tracar said in independant z axis steppers, for bed leveling:
M303 H1 S240
; how the heck to auto save this info to the config.gSending M500 will save the tuning results to config-overide.g and then M501 at the end of config.g will load them again.
-
@Phaedrux said in independant z axis steppers, for bed leveling:
M500
so place M500 as the last line in the probe offset macro ?
current:
;calibrate bltouch get z offset.g
T0
M291 P"Press ""OK"" if you would you like to calibrate the Z-offset for this Tool ." R"Calibrate Z-Offset" S3
M291 P"Make sure your nozzle is free of debris. Press ""Cancel"" if you need to stop and clean the nozzle." R"Calibrate Z-Offset" S3
M291 P"Homing, please wait..." R"Calibrate Z-Offset" S1
M98 P/sys/homeall.g
M208 S1 Z-2 ; allow movement below Z0
G1 X220 Y330 Z8 F2000 ; move to center of bed
M558 P0
G30 S-2
M500 P31; save results
M501 ; load new data
M208 S1 Z0 ; disallow movement below Z0
G1 Z25 ; drop build plate
M291 P"Z-offset calibration complete! " R"Calibrate Z-Offset" S1 T3 -
Well to calibrate the BLtouch I think you'd need to do a G30 S-3 after switching back to the BLtouch probe with M558 P9.
Using M558 P0 to set Z0 manually is fine. You could also use a M291 Z1 to just pop up a jog dialogue for z followed by a G92 Z0.
-
0_Auto Probe Trigger Height Assist.g
Here's an example of my macro, it's not automated, but might give you some more ideas for use in yours.
M500 P31 is correct for saving the offset, I just think you need to be in the correct probe type before measuring and saving.
-
@Phaedrux
some interesting stuff in the filecan you se any errors here:
;calibrate the Z-offset
;
T0
M291 P"Press ""OK"" if you would you like to calibrate the Z-offset for this Tool ." R"Calibrate Z-Offset" S3
M291 P"Make sure your nozzle is free of debris. Press ""Cancel"" if you need to stop and clean the nozzle." R"Calibrate Z-Offset" S3
M291 P"Homing, please wait..." R"Calibrate Z-Offset" S1
M98 P/sys/homeall.g
M208 S1 Z-2 ; allow movement below Z0
G1 X220 Y330 Z8 F2000 ; move to center of bed
M558 P9
G30 S-3
M500 P31; save results
M501 ; load new data
M208 S1 Z0 ; disallow movement below Z0
G1 Z25 ; drop build plate
M291 P"Z-offset calibration complete! " R"Calibrate Z-Offset" S1 T3
M291 P"Press ""OK"" if you would you like Save Z-offset for this Tool ." R"Calibrate Z-Offset" S3
M291 P"DONE AND SAVED ."i did edit this with your changes, but it failed to probe. it fully goes thru the process and all console returns are green. but i dont know if it changes the right information when m500 is called
-
Well you're missing the step where you manually touch the nozzle to the bed and set Z0, without that you're not accurately measuring the probe z offset.
You should also add a M561 command at the start to disable any active bed compensation.