Ok, I am using a router tool, with a 5.5 HP spindle motor. When the fence opens the robot goes to a control stop. Ive wired in a timer (hardwire, not program based) to turn on my fence relay (again hardwired to trip both chanels of the fence circuit) ive got this wired in to delay the fence signal so that i may run a macro to stop the spindle (say 4 seconds) so the operator does not injure themselves. But my problem is that i cant seem to run a macro while another program is running. My macro looks like this.
1: abort
2: if Ro(8) = on , call Spinstp
Im using robot output as a registry bit. I have another program turning that on. Basicly to say if the bit is spinning. Im using an integrated VFD that needs at least 2 seconds to stop spinnig from full speed.
Is there a better way to program this, for example Cstop, or program control.
I dont know how to write that type of code. Forgive me i am self taught. Ive come a long way with all of your help thus far. Sorry ahead of time.