News:

  • March 23, 2023, 07:55:27 AM

Login with username, password and session length

Author Topic: Totalizing/Accumulating from an analog input  (Read 1953 times)

Jmcnabbcmi

  • Newbie
  • *
  • Posts: 1
Totalizing/Accumulating from an analog input
« on: October 12, 2018, 08:59:42 AM »
How do I totalize a running total from an analog input. I have a new water pump system with analog input in GPM that I need to accurately totalize the discharge gallons in order to shut off the pump and close the inlet valve once it hits the daily max volume due to regulatory limits. Then reset the totalizer once the 24 hr period is up to restart the pump. Currently we only have the analog input displayed flow rate in GPM.

MikeS

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 253
    • Host Engineering, Inc.
Re: Totalizing/Accumulating from an analog input
« Reply #1 on: October 12, 2018, 12:27:33 PM »
look at the INTEGRAT - Integrate over Time instruction
Good design costs a lot. Bad design costs even more.

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Totalizing/Accumulating from an analog input
« Reply #2 on: October 12, 2018, 02:40:22 PM »
On the AutomationDirect forum you indicated that you are using a Click. Are you thinking of changing to a Do-more?
An output is a PLC's way of getting its inputs to change.

Garyhlucas

  • Hero Member
  • *****
  • Posts: 385
Re: Totalizing/Accumulating from an analog input
« Reply #3 on: October 12, 2018, 09:16:17 PM »
look at the INTEGRAT - Integrate over Time instruction

It would probably pay for me to look closer at the instruction set as I do this by sampling right now!!