Thanks Dwight, I've always used (') to comment out notes and have used (<>= NOT) but I do now see these in the manual, I just never noticed them before. Good to know, always learning.

A couple of other things to consider...
Is there any chance of moisture accumulating on your PCB that would cause it to be erratic??
Is your power supply good and stable?
Why do you use an external ceramic resonator when the PIC has an internal 4MHz oscillator (not that this would cause you problems but it does reduce the I/O pins you have available.)
You might want to consider incorporating a gate open/closed sensor for positive indication of gate position.
The PCB is in a gasketed weatherproof enclosure and has been totally dry
Power supply is a brand new 12v SLA battery that has been at 12+ volts consistently during this time, I use a to220 7805 with caps
I use the XT OSC because of timing only control and temperature differences
I did consider limit switches or better, IR limit sensors but wanted to keep it simple as possible. But that would be more precise and reliable