TON not accumulating

Hello everyone,

so I added some inputs and 2 TON timers to an existing program that I knew was working just fine before I added these. I verified that each rung was correctly written and would work before I downloaded them, but when I put the PLC in run mode, the timers wouldn't accumulate time even when the rest of the rung was true.

Do you guys have any idea on what could be the problem? It's Micrologix 1200 by the way

Thanks!

(just to clarify, I added two new rungs, both with 4 inputs and one TON timer)
 
just GUESSING - but maybe you put the new code into a NEw subroutine/ladder file - and you didn't "call" the subroutine to tell the processor to scan/execute it? ...

if so, you need to add a JSR (Jump to Subroutine) instruction to the Main File (Ladder #2) ...

TIP: with your type of system, only the Main Ladder File (File #2) gets scanned/executed automatically ... any other Ladder Files must be "called" (usually with a JSR instruction) or the processor won't even go there (even though the vertical "rails" might turn green) ...

let us know if this idea doesn't fix your problem - but it's a very common cause for what you've described ...

and welcome to the forum ...
 
(just to clarify, I added two new rungs, both with 4 inputs and one TON timer)

that statement MIGHT mean this:

maybe you have used the same timer ADDRESS (for example T4:0) for more than one timer INSTRUCTION ... in that case, if any one of the TON rungs are FALSE, then that particular TON timer instruction is acting like an RES (Reset) instruction - and effectively "resetting" the other timer instructions on each and every scan ...

the fix for this would be to use a separate address for each timer instruction ... (example T4:0 and T4:1 and T4:2) ...

if nothing else helps you get going - consider posting a screen shot of your code (or the code itself) ...

right now we're just GUESSING at what you're actually seeing ...

good luck with it ...
 

Similar Topics

Do I have any friends who have worked on big stacker cranes moving loaded pallets? If so, did the PLC or servo controller handle compensating for...
19
Replies
526
Views
Hello, I'm running into an issue I can't quite figure out. To ease with HMI screen setup, I'm trying to use a global object for my goto display...
5
Replies
274
Views
I had this problem where I factory restored a 5069-L320ERS2 Guardlogix PLC intending to repurpose it. Having done that, Studio 5000 version 36...
0
Replies
268
Views
Hi, I have a question about an HMI button. I want the button to stay ON even when I switch screens, without having to modify my PLC program...
4
Replies
326
Views
I'm working on a couple water transfer stations. The project is months out, but I like to be ready with my automation. What I'm trying to achieve...
14
Replies
617
Views
Top