How calculate pump working hours in micrologix 1400 base on boolean status

jamshidzade

Member
Join Date
Feb 2021
Location
California
Posts
3
I have a pump with ON off status in PLC micrologix 1400
my question is how I can calculate working hours base on ON/off status
How I can use the timer and add time value each time that pump is on or off
 
Okie's example is great, I personally use two cascading counters triggered off of a RTO.DN bit. Counter 1 counts 0-32767, and when it reaches 32767 it increments the second counter and resets itself. The total is then calculated as:

Counter1.ACC + (32767 * Counter2.ACC)

This gives a max of 1,073,709,056 counts, which if your pump lasts that many hours, you've definitely gotten your money's worth. If you really needed more than that you could implement a third counter. I've used this logic frequently for number of starts, flow totalizing, and running hours. Number of start and flow totalizing bypass the RTO, just the start/flow total pulse bit into a one-shot, straight into the counters.

Again, Okie's example is probably a bit more elegant, but I frankly haven't experimented with long integer (LINT) data yet. This was my workaround for the limitation of 0-32767.

FlowTotal.JPG RunningMinutes.JPG
 
I use this method. You would reset your X100 counter however you wish. It has always worked well for me, and can be put into an HMI with relative ease.
Also, the timer base would be 1.0 for the RTO. I set it to 0.01 for fast testing purposes.

Capture.PNG
 
Last edited:

Similar Topics

Hi, I've been asked to display the pump efficiency on our HMI system (iFIX). They have requested a kind of bar graph to indicate if it's running...
Replies
6
Views
2,438
Hi guys, For the electrical current consumption calculation for a metering pump, does anyone know how to get the peak current & fuse ampere -...
Replies
2
Views
1,897
Hi everyone, This is my first time posting, so please forgive any omissions or mistakes. I am attempting to control the velocity of a stepper...
Replies
18
Views
958
Good morning, I have a question. I don't know much about ST yet I would like to calculate the average number of products per hour. how do I do...
Replies
22
Views
2,942
Can someone help me with this? I'm no good at SCL - virtually everything I've done so far has been ladder logic. The return value from the...
Replies
13
Views
1,101
Back
Top Bottom