Connection to wire 127 is doing the job. I found it by using a VOM and checked it with e-stop engaged and not engaged. Now if I use the machines e-stop it also triggers the mach 3 e-stop. I still have to reset both the the machines e-stop and the mach 3 e-stop to restart but it is much safer than the way it was before.