Welcome! Log In Create A New Profile

Advanced

z-homing failed with mini IR

Posted by gueee78 
z-homing failed with mini IR
March 24, 2019 05:23AM
Hi,

I recently upgraded my printer with a second z-axis stepper and a mini IR probe on duet 2 wifi. for some reason I'm not able to home z, it throws me an error.

Error: Probe points P0 to P1 must be in clockwise order starting near minimum X and Y
Error: Homing failed

my first thought was I should change the order of the probe points, but it didn't help, still the same error.

here is the part of my config.g

; Drives
M569 P0 S0                                ; Drive 0 goes backwards
M569 P1 S1                                ; Drive 1 goes forwards
M569 P2 S1                                ; Drive 2 goes forwards
M569 P3 S1                                ; Drive 3 goes forwards
M569 P4 S1                                ; Drive 4 goes forwards
M584 X0 Y1 Z2:4                           ; Assign drives
M593 F25                                  ; cancel ringing at 40.5Hz
M350 X16 Y16 Z16 E16 I1                   ; Configure microstepping with interpolation
M92 X80.00 Y80.00 Z400.00 E415            ; Set steps per mm
M566 X480.00 Y480.00 Z90.00 E300.00       ; Set maximum instantaneous speed changes (mm/min)
M203 X18000.00 Y18000.00 Z900.00 E3000.00 ; Set maximum speeds (mm/min)
M201 X1500.00 Y1500.00 Z500.00 E250.00   ; Set accelerations (mm/s^2)
M906 X900.00 Y900.00 Z1200.00 E800.00:1200 I30  ; Set motor currents (mA) and motor idle factor in per cent
M84 S30                                   ; Set idle timeout

; set coordinates of leadscrews
M671 X-27:262 Y117.5:117:5
M208 X0:235 Y-2:228

; Axis Limits
M208 X-5 Y-10 Z0 S1                       ; Set axis minima
M208 X235 Y235 Z250 S0                    ; Set axis maxima

; Endstops
M574 X1 Y1 S1                          ; Set active high endstops
M574 Z0 S0

; Z-Probe
M558 P1 H5 F120 T6000                     ; Set Z probe type to switch and the dive height + speeds
G31 P500 X-5 Y20 Z3.547                         ; Set Z probe trigger value, offset and trigger height
M557 X10:225 Y15:210 S20                     ; Define mesh grid

the bed.g

; bed.g
; called to perform automatic bed compensation via G32
;
; generated by RepRapFirmware Configuration Tool v2 on Mon Dec 24 2018 14:30:36 GMT+0100 (Mitteleuropäische Normalzeit)
G28
G30 P0 X200 Y110 Z-99999 ; probe near a leadscrew, half way along Y axis
G30 P1 X15 Y110 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors

and the homez.g

; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v2 on Mon Dec 24 2018 14:30:37 GMT+0100 (Mitteleuropäische Normalzeit)
G91               ; relative positioning
G1 Z5 F6000 S2    ; lift Z relative to current position
G30 P0 X200 Y110 Z-99999 ; probe near left-hand leadscrew
G30 P1 X15 Y110 Z-99999 S2 ; probe near right-hand leadscrew and calibrate 2 motors


; Uncomment the following lines to lift Z after probing
;G91              ; relative positioning
;G1 S2 Z5 F100    ; lift Z relative to current position
;G90              ; absolute positioning

Any help is highly apprechiated.

Thanks
gueee
Re: z-homing failed with mini IR
March 24, 2019 05:23PM
You should home Z initially exactly as you probably did before, using a single G30 move at the centre of the bed. Then see [duet3d.dozuki.com] for how to adjust the Z motors independently to level the bed. You can do that in the homez.g file if you like, right after initial homing.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: z-homing failed with mini IR
March 24, 2019 05:49PM
Thanks @dc42,

if I got you right, I could do a full mesh bed compensation afterwards and it would take the dual z-axis into account?

Could you maybe provide an example for how the homez.g and the bed.g should look like?

cheers

Edited 1 time(s). Last edit at 03/24/2019 05:55PM by gueee78.
Re: z-homing failed with mini IR
March 25, 2019 03:01AM
I didn't mean mesh bed compensation. You can level the bed side to side as described in the link I gave you.

Edited 1 time(s). Last edit at 03/25/2019 03:02AM by dc42.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: z-homing failed with mini IR
March 25, 2019 06:25AM
I know you didn't mean mesh bed compensation.

I just wonder if the dual z-axis leveling is part of the homing process or rather the bed leveling process, in other words is mesh bed compensation influenced by dual z-axis leveling?
Re: z-homing failed with mini IR
March 25, 2019 07:41AM
Hi again,

I did a single G30 in the center of the bed in homez.g as well as homeall.g and homing works as expected. But I read the dual z-axis leveling (again) put it into the bed.g file for testing and it still gives me the same error no matter what order the two points are.

now I'm stuck.

again my homeall.g, homez.g and bed.g files.

; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool v2 on Mon Dec 24 2018 14:30:37 GMT+0100 (Mitteleuropäische Normalzeit)
G91                     ; relative positioning
G1 Z5 F6000 S2          ; lift Z relative to current position
G1 S1 X-240 Y-245 F2400 ; move quickly to X and Y axis endstops and stop there (first pass)
G1 X5 Y5 F6000          ; go back a few mm
G1 S1 X-240 Y-245 F360  ; move slowly to X and Y axis endstops once more (second pass)
G90                     ; absolute positioning
G1 X122 Y110 F6000
G30                     ; probe the bed using z probe to find Z0
G1 Z10 F5000            ; raise z to 10

; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v2 on Mon Dec 24 2018 14:30:37 GMT+0100 (Mitteleuropäische Normalzeit)
G91               ; relative positioning
G1 Z5 F6000 S2    ; lift Z relative to current position
G90               ; absolute positioning
G1 X122 Y110 F6000
G30               ; probe the bed using z probe to find Z0
G1 Z10 F5000      ; raise z to 10

; bed.g
; called to perform automatic bed compensation via G32
;
; generated by RepRapFirmware Configuration Tool v2 on Mon Dec 24 2018 14:30:36 GMT+0100 (Mitteleuropäische Normalzeit)
M561 ; clear any existing bed transform
G28
G30 P0 X15 Y110 Z-99999 ; probe near a leadscrew, half way along Y axis
G30 P1 X200 Y110 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors

Re: z-homing failed with mini IR
March 25, 2019 10:01AM
the only significant difference between my bed.g and yours is that I have H0 specified in the G30 commands. My X and Y values are a little different but I don't think that matters much.
; bed.g
M561 ; clear any bed transform
G30 P0 X35.0 Y137.5 H0 Z-99999
G30 P1 X185.0 Y137.5 H0 Z-99999 S2


MBot3D Printer
MakerBot clone Kit from Amazon
Added heated bed.

Leadscrew self-built printer (in progress)
Duet Wifi, Precision Piezo parts
Re: z-homing failed with mini IR
March 25, 2019 02:02PM
I just wonder how two points could or could not be in clockwise order?

I'm kinda clueless at that point.
Re: z-homing failed with mini IR
March 25, 2019 05:57PM
Quote
gueee78
I just wonder how two points could or could not be in clockwise order?

I'm kinda clueless at that point.

If it's complaining that the points are not in clockwise order, it's trying to do old-style bed compensation instead of bed levelling using independent leadscrews. What firmware version are you running?



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: z-homing failed with mini IR
March 25, 2019 06:16PM
I'm running the latest stable version 2.02 and wifi server version 1.22. should I update to the latest beta?
Re: z-homing failed with mini IR
March 26, 2019 04:00AM
Firmware 2.02 is good. Have you verified that you really are running firmware 2.02, by sending command M115?



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: z-homing failed with mini IR
March 26, 2019 04:26AM
here's my console output: FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.02(RTOS) ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2018-12-24b1
Re: z-homing failed with mini IR
March 26, 2019 05:33AM
OK, now try running M671 and M584, both without parameters, and check that the reported values match the ones you provided in config.g.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: z-homing failed with mini IR
March 26, 2019 08:06AM
I did that and obviously I did something wrong with Z leadscrew coordinates?!

M584 output: Driver assignments: X0 Y1 Z2:4 E3:4, 3 axes visible

M671 output: Z leadscrew coordinates are not configured

but I don't know why, cause I did configure it in config.g

here's the part of my config.g

; Drives
M569 P0 S0                                         ; Drive 0 goes backwards
M569 P1 S1                                         ; Drive 1 goes forwards
M569 P2 S1                                         ; Drive 2 goes forwards
M569 P3 S1                                         ; Drive 3 goes forwards
M569 P4 S1                                         ; Drive 4 goes forwards
M350 X16 Y16 Z16 E16:16 I1                         ; Configure microstepping with interpolation
M584 X0 Y1 Z2:4
M671 X-27:262 Y117.5:117:5
M92 X80.00 Y80.00 Z400.00 E420.00                  ; Set steps per mm
M566 X480.00 Y480.00 Z12.00 E120.00                ; Set maximum instantaneous speed changes (mm/min)
M203 X15000.00 Y6000.00 Z180.00 E1200.00           ; Set maximum speeds (mm/min)
M201 X1500.00 Y1500.00 Z20.00 E250.00              ; Set accelerations (mm/s^2)
M906 X1500.00 Y1500.00 Z1500.00 E800.00 I30           ; Set motor currents (mA) and motor idle factor in per cent
M84 S30                                            ; Set idle timeout

Edited 2 time(s). Last edit at 03/26/2019 08:22AM by gueee78.
Re: z-homing failed with mini IR
March 26, 2019 08:40AM
Thanks a lot @dc42,
.
I found the mistake, I was obviously blind cause I did put a ":" instead of a "." in the y-coordinates of the second leadscrew. eye rolling smiley
Re: z-homing failed with mini IR
March 26, 2019 11:35AM
I'm glad you solved it!



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login