How to use duex5 end stops with RepRap3 firmware
-
Hello,
I'm nearing the completion of the 3d printer im building, and through some probably curious design choices by some people, I have 4x Z motors, 2x Y motors, and 1 X motor.
I want to make use of 4x end stops in the Z axis and 2x in the Y axis.
I'm currently trying to get the Y axis working before I get the Z axis working, and for the love of me I cant figure it out. I've got everything moving like it should, I just cant figure out how to get the duex end stops to affect.
Excerpts from my config.g
M584 X0 Y1:5 Z2:6:7:8 E3 ; set drive mapping, this works fine as everything moves in unison M574 Y1 S1 P"ystop+duex.e2stop" ; configure active-high endstop for low end on Y via pin ystop
I've tried using the M950 command below in many different variations and have tried the other pin name that looked promising (exp.e2stop) but to no avail.
M950 J45 C"!^duex.e2stop"
tl;dr
I want to have one endstop for each of my motors, I have 7 motors for all the axises (4x - Z, 2x - Y, 1x - X), and I cant figure out how to use the endstop connections in the duex 5.
-
@dteel said in How to use duex5 end stops with RepRap3 firmware:
Excerpts from my config.g
M584 X0 Y1:5 Z2:6:7:8 E3 ; set drive mapping, this works fine as everything moves in unison M574 Y1 S1 P"ystop+duex.e2stop" ; configure active-high endstop for low end on Y via pin ystopThat looks correct to me. When you send M98 P"config.g" to re- run them, do you get any error messages?
If you don't see any error messages, what happens when you try to home Y?
-
When I hit Home Y, the machine crashes until it timeouts because it thinks it went the entire distance of the axis. I have the end stop wired to the right connector on the Duex5 with both of the NC Switch's leads on the two outside pins (GND/STOP)
There is no LED on the Duex5 e2endstop being lit up like it does on the Duet, do I have to enable a pullup or something?
-
Well I've got it working now, I did need to enable the pullup which I guess I do by putting a preceding ^ before the name in M574, very confusing.
Working code
M584 X0 Y1:5 Z2:6:7:8 E3 ; set drive mapping ..... M574 Y1 S1 P"ystop+^duex.e2stop" ; configure active-high endstop for low end on Y via pin ystop
I actually cant find it documented anywhere in https://duet3d.dozuki.com/Wiki/Gcode#Section_M574_Set_endstop_configuration to even use a "^" at all, possibly add this to the wiki to prevent people in the future running into the problem I had?
-
Does the LED for that endstop input on the DueX5 work?
-
Not that I can tell, there was no noticeable difference other than it homes correctly now. I just had to add the ^.
-
@dteel said in How to use duex5 end stops with RepRap3 firmware:
possibly add this to the wiki to prevent people in the future running into the problem I had?
Done.
-
@dteel said in How to use duex5 end stops with RepRap3 firmware:
Not that I can tell, there was no noticeable difference other than it homes correctly now. I just had to add the ^.
The endstops on the DueX have LEDs close to the endstop connectors. The LED and its resistor act as the pullup, so it should not be necessary to enable the internal pullup resistor. However, if the LED is missing or open circuit, then it certainly would be necessary to enable the internal pullup resistor to make it work.