I am very new to the CNC world. I am making an MPCNC with a duet 2 wifi (latest 3.0 firmware I think). it uses 5 NEMA 17 motors.
X - 2 motors, 2 endstop
Y - 2 motors, 2 endstop
Z - 1 motor, manual zero
I got the motors working with the M564 S0 H0 command.
Problem is when I want to home the X and Y axis. I want to use a dual endstop system so it squares automatically.
I don't have any experience with writing Gcode so i generated a part of the home gcode with the RepRap configurator.
when I press homeX or homeY it only moves the z-axis about 1cm up and down and it says home failed. this is my file to home the X axis. the Y axis it
; homex.g
; called to home the X axis
;
; generated by RepRapFirmware Configuration Tool v3.1.4 on Sat Nov 14 2020 18:37:55 GMT+0100 (Midden-Europese standaardtijd)
M581 X0:3 S-1 T2 C0 ;disable trigger for endstop X
G21 ; set to mm
G91 ; relative positioning
M584 X0 W3 P4 ; seperate Y axis for alingning
G1 H2 Z5 F6000 ; lift Z relative to current position
G1 H1 X-805 F1800 ; move quickly to X axis endstop and stop there (first pass)
G1 H2 X5 F6000 ; go back a few mm
G1 H1 X-805 F360 ; move slowly to X axis endstop once more (second pass)
G1 H2 Z-5 F6000 ; lower Z again
G90 ; absolute positioning
M581 X S1 T2 C0 ; enable trigger for endstop X
I hope some of you can help me.