Hi,
I have a photo eye that will be used to trigger counts for products passing by on a conveyor belt. Instead of doing a count, I would like to do an ADD operand to keep track of the number of products. However, when I do a 'toggle bit' instead of adding 1 to the value, it adds random large positive values. I used an ONS but it doesn't just add one. Why? Or what can I do so it only adds one each time a product passes by? Thanks.
----]PE[--[ONS]-----|Add|--
I have a photo eye that will be used to trigger counts for products passing by on a conveyor belt. Instead of doing a count, I would like to do an ADD operand to keep track of the number of products. However, when I do a 'toggle bit' instead of adding 1 to the value, it adds random large positive values. I used an ONS but it doesn't just add one. Why? Or what can I do so it only adds one each time a product passes by? Thanks.
----]PE[--[ONS]-----|Add|--