independant z axis steppers, for bed leveling
-
@Phaedrux said in independant z axis steppers, for bed leveling:
G32
Error: Probe points P0 to P1 must be in clockwise order starting near minimum X and Y
-
Ah k. Just change the order of the p1 and p2 points in bed.g.
Move the p2 line above the p1 line and then change p2 to p1 and p1 to p2.
The m671 has to follow the order of the drivers. But the points don't.
-
i got this far:
; bed.g
; called to perform automatic bed compensation via G32
;
; generated by RepRapFirmware Configuration Tool v3.1.4 on Sun Aug 02 2020 19:54:07 GMT-0600 (Mountain Daylight Time)
M561 ; clear any bed transform
G29 ; probe the bed and enable compensationM561 ; clear all bed compensation
G28 ; home all axis
G90 ; absolute positioning
G1 X220 Y290 Z5 ; move probe to center of the bed
G30 ; set Z0 position with the probe
G1 Z10 ; return to 20mm height
G30 P1 X10 Y295 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
G30 P0 X0 Y295 Z-99999 ; probe near a leadscrew, half way along Y axis
G1 X220 Y267.5 Z10 ; move probe to center of the bed
G30 ; set Z0 position with the probe
-
@tracar said in independant z axis steppers, for bed leveling:
Y295
i changed it a bit so center of the bed is exactly in line with the leadscrews, changed it to 295..
-
@Phaedrux said in independant z axis steppers, for bed leveling:
p2 to p1 p1 to p2 ?
Error: Probe points P0 to P1 must be in clockwise order starting near minimum X and Y -
still:
Error: Probe points P0 to P1 must be in clockwise order starting near minimum X and Y
it probes 50mm infront of the bed on the first probe.
i think i changed stuff to suit this bed.. i may be incorrect....Z50 y9.1 is the very first g32 probe point
-
@Phaedrux said in independant z axis steppers, for bed leveling:
M561 ; clear all bed compensation
getting somewhere now
had to disable mesh compensation. then it does stuff8/28/2020, 5:51:16 AM G32
Leadscrew adjustments made: 0.547 -1.117, points used 2, deviation before 0.843 after 0.000i intentionally set the left side of the table lower than the right anf run g32 again. it says it adjusted but the table remains tilted . is this right?
looks like its getting more out of tilt when another g32 is called
-
@tracar said in independant z axis steppers, for bed leveling:
i have the right dimensions added.
it probes 3 places,
it adjusts the bed, (but adjusts reversed so gets more of a tilt)
then sets zo 7mm below the nozzle.we are so close !!!
; bed.g
; called to perform automatic bed compensation via G32
;
; generated by RepRapFirmware Configuration Tool v3.1.4 on Sun Aug 02 2020 19:54:07
M561 ; clear all bed compensation
G28 ; home all axis
G90 ; absolute positioning
G1 X220 Y330 Z25 ; move probe to center of the bed
G30 ; set Z0 position with the probe
G1 Z25 ; return to 25mm height
G30 P0 X440 Y330 Z-99999 ; probe near a leadscrew, half way along Y axis
G30 P1 X0 Y330 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
G1 X220 Y330 Z25 ; move probe to center of the bed
G30 ; set Z0 position with the probe+++++++++++++++++++++++++++++
; Drives
M569 P5 S0 T5 R1 ; physical drive x axis goes forwards
M569 P6 S1 T5 R1 ; physical drive y axis goes forwards
M569 P7 S1 T5 R1 ; physical drive z axis goes forwards
M569 P8 S1 T5 R1 ; physical drive z2 axis goes forwards
M569 P3 S1 ; physical drive 3 goes forwards
M584 X6 Y5 Z7:8 U8 E3 P3 ; set drive mapping
M671 X-50:490 Y330:330 S5 ; x leadscrew position left to right from o,o on y axis , S5 means can adjust up to 5 mm
M350 X16 Y16 Z16 U16 E16 I1 ; configure micro stepping with interpolation
M92 X200.00 Y200.00 Z800.00 U800.00 E138.23 ; set steps per mm
M566 X200.00 Y200.00 Z12.00 U12.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X25000.00 Y25000.00 Z1000.00 U1000.00 E2400.00 ; set maximum speeds (mm/min)
M201 X400.00 Y400.00 Z20.00 U20.00 E400.00 ; set accelerations (mm/s^2)
M906 X300 Y300 Z300 U300 E800 I30 ; set motor currents (mA) x,y,z,u are external stp/dir drivers
M84 S30 ; Set idle timeout; Axis Limits
M208 X0 Y0 Z0 U0 S1 ; set axis minima
M208 X440 Y535 Z900 U900 S0 ; set axis maxima; Endstops
M574 X1 Y2 Z1 U1 S0 ; set active high endstops 1= minimum 2=maximum end, S1 = normally closed and S2 = normally open; Z-Probe
M307 H7 A-1 C-1 D-1 ; disable heater on PWM channel for BLTouch
M950 S0 C"exp.heater7" ; create servo pin 0 for BLTouch
M558 P9 C"^zprobe.in" H5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds
G31 P500 X0 Y40.9 Z-2.703 ; set Z probe trigger value, offset and trigger height
M557 X50:400 Y50:400 S100 ; define mesh gridwhat is needing adjustment?
-
updated changes
; bed.g
; called to perform automatic bed compensation via G32
;
; generated by RepRapFirmware Configuration Tool v3.1.4 on Sun Aug 02 2020 19:54:07
M280 P7 S160 ; Alarm Release and Push-Pin UP
M561 ; clear all bed compensation
G28 ; home all axis
G90 ; absolute positioning
G1 X220 Y330 Z25 ; move probe to center of the bed
G30 ; set Z0 position with the probe
G1 Z25 ; return to 25mm height
G30 P0 X440 Y330 Z-99999 ; probe near a leadscrew, half way along Y axis
G30 P1 X0 Y330 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
G1 X220 Y330 Z25 ; move probe to center of the bed
G30 ; set Z0 position with the probe
M280 P7 S90
M671 X-50:490 Y330:330 S5 ; x leadscrew position left to right from o,o on y axis , S5 means can adjust up to 5 mm
G31 P500 X0 Y0 Z4.247 ; set Z probe trigger value, offset and trigger height
i believe it works as intended now with the above changes
but since both z steppers (Z and U) are independant with each its own endstops, how can i configure homeall /homez to do this independantly to bring z and u Up at the same time and stop when both endstops are triggerd ?
-
@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