There is a General Abort input that can be configured with the CN command, if you want to save on inputs, you could parallel four open collector 2n7000 or a ULN2803 to combine into one output.
This input aborts motion and stops the program automatically .
Nosmo.