No announcement yet.

Totalizing in Productivity 2K using a Prosense Flow Transmitter

  • Filter
  • Time
  • Show
Clear All
new posts

  • Totalizing in Productivity 2K using a Prosense Flow Transmitter

    I am doing some preliminary work on a project where I will utilize a Prosense Flow Transmitter (FSA1-42-27H) with a P2K PLC. This will be a bit new to me and I have begun to consider how to best write the code to totalize water flow in total gallons. Any suggestions and/or example code would be appreciated. Thank you all!

  • #2
    Hope this helps.
    Attached Files


    • #3
      Hey EthanG! Thank you! I will give this a look in the morning! Thank you very much!


      • #4
        Everything work out fine?


        • #5
          I'm trying to do something similar. I'm using IFM 4-20mA flowmeters and I've figured out the totalizing part. I have a task that executes every second and I can sum over the course of a longer time period to get a total

          However, what I'd really like to do is to produce a daily total and reset. How do I use the 'system time' in my ladder program? Ideally I want to start totalizing at 0:00:00 every day and reset at 23:59:59


          • #6
                Clock Hours  23    Clock Minutes  59    Clock Seconds 59             Store Totals and Reset
            ---------------]=[------------------]=[------------------]=[-----------------(^ OUT)
                Clock Hours  00    Clock Minutes  00    Clock Seconds 00             Do New Day's Totalizing
            ---------------]=[------------------]=[------------------]=[-----------------(^ OUT)
            Something like this?
            The 'Store Totals and Reset' tag would trigger whatever logging/saving you do and then trigger a reset of your totalizing for the day.
            The 'Do New Day's Totalizing would begin the totalizing all over. You will lose about 1 second of totalizing this way.
            Last edited by kewakl; 09-17-2016, 08:30 PM.


            • #7
              That would work! Thanks so much!