1756 l71, V30, filler line 6. Bottle count is a routine called Count_Bottles doing ADD Total 1 Total, called by a JSR behind an ONS off the fill head sensor, so it should run once per bottle. Line 6 counts exactly double, every bottle. Lines 4 and 5 have the same routine copied over and they count right.
I scoped the sensor and it's one clean pulse per bottle, so I tried a new sensor and a different input and got the same. Then I swapped the ADD for a CTU and that counted one bottle and never again, so the ADD went back in.
It's counted double since commissioning and the operators just divide by 2. What's different about line 6? The CTU counting one bottle and then never again is the bit that's nagging at me, does that tell anyone anything?
Studio version, and how many places is Count_Bottles called from? Go to the routine, right click, Cross Reference, and look at the JSR entries.