So possibly I am misunderstanding the definition of a count up on a false to true rung transition but I've got the following code (attached). You can see that the beginning of the rung checks a bit, if its set it enters the rung and eventually will get to B3:2/15.. this bit is initially set to 0, so the counter is skipped. The next rung then sets B3:2/15 . Additionally, the main rung bit B3:3/5 is cleared so that on the next scan this rung is ignored (code not shown will then set B3:3/5 so that on the third pass the rung is entered again)
Eventually we get back to the rung again, and this time as we go in, the B3:2/15 bit is set, so we hit the counter, and it counts to 1.
Everything works fine up to this point, the counter accumulator never goes past 1... This leads me to believe that the only possibility is that since B3:2/15 remains set, that it does not see a false to true transition.. I figured that the B3:3/5 being cleared would be recognized as the false to true transition... Can anyone help explain or give a resolution?
Thanks!
Eventually we get back to the rung again, and this time as we go in, the B3:2/15 bit is set, so we hit the counter, and it counts to 1.
Everything works fine up to this point, the counter accumulator never goes past 1... This leads me to believe that the only possibility is that since B3:2/15 remains set, that it does not see a false to true transition.. I figured that the B3:3/5 being cleared would be recognized as the false to true transition... Can anyone help explain or give a resolution?
Thanks!