Dave Powers
Member
I have a register that I would like to increment by 1 whenever an alarm comes on so that I can keep a running total. My problem is that the math block seems to keep adding 1 to the register every scan. The math block receives power from a contact that closes when an alarm occurs, this sets a bit in the alarm register, and it also adds one to the alarm count register. Whenever the alarm contact is on, the alarm count register keeps counting. It doesn't just add one to the register. Is this normal for an addition block to keep counting every scan?