I have a PLC tag reporting on a photoeye that counts from 0 to 200 whenever it is blocked, then it resets to zero and when it is blocked again, it starts counting again. I want to know the number of times this is reset to zero. I have added the tag and selected it as an event meter, accumulating on zero. It counts just fine and I can get the total at the end of the shift from the database by looking at the value of that field. I would then like to reset this counter to zero and when they start again the next day, it will begin counting at 1. I am not sure where I need to reset this counter. I tried reseting the field in the database to 0, but the next entry from FSQL just writes a value incremented from what the original value was.
Do I need to configure an action item from FSQL to reset it at a certain time? Thanks in advance for your help.