wmor0082
Member
Had a negative value loaded into a timer in controls logix. Can you tell me why. We are using MES and Camstar for data colection. We are using udc to caplture data.
If the timer is on a ladder that is not being scanned for long periods of time, random values get put there. potentially negative ones too.
If the timer is on a ladder that is not being scanned for long periods of time, random values get put there. potentially negative ones too.
Had a negative value loaded into a timer in controls logix. Can you tell me why.
Then you haven't tried it.I have never seen this happen. Not once.
Perhaps your controller regrets all those wasted milliseconds of its youth?
Then you haven't tried it.
The timers use the system clock, grab a value at one scan, then the next scan grab another value and compare them. If you take the timer off scan for a long time, the next time it is scanned the system clock is so far ahead that the comparison results in some wild numbers in the ACC
Perhaps your controller regrets all those wasted milliseconds of its youth?
well, this is just a GUESS of course – but the figure below shows one way that pops up in every hands-on class that I teach ...
and notice that you don't have to "Edit – Accept – Test – Assemble" your timer's rung for this unintended change to take effect ... just a sloppy Drag-and-Drop with the mouse is all it takes to ruin your day ... the mouse cursor is several inches away from the Timer's Preset value - but in RSLogix5000 that's "close enough" to count ...
and in case you're wondering, there's NO WARNING that you're about to alter your program – and no warning AFTER the fact either ...
going further - this is one reason why I refuse to work with this software without having a real-honest-to-goodness mouse ... those little "touchpad" things make it much too easy to cause these types of errors ...
going even further - in the example shown, the negative Preset value will NOT cause the processor to fault and shut down - UNTIL the input Local:1:I.Data.1 gets turned on - and the Timer's rung gets executed with True logic ... so in some cases, it might be quite awhile before anyone even realizes that Little Johnnie has made a mess of things ...
one step further - over the years I've had dozens of students tell me: "We always keep our processors' keys in the RUN position. That way we can't make accidental changes to the programs while we're troubleshooting." ... well, guess what? ...
.