No need for pullup resistor.
Input 4 next to E-Stop, I believe.
Your probe connects to Pin S.
Your probe gets connected to ground on the machine, when required.
The input is already protected against spikes. No capacitor required. It is on the PCB already as is a 2K pullup resistor.
Naturally the config file needs to reflect this input in the setup screens.
It will probably need to be active low.
Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.