Yes that all makes perfect sense now. I assume I can use a relay for the NO switch, and for that I maybe best going to the Mach3 forum for advice on how to set this up in mach3. I shall have a go at setting it all up this evening. Will let you know how I get on.

Thank you very much for your help with this.

Steve