One thing to check is for floating inputs, especially if the relay contacts arc when the motor is turned off. PICs don't like being near EMI. -- Best regards Tony mICros http://www.bubblesoftonline.com mailto:sales@bubblesoftonline.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body