RSLogix 5000 Totalizer Question

smakdown61

Member
Join Date
Aug 2009
Location
NC
Posts
90
I'm adding in some additional totalizer code using an existing template. The person who did the existing code used a gain of .0167 and a time base of zero (seconds) to convert gal/min to gal. It's also in the continuous task. While this seems to produce an accurate total, shouldn't this function only be executed in a periodic task once per second since the time base is in seconds?
 
What you say makes sense, the instantaneous flow x the gain incremented on the second would give you a totalised value... When you say template, are you talking about an addon instruction ?? If so maybe the time base is internal ??
 
What you say makes sense, the instantaneous flow x the gain incremented on the second would give you a totalised value... When you say template, are you talking about an addon instruction ?? If so maybe the time base is internal ??

By template I just mean how a previous person wrote the code. I'm just wondering if the totalizer function needs to be in a 1 sec periodic task or should stay in the continuous task.
 
Yes ideally you want functions like totalization in a periodic task. The time base can vary, you just need to convert your flowrates accordingly. If a flowmeter analog input converts to gal/min, you aren't constrained to 1 minute periodic tasks. Convert it to seconds, millisecond...etc. The time base may influence your accuracy so you need to be fast enough to be accurate but slow enough to not add unnecessary overhead to your processor. If you set your periodic task to 10ms, but your analog input only updates data every 100 ms your periodic task might be executing more times than it really needs too.
 
Is a bit confusing that the code works in the continuous task thou ? Must be a 1 second interval somewhere, or its not working as you suspect. The other way of totalising is to accumulate a fixed volume and vary the timer base on the instantaneous.

Have you seen the ladder running ??
 
Is a bit confusing that the code works in the continuous task thou ? Must be a 1 second interval somewhere, or its not working as you suspect. The other way of totalising is to accumulate a fixed volume and vary the timer base on the instantaneous.

Have you seen the ladder running ??

I've watched it running and it seems to be accurate in the continuous task. It sounds like the totalizer function will work correctly as long as my time base is set correctly. In this case, I'm using gal/min input into the totalizer configured with time base in seconds then set the gain to 1/60 to convert to gal.
 

Similar Topics

Hello. I wanted to write the logic of the flow totalizer and the flow itself for self-education in RSLogix5000 V20.01 software. After reading the...
Replies
13
Views
7,539
Hello, we have RSLogix 5000 Standard Edition (version 15). Some of our PLCs have Function Block Diagrams and Totalizers, but the software won't...
Replies
2
Views
5,422
I am using two flow totalizers in my program. One is reseted daily, and one is never reseted (Big Total). The EnableIn and Flow input is the same...
Replies
6
Views
3,300
I am using totalizer in RSLogix 5000 function block to get total flow in panelview plus. Unfortunately I had to download old backup of plc...
Replies
1
Views
4,541
Back
Top Bottom