My 8055 app shuts down occasionally. I suspect that the counter sometimes sees > 64K and blows up because the dll is a integer.
I am using a 8055 to count widgets per minute at a plant. This is limited to less than 160 units per minute. I have 5 machines with similar software and hardware. Similar PCs do not fail. I use a Allen Bradley light sensor and a optical relay with the 8055. The PCs are well ventilated and the box containing the 8055 is at room temp with some dust. The environment is similar to a auto garage. I have replaced the board with another working board.
I use UPS with the PC and other equipment because there are power surges as motors turn on and off. The UPS appears to be incorrectly grounded and switched around , but the system seems to work.
A VB6 Chart on the app indicates that there is an occasional, yet impossible, increase in rate. Sometimes it appears that the rate rises to 6000 widgets per minute for one minute, but that is impossible.
I am using VB6 with about 4 timers in the program. I have tried to capture errors using OnError code, but to no avail. Should I change the delay on the input upward? How would that help?
In summary, what advice can you suggest?