I will replace drivers and motors on my lathe with new ones.

They have alarm output that I would like to use to stop the lathe if a motor stall.

What would be the best way to do it.

I can program the drive output to act as a NO or NC switch

Thanks, Jeff