Z axis Endstop switch
-
Hi guys,
I have an issue with my Z axis, stops (possibly stalling out almost immediately) during negative movement on the homing command, also my Z axis endstop will not stop that axis from moving. If i manually depress the switch the light goes off on the board. It's plugged into the Zstop port. I'm running RR 3.2 firmware, Duet 2, Core X Y. This is a new install. Any help would be much appreciated.
Regards
; Endstops
M574 X1 Y1 S3 ; Set X / Y endstop stall detection
M574 Z1 S2 ; Set Z endstop probe
M558 P7 X0 Y0 Z2 H3 F360 I0 T20000 ; Set Z probe type to switch, the axes for which it is used and the dive height + speeds
G31 P200 X0 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
M557 X10:290 Y20:180 S40 ; Define mesh grid; homez.g
; called to home the Z axisT-1 ;just in case there is a tool coupled, go try to drop it at the dock
M98 P/macros/Coupler - Unlock ;Open Coupler
G91 ; Relative mode
G1 H2 Z5 F5000 ; Lower the bed
G90 ; back to absolute positioningG1 X150 Y100 F50000 ; Position the endstop above the bed centre
G91 ; Relative mode
G4 P500 ; wait 500msec
G1 Z-999 S1 F1000 ; Move Z down until the switch triggers (first pass)G4 P500 ; wait 500msec
G1 Z5 F5000 ; Lift ZG4 P500 ; wait 500msec
G1 Z-999 S1 F300 ; Move Z down until the switch triggers (second pass)G4 P500 ; wait 500msec
G1 Z5 F5000 ; Drop the BedG90 ; Back to absolute positioning
-
Hi,
Your M558 command does not follow the documentation for firmware 3.2.
Perhaps after you correct it things will work.
And I don't think you need the G4 commands when homing Z.
I've never used G4 when homing any axis on any of my printers and things work fine.
Frederick
-
SOLVED
M574 Z1 S1 P"zstop"
fixed it