I agree totally Ian, but he seems to be struggling with a N/C or N/O input and wanted code from the first post, without saying what PLC he has. I was going to leave it to you to write the code anyway,ha ha.
I must admit you gurus on this site bend over backwards to help people, when if this was happening on site, I'm sure you would wonder why some people are allowed to walk around with a screw driver in there pocket, let alone are allowed to use it.
Thank you but i need both NC NC to show so i now that both of them working properly before shipping the product away!