@droftarts
i did define the wrong pins. The correct pins are
I am able to move the X and Y-axis to homing points except the triggers or Endstops were not working correctly. I will update as per your advice and comment out the endstop lines for X and Y axis in the config.g and just leave Trigger 1 then test again
Updated Config.g Snapshot
On trigger 1 for X and Y-axis and commented out Endstops for X and Y-axis
; Triggers -- Two triggers, one for X and one for Y, and set them to pause the machine
M950 J1 C"!0.io0.in" ; define Trigger input pin #1 on IO_0
M950 J2 C"!0.io1.in" ; define Trigger input pin #2 on IO_1
M581 T1 P1:2 S1 R0 ; invoke trigger 1 (pause) when an inactive-to-active edge (correct for NO switches) is detected on input 1 or input 2 at any time
; Endstops
; For X and Y Axis
;M574 X1 S1 P"!0.io0.in" ; configure active high endstop switch for low end on X via pin io0.in
;M574 Y1 S1 P"!0.io1.in" ; configure active high endstop switch for low end on Y via pin io1.in
Updated homex.g
; homex.g
; called to home the X axis
; Undefine any Triggers for X and Y-axis
M950 J1 C"nil" ; undefine X axis limit switch triggers
M950 J2 C"nil" ; undefine Y axis limit switch triggers
;Define The Triggers for X and Y-axis
M574 X1 S1 P"0.io0.in" ; define X axis endstop, minimum end
M574 Y1 S1 P"0.io1.in" ; define Y axis endstop, minimum end
; Home X-Axis
G91 ; relative positioning
G1 H2 X0 ; move X-axis Minimum Homing endstop and stop there (first pass)
G1 H2 X-1575 F1800 ; move quickly to X-axis Maximum endstop and stop there (first pass)
G1 H2 X-15 F6000 ; go back a few mm
G1 H2 X-1575 F360 ; move slowly to X-axis Maximum endstop once more (second pass)
G1 H2 X0 ; move back to X-axis Minimum Homing endstop and stop there (second pass)
G92 X0
G90 ; absolute positioning
;
M574 X0
M574 Y0
; Triggers
M950 J1 C"0.io0.in"
M950 J2 C"0.io1.in"
Updated homey.g
; homey.g
; called to home the Y axis
;
; generated by RepRapFirmware Configuration Tool v3.3.16 on Tue Dec 05 2023 09:51:46 GMT-0500 (Eastern Standard Time)
M950 J1 C"nil" ; undefine X axis limit switch triggers
M950 J2 C"nil" ; undefine X axis limit switch triggers
M574 X1 S1 P"!0.io0.in" ; define X axis endstop, minimum end
M574 Y1 S1 P"!0.io1.in" ; define Y axis endstop, minimum end
G91 ; relative positioning
G1 H2 Y0 ; move Y-axis Minimum Homing endstop and stop there (first pass)
G1 H2 Y2125 F1800 ; move quickly to Y-axis Maximum endstop and stop there (first pass)
G1 H2 Y15 F6000 ; go back a few mm
G1 H2 Y2125 F360 ; move slowly to Y-axis Maximum endstop once more (second pass)
G1 H2 Y0 ; move back to Y-axis Minimum Homing endstop and stop there (second pass)
G92 Y0
G90 ; absolute positioning
M574 X0
M574 Y0
M950 J1 C"!0.io0.in"
M950 J2 C"!0.io1.in"
@droftarts , Does this look correct to you ?