Unplug the milling machine from the wall.
Take off the front panel of the milling machine by removing the retaining screws at each corner of the front panel with a Phillips screwdriver.
Heat up the soldering iron. Melt the old solder joints by touching the tip to it and wiping the old solder up with a damp rag or sponge.
Pull out the old limit switch with a pair of needle-nose pliers.
Connect the new limit switch wires to the connectors on the milling machine and then solder them together with the solder.
Replace the milling machine front panel and the retaining screws.
Plug the milling machine back into the electrical socket.