totalizer

alennamo

Member
Join Date
Mar 2022
Location
modesto
Posts
7
hi i have RSrslogix 5000 totalizer and i have the input GPM
and i need the totalizer to be in MGD i did use the time base 1 as minutes and the Gain 0.00144 but it still not reading correctly i noticed there is two parameter RTSTime and RTStime stamp and i dont know if these parameter have to do anything with the setup so would you please help me with this
 
hi i have RSrslogix 5000 totalizer and i have the input GPM
and i need the totalizer to be in MGD i did use the time base 1 as minutes and the Gain 0.00144 but it still not reading correctly i noticed there is two parameter RTSTime and RTStime stamp and i dont know if these parameter have to do anything with the setup so would you please help me with this

Hi, so in the instruction help for V. 20.04 I read where there are several constants for time -- 1 for minutes, 2 for hours and 3 for days. Hope this helps. I would say that after you get a daily total then divide by 1 M so one would have a manageable number.
 
so the operation is like that
we have membrain that runs every 12 minutes and they need they total flow when its in running mode but the flow is in gpm and they need the totalizer in MGD attached is the totalizer parameter i did change the time base and gain for experimenting purposes and see if it will work

totalizer parameter.JPG
 
Last edited:
The value of 0.00144 is the conversion factor between gallons per minute and Million Gallons per day, but both of those are rates. The gain factor that the totalizer is looking for is multiplied by the analog signal to get the amount to add to the running total.
For example, if the analog value represents GPM and you are taking a sample every 5 seconds and you want the total in gallons, you would multiply the sample by 0.08333 since each sample represents one twelfth of a minute, thus it will take twelve samples to get one minute's worth of volume.
 
This may be a silly suggestion, but can't you do the math outside the totaliser block? I'm thinking you'll be resetting the totaliser at a fixed interval as well.
 
we have membrain that runs every 12 minutes and they need they total[izer?] flow[?] when its in running mode but the flow is in gpm and they need the totalizer in [units of] MGD [sic]

The documentation for the TOT function block instruction is here; the explanations of what TimeBase and Gain parameters are here.

Since we are changing the volume units from gal to Mgal, the Gain parameter should be 1.0e-6 (= Mgal/gal); the time units are irrelevant to the Gain parameter.

The input (gpm) time units are minutes, so the TimeBase parameter should be 1; there is no time units on the output from the TOT block, so D (Day) has no meaning, see TL;DR below.

The Timing Modes, controlled by the TimingMode parameter and possibly using the RTSTime and RTSTimestamp parameters, are explained here. If there is not a timestamp on the input gpm value, then RTSTime and RTSTimeStamp are irrelevant, and it is likely that Periodic Timing Mode (TimingMode input parameter value = 0) is the choice here. Enabling instruction should either be synchronized with, or be one-shot'ed at 1/5-1/10, the gpm input sample cadence; the instruction should not be enabled for every scan cycle of the continuous task, or roundoff errors will occur.

The limitations of IEEE-754 floating point representation (32 bits: 1 sign; 8 exponent; 24 mantissa) used in the REAL data type should be considered. For example, if the TOT block is enabled (executed) at 1Hz over the course of a day, then the gpm input values at the beginning of a day will have effective errors (resolution) of ~60ppb (2-24, assuming similar magnitudes of all gpm input values throughout the day), while values at the end of a day will have effective errors of about half a percent (86400 / 224). It might be more accurate to take an average of instantaneous gpm over a minute and enable the TOT block once per minute i.e. each time the average is calculated; the effective errors of such one-minute averages at the end of the day will be about a hundredth of a percent (1440 / 224).

TL;DR

If the input in units of gpm, Gallons Per Minute, then the units of "totalizer" cannot be MGD, Millions of (or Mega) Gallons Per Day.

MGD is an instantaneous flow rate, as is gpm; the multiplicative conversion factor from gpm to MGD is 0.00144 (Mmin/d) as noted. MGD is not a volume.

The TOTalizer block will integrate flow rate, in units of gpm, over time to give a volume i.e. gal (gallons) or Mgal (Mega-gallons), not a flow rate.

Perhaps the totalizer is reset daily, so the final number is Mgal (volume) over a day, but that is not MGD (instantaneousflow rate).

So we need clarification: do "they" want an instantaneous flow rate in units of MGD, or do "they" want an accumulated (totalized) volume in units of Mgal?

Also, we still know neither the data types nor the tag names of the input and output analog values to the TOT block.
 

Similar Topics

Hi, So we have a flowmeter installed but doesnt have a feature to send a pulse to plc for it to compute the total volume. I want to somehow...
Replies
3
Views
574
How is it going y'all? So We have had a pesky problem with an EH 300 flow meter. We are using EIP to reset the totalizer, and for some reason the...
Replies
3
Views
784
Good morning, I have a flow meter that has an output pulse configured to 378.541 liters per pulse. My question is, do I just count the pulse per...
Replies
19
Views
1,794
Good morning, I have a flow meter that that has an output with is a pulse. The pulse is configured to 378.541 liters per pulse. My question is...
Replies
6
Views
701
Hello You guys helped me with a similar issue some time back on storing totalized values to different tags each month. I have a similar issue...
Replies
19
Views
1,487
Back
Top Bottom