gamohunter
Member
We send wastewater to the City Treatment plant through a Flow Meter. I:15.5
I wish to total this data on a Daily and Monthly Basis.
I would like to display this data on a 30 Day Calendar in a Panelbuilder.
I built the screens and the logic is there collecting the flows, but not totalizing them.
The Term TOTALIZER has me confused a bit.
My estimation is that in theory
I can take the data of the flow meter which is variable and always changing.
Collect this data a Pre-Determined Rate. Say Every Second.
Move each reading into an Integer??? Or Float??? (I don’t know so I am asking)
Here is what
I am trying to do
0000 Is a pre-determined scaled output from a Flow Meter that goes to F8:57
Should I be doing the following set of ladder logic.
Option A
1) F8:57 data read and moved into a new data file every 1second
2) Continue this for 8 hours of seconds (to avoid going over memory problems)
3) Add all of the collected data together at the end of 28880 seconds
4) Move that total into a new Data Word
5) Clear those data areas and Repeat Steps 1-4 three times.
6) After it has completed three times which would be 24 hours Add each of the three “totaled” data words together and move into a data word that could be read into an area on the Panelview.
7)
Option B
1) F8:57 data is added to itself every 1second.
2) At the end of every 28880 seconds move that total into a Data word.
3) Use a counter that is activated by that move when the counter reaches a preset of “3” it enables
4) An ADD FUNCTION that adds the three collected data together and places them in a data word that would then be displayed on the Panelview.
Which way would you experts in flow meters do it out there? If any of you can print a piece of logic to a PDF and email it to me I would greatly appreciate it.
I wish to total this data on a Daily and Monthly Basis.
I would like to display this data on a 30 Day Calendar in a Panelbuilder.
I built the screens and the logic is there collecting the flows, but not totalizing them.
The Term TOTALIZER has me confused a bit.
My estimation is that in theory
I can take the data of the flow meter which is variable and always changing.
Collect this data a Pre-Determined Rate. Say Every Second.
Move each reading into an Integer??? Or Float??? (I don’t know so I am asking)
Here is what
I am trying to do
0000 Is a pre-determined scaled output from a Flow Meter that goes to F8:57
Should I be doing the following set of ladder logic.
Option A
1) F8:57 data read and moved into a new data file every 1second
2) Continue this for 8 hours of seconds (to avoid going over memory problems)
3) Add all of the collected data together at the end of 28880 seconds
4) Move that total into a new Data Word
5) Clear those data areas and Repeat Steps 1-4 three times.
6) After it has completed three times which would be 24 hours Add each of the three “totaled” data words together and move into a data word that could be read into an area on the Panelview.
7)
Option B
1) F8:57 data is added to itself every 1second.
2) At the end of every 28880 seconds move that total into a Data word.
3) Use a counter that is activated by that move when the counter reaches a preset of “3” it enables
4) An ADD FUNCTION that adds the three collected data together and places them in a data word that would then be displayed on the Panelview.
Which way would you experts in flow meters do it out there? If any of you can print a piece of logic to a PDF and email it to me I would greatly appreciate it.