Controllogix ADD or CTU not operating properly

Ordinarily I would insist on having the program itself, and that videos and screenshots are nearly useless. But here.... a different story.

Take a step back and consider; what if this is a problem in the way that RSLogix 5000 GUI is updating the text digits inside the graphical display of the *.ACC value of the Counter, rather than an actual change in the .ACC element value ?

I would test this by using a comparison trap.

The accumulated value change might not really be happening, but actually be an artifact of the screen drawing mechanism. What kind of a PC/display are you running this on ?
 
Watching the counter increment to right around 340700 the accum value goes back down to about 340200. Very consistent.

I would look for something else writing to the accum value.

Mickey, Are you sure your player isn't in repeat mode? 🍺


Bradal,
If that is representative of the actual code and the counter increments from SYSTEM_100_MS_TIMER but won't increment from Local:3:I.Data.5 then I would check Local:3:I.Data.5. The PLC is not going to be selective and choose to ignore one and not the other. Either the input is not working or some instruction somewhere is clearing Local:3:I.Data.5 - either way the problem has to lie there. Don't forget that that CLX IO is asynchronous to the PLC scan.

The video shows the value incrementing almost 700 counts in 68 seconds, which is pretty consistent with a .1 second pulse, so even though the screen update rate is obviously showing only some of the pulses the count is consistent with the elapsed time. There don't appear to be any execution issues.

We really need to see more - if you can zip the .ACD file and attach it to a post that would be very helpful.
 
Last edited:
Mickey, Are you sure your player isn't in repeat mode? 🍺


Bradal,
If that is representative of the actual code and the counter increments from SYSTEM_100_MS_TIMER but won't increment from Local:3:I.Data.5 then I would check Local:3:I.Data.5. The PLC is not going to be selective and choose to ignore one and not the other. Either the input is not working or some instruction somewhere is clearing Local:3:I.Data.5 - either way the problem has to lie there. Don't forget that that CLX IO is asynchronous to the PLC scan.

This is not the case, it increments from the hard input, the 100ms timer is just to speed up the process of waiting so it isn't an 8 hour video.

Also the value does actually change, according the RSVIEW32, we see the value decrement by some random number every week or every 3 days...then pop back. The operator keeps detailed information on the flow total value from each meter, and it definitely does decrement randomly. I am now logging these values in the HMI, originally just to see if there is a pattern, but now just for information in the future if needed.

Thanks
 
This is not the case, it increments from the hard input, the 100ms timer is just to speed up the process of waiting so it isn't an 8 hour video.

Also the value does actually change, according the RSVIEW32, we see the value decrement by some random number every week or every 3 days...then pop back. The operator keeps detailed information on the flow total value from each meter, and it definitely does decrement randomly. I am now logging these values in the HMI, originally just to see if there is a pattern, but now just for information in the future if needed.

Thanks

Ah, got it. I misunderstood you, I thought that it was not counting at all without the 100mS pulse.
 
I noticed something strange happening on the second video.

Between 10 and 13 seconds it appears that test bit does not change value - however the counter counts from 338373 to 338377. Something else is writing to test_bit, the counter ACC, or the counter .CU bit, or a CTU instruction uses the same counter tag on a false rung somewhere else in the project.
 
Sorry guys that is the best I can do, you will have to trust me that it does accumulate when I toggle the input, I am doing this over a remote connection via PCanywhere. There is nothing writing to TEST_BIT anywhere, 100% guaranteed unless the PLC is somehow doing internally, and same for counter. There is just a bit of a lag in the video, if you like a I can do another video but much slower showing each toggle. Let me know!

Thanks!
 
If I were a betting man, which I generally am not, I would say someone is performing an indirect access past the end of an array or UDT. The counter just happens to be the next thing in line.

Keith
 
I am doing this over a remote connection via PCanywhere.

Okay, stop.

The video compression mechanisms used by PCAnywhere or LogMeIn or Windows RDP could themselves explain the mis-drawing of digits in the accumulated value tag display. That's enough for me to stop looking at videos.

But you say that you've got graphs, and logs, and charts of something that appears similar going on with the accumulated value in real life. That's the problem you are trying to solve.

I strongly recommend using ladder logic to trap changes in the accumulated value of the totalizer, rather than trying to use a graph or data log in RSView32. The controller is going to be a lot faster and not subject to aliasing or distortion effects in a trend.

What is the exact tag that is being displayed in RSView32 ? Is it "FIT_017.TOTALSTORE" (a DINT) or "FIT_017.TOTAL", a REAL ? We should measure as close to the display that is showing the anomaly as possible.

Because of the vintage of this controller, I would also recommend carefully checking the system for the "Atmel64" backplane bridge chip issue. It is very unlikely, but possible, for an incorrect value to be read through a ControlLogix buffer if a backplane bridge chip is failing.
 

Similar Topics

I am trying to add 9 DINT values with the CPT instruction in ControlLogix and I keep getting errors. I am just choosing each tag with an add...
Replies
13
Views
2,327
Good Morning , I am getting ready to install a Banner IVU Plus BCR in a ControlLogix . It seems like it is easier to install the IVU Plus...
Replies
0
Views
1,413
I am new to AOIs, and do not have a processor handy to test my program. I have a couple of simple questions, which I have not been able to find an...
Replies
10
Views
10,161
I have been using RS5000 for sometime now, since ver 11. Ver 16, now has the neat "add on" function. I have just started playing with this, and...
Replies
3
Views
6,210
Why does the controllogix redundancy modules use a single mode fiber vs multimode fiber?
Replies
1
Views
86
Back
Top Bottom