Hoe to invert endstops
-
Core XY
Duet 3 mini 5+ firmware 3.4.5
ToolBoard 1LC
Just upgraded printer with above boards replacing a Duet 2 Maestro set up.
At the same time upgraded to latest firmware
Require home to be back left corner as per old set up
Y axis homes to the back, but x axis homes to the right, not the left as required
Config.g
; Endstops
M574 X1 S1 P"121.io2.in" ; Running on 1LC board
M574 Y2 S1 P"io6.in" ; Running on Duet 3 mini board
As I understand by putting ! in the command line it should invert the end stop position
M574 X1 S1 P"!121.io2.in"
This results in the X axis moving 5mm to the left then stoppinghomex.g
G91 ; relative positioning
G1 H2 Z5 F3000 ; lift Z relative to current position
G1 H1 X235 F1800 ; move quickly to X axis endstop and stop there (first pass)
G1 X-5 F3000 ; go back a few mm
G1 H1 X235 F360 ; move slowly to X axis endstop once more (second pass)
G1 H2 Z-5 F3000 ; lower Z again
G90 ; absolute positioning
homeall.g
G91 ; relative positioning
G1 H2 Z5 F3000 ; lift Z relative to current position
G1 H1 X235 Y215 F1800 ; move quickly to X or Y endstop and stop there (first pass)
G1 H1 X235 ; home X axis
G1 H1 Y215 ; home Y axis
G1 X5 Y-5 F3000 ; go back a few mm
G1 H1 X235 F360 ; move slowly to X axis endstop once more (second pass)
G1 H1 Y215 ; then move slowly to Y axis endstop
G1 H1 Z-205 F360 ; move Z down stopping at the endstop
G90 ; absolute positioning
G92 Z0 ; set Z position to axis minimum (you may want to adjust this)Any help to solve this problem would be much appreciated at 78 years of age the old grey matter is getting a bit thin.
-
@ortondale The "!" will depend on what type of switch and how it's wired. Usually, with micro-switches, you connect one wire to gnd and the other to signal in and use the normally closed contacts. If that's how you have wired the end stops, then there is no need to invert the pin.
Your problem is actually the move commands for homing X. Because the end stop is low end, you need to move in the negative direction - i.e. X-235 towards the end stop. Then to back away from the end stop, you need to move in the positive direction so remove the "-" sign in that G1 X-5 and make it G1 X5 . Your Y end stop is at the high end so those Y moves are correct (positive).
-
@ortondale said in Hoe to invert endstops:
This should work
homex.g
G91 ; relative positioning
G1 H2 Z5 F3000 ; lift Z relative to current position
G1 H1 X-235 F1800 ; move quickly to X axis endstop and stop there (first pass)
G1 X5 F3000 ; go back a few mm
G1 H1 X-235 F360 ; move slowly to X axis endstop once more (second pass)
G1 H2 Z-5 F3000 ; lower Z again
G90 ; absolute positioning
homeall.g
G91 ; relative positioning
G1 H2 Z5 F3000 ; lift Z relative to current position
G1 H1 X-235 Y215 F1800 ; move quickly to X or Y endstop and stop there (first pass)
G1 H1 X-235 ; home X axis
G1 H1 Y215 ; home Y axis
G1 X5 Y-5 F3000 ; go back a few mm
G1 H1 X-235 F360 ; move slowly to X axis endstop once more (second pass)
G1 H1 Y215 ; then move slowly to Y axis endstop
G1 H1 Z-205 F360 ; move Z down stopping at the endstop
G90 ; absolute positioning
G92 Z0 ; set Z position to axis minimum (you may want to adjust this) -
@deckingman
Many thanks for the info works a treat -
@ortondale said in Hoe to invert endstops:
@deckingman
Many thanks for the info works a treatglad it worked. We septuagenarians must help each other out where we can.
-
-