Can an Internal Bit Fail?

dcooper33

Lifetime Supporting Member + Moderator
Join Date
Jun 2011
Location
Rogers, AR
Posts
717
Hi guys,
I was told to look into a strange problem the other day. PLC 5/40e has a counter that keeps track of shift runtime minutes and stores them in an N register(N7:0). At shift change (6:30 am and pm) that number is moved into a different integer (N7:1) and then N7:0 is cleared. N7:0 and N7:1 are both displayed on a PV+ for the operators to track production info.

Here is what the logic for that looks like originally (recreated in RS500 from RS5):

Runtime Minutes Reset.jpg

Then one day, the previous shift minutes display will only display Zero, rather than what the previous shift actually ran. So obviously the rung must have been re-executing and MOVing the NEW 0 value in N7:0 into N7:1.

Now, to me, the "Do not repeat" timer is redundant when you have a one-shot, not sure why it was in there. But I'm curious, so rather than replace the timer with a counter, I just leave the input logic alone and just add a counter to the output of the rung with a preset of 1 and an XIO of the done bit in series with the first MOV instruction. That way the rung can continue to execute as many times as it wants, but it will only move the runtime data once.

Runtime Minutes Reset Revised.jpg

Sure enough, after coming back and looking at the results for a few shifts, I'm getting counts of 2-4 on C5:0. The operators are happy because their screen looks fine, but I can't figure out how this is happening. The logic, although clunky, looks sound to me. I don't see how it can re-execute unless the system clock is malfunctioning. Even then, the timer should keep the rung from being true again.

Now I'm looking at that ONS. I checked earlier and made sure it wasn't being used elsewhere in the program and it wasn't. Just for giggles I use a new bit and, voila!, no more multiple counts. Everything works just like it always did. Which leads me to my question-Can an internal memory bit fail like a physical I/O?

I'd just like to get the pros' opinions on this one, because even though all's well, I hate anomalies like this.

As always, insight is much appreciated.

Cheers,
Dustin
 
Last edited:
In case those pics are impossible to see ;)

EDIT Well I see that didn't help. Another question: I'm saving my SS's as .png files, but when I upload them to the forum, they show up as smaller JPEG's. What am I doing wrong?

Runtime Minutes Reset.jpg Runtime Minutes Reset Revised.jpg
 
Last edited:
If internal memory did fail, you would have bigger problems.

Most likely, that original ONS bit is being written to by something else occasionally, either in the program itself, or from an external device.
 
A quick answer to can an internal bit fail is no

a more likely explanation would be that the B3:0 word is being modified elsewhere, run a cross reference not find on B3:0 to see if b3:0/1 is used anywhere else.

Steve
 
If internal memory did fail, you would have bigger problems.

Most likely, that original ONS bit is being written to by something else occasionally, either in the program itself, or from an external device.

Well a cross-reference of the ONS address turned up nothing, no direct usage of the bit, and nothing on the word level either. I never checked on the panelview, that's a possibility...
 
A quick answer to can an internal bit fail is no

a more likely explanation would be that the B3:0 word is being modified elsewhere, run a cross reference not find on B3:0 to see if b3:0/1 is used anywhere else.

Steve

I've learned the hard way never to use find (except when searching for descriptions)

🍻
 

Similar Topics

In Logix 5000 software, how do you make an output (OTE)bit retentive such that when power is lost and resumed, the status of that bit will be in...
Replies
2
Views
1,806
We have a RSLogix program that includes a conveyor and the fault bit is xic b11:2/0. What i'm not understanding is that this is the only place...
Replies
19
Views
5,952
hello somebody knows this is a bit on special internal S7 200, briefly a 1 stop at a run? example .... stop SM0.xx active run for one second or...
Replies
4
Views
4,344
U
With regards to a plc what is meant by an "internal bit" - I know in PC's it is used as an address for floating.... Thanks
Replies
1
Views
2,674
If anyone can assist me in my folly I would surely appreciate it. I am creating a program for a small control panel and find that I can't get any...
Replies
4
Views
8,301
Back
Top Bottom