One endstop for multiple axes
-
I have a beta version of the Polar 3D/Polar Cloud printer that I'm trying to setup on a Duet 2 Wifi.
So far polar support is working well, the only issue I'm having is getting the homing to work properly. In this printer there is a single magnetic sensor that can be triggered by the X carriage or the Z carriage.
I have X working but I'm having trouble assigning the Z axis to also use the X sensor input. Below is the config I have added for endstops and I've been testing with M119. X updates when I trigger the sensor but Z does not.
M574 X1 Y0 S0 ; X axis low, no Y axis sensor. Works as expeted M574 Z1 S0 C0 ; Z axis low, use X axis? Does not work
The docs said the C was new after 2.03 so I also updated to:
Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet Firmware Electronics: Duet WiFi 1.02 or later Firmware Version: 2.03 (2019-06-13b2) WiFi Server Version: 1.23 Web Interface Version: 1.22.6
Any ideas?
-
wire the endstop to both the x and z terminal at the same time?
-
The M574 C parameter was added in a 2.03 beta version but withdrawn later. I can see a few options:
- Do as @Veti says.
- If you are not using a Z probe, you can connect your endstop to the Z probe input, then set up both X and Z to use the Z probe for homing.
- If you use the RepRapFirmware 3 beta then the M574 command takes a P parameter, which is the pin name. Currently an endstop pin can't be shared by more than one axis, but in the homing files you can allocate and release the pin as needed.
-
Thanks for the info, I got it to work by setting the Z probe to an enstop then assigning the X axis homing to the Z probe.
M558 P4 I1 M574 X1 S2 M574 Z1 S2
-
@redwagon said in One endstop for multiple axes:
M574 X1 S2
For future reference you must also map the Z endstop back to the Z probe with
m74 Z1 S2