michaelpappas
Member
I'm using one TON (called SystemTimer) throughout a program that I change the .PRE given different conditions. I'm porting an IDEC ladder over to be used on an AB PLC The IDEC ladder used one global timer that was reset in a similar way. When the program moves to a different phase of the process it will MOV the new timer PRE and a new set of conditions will enable this same timer, thus making it reset.
The issue is that the timer will hit the .PRE amount and the DN bit will go true but it will not stop being enabled. I looked at all of the cross references for SystemTimer.EN and found that one rung is causing the issue. I for the life of me can't figure out why this rung which is not true is still causing the timer to be enabled.
cross references
rung in question
When I swapped the SolenoidRetract XIC and Autoswitch1Bottom XIC for a bit that I could toggle on and off I could get the SystemTimer.EN to go false and the timer would reset as I expect.
Am I missing something here? Could there be some phantom bit that is enabling the timer that I can't see in cross references?
Thanks,
Michael
The issue is that the timer will hit the .PRE amount and the DN bit will go true but it will not stop being enabled. I looked at all of the cross references for SystemTimer.EN and found that one rung is causing the issue. I for the life of me can't figure out why this rung which is not true is still causing the timer to be enabled.
cross references
rung in question
When I swapped the SolenoidRetract XIC and Autoswitch1Bottom XIC for a bit that I could toggle on and off I could get the SystemTimer.EN to go false and the timer would reset as I expect.
Am I missing something here? Could there be some phantom bit that is enabling the timer that I can't see in cross references?
Thanks,
Michael