I would like to add a limit switches and emergency stop to my machine.
- “Z” Limit to pause G-code run. For safety of equipment like accidental set G-code to over run distance supposed to be 10 but entered 100. So it makes a mechanical contact Switch. to tell machine, so I can make corrections without damage. Z to stop up or down, and turn off spindle.
- X-Y Limit. to pause G-code run. I will place a bump in one of the links on the chain so I can physically set the limit, Then a roller switch could open contact.
- E-stop, Emergency stop all, also for power outage will not restart by itself. magnetic relay and reset. so equipment will not restart without control.
The limit switches will be normally closed. each axis X,Y will need 1 pin each, Z will need 2 pinsa total of 4 pins.
So I need Arduino programing and what digital pins are available for control.
Arduino Mega 2560 Rev3
Driver Board v1.2b