I designed a small electronic circuit to swap rotary and y drivers so that the rotary could be connected and removed while the machine is on (Hot-swap) but i thought that this could also be done in a simple way with a DPDT (double-pole-double-throw) switch:
Both Y and Rotary PUL- and DIR- entries of the drivers are connected to the controller's Y-PUL and Y-DIR
In Normal operation:
Y-PUL+ and Y-DIR+ are connected to +5V
ENA+ of the Rotary-driver is +5V, while ENA- is always connected to GND, in this state the ROTARY-driver is disabled and the rotary can be attached or removed..
Also the green led will lit.. This can be a bi-color common cathode led. When you have a common anode type you have to change the wiring a bit.. This is drawn in the lightgrey box left-down.
IN Rotary operation:
Y-PUL- and Y-DDIR- will be connected to GND, so no pulses will be passed to the Y-stepperdriver but the motor will be forced at position
ENA+ of the rotary will be GND-level so the ROTARY-drive is enabled.
And the red LED will lit.
All you need for this is one DPDT-switch, two leds or one Bi-Color-led Common cathode and a resistor 220 Ohm 1/4 Watt .... and some wire..
Kees