Setting up a "virtual" meter

rguimond

Lifetime Supporting Member
Join Date
Jul 2009
Location
Escuminac
Posts
666
I'm strugling with developing an easy method to determine the volume of a product delivered to various tanks. I don't have a meter, but the tanks are fed (one at a time) from a fixed-displacement pump running at 16860 litres / hour (4.6833 litres / second). The logic is simple - XIC if the inlet valve to a particular tank is open and MUL 4.6833 by the number of seconds the valve has been opened. My problem is that the SLC 5/05 processor I'm using doesn't keep time very well. The RTC is great, but setting up a timer that starts once the valve opens tends to throw the calculation way off within an hour (or less).

I would appreciate your feedback because I don't want to invest a bunch of time into this if there's an easy solution I'm overlooking. Here is my preliminary plan on how to proceed:

Save the value S:40, S:421 & S:42 into N registers when the valve opens, subtract these values from the current values of S:40, S:41 & S:42 and convert to seconds to come up with a multiplier.

Of course, this can lead to troubles, especially if the timer rolls over @ midnight.

The ultimate objective is to calculate a virtual level for all four tanks by comparing what was delivered to them to what was drawn from them.

Thanks for your help.
 
Monitor the elapsed time in a "timed interrupt routine" [STI] may be another way

Regards
_______
 

Similar Topics

I know many people here use virtual machines in some form or another. I use them to run automation software on win 7 and vista systems. My...
Replies
6
Views
4,646
Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
32
Views
828
SELECTED NEW FILE SELECTED PROCESSOR TYPE SELECTED I/O CONFIGURATIONS IM UNABLE TO CONFIGURE MY I/O’S. I HAVE A PAPER COPY OF A PROGRAM AND I...
Replies
0
Views
81
Does Rockwell still offer reset codes for old school Master Disk floppy's? In a bind and need to reset the activation disk soon and to be pointed...
Replies
9
Views
230
Hello, I am in possession of a WAGO PFC 200 750-8216 which I was successfully able to set up as a Modbus RTU Master to a slave device using...
Replies
0
Views
83
Back
Top Bottom