I have six single memory locations receiving the number of hours that six

piscis

Member
Join Date
May 2003
Posts
241
I have six single memory locations receiving the number of hours that six pumps have been ran for. I need to know which of these pumps hast the highest amount of hours, which is second, third, fourth, fifth and sixth.

The reason I need this data is so the next day I will be able to put to work the pump with the least amount of usage hours.

Any help will be highly appreciated.

PLC IS AD 260 CPU
 
Try writing it out in pseudo code:

Code:
Reg1 := pump1_hours
Primary_pump := pump1
If pump2_hours < reg1 then
    Reg1:= pump2_hours
    Primary_pump := pump2
end_if
If pump3_hours < reg1 then
    Reg3:= pump3_hours
    Primary_pump := pump3
end_if
If pump4_hours < reg1 then
    Reg1:= pump4_hours
    Primary_pump := pump4
end_if
If pump5_hours < reg1 then
    Reg1:= pump5_hours
    Primary_pump := pump5
end_if
If pump6_hours < reg1 then
    Primary_pump := pump6
end_if

Then you can expand the same concept to get secondary pump, tertiary pump, etc.
 
Last edited:

Similar Topics

Hi, I have an iFIX 5.5 project (Windows 7) that needs to be updated to version 6.5 (Windows 10). iFIX communicates with the "Siemens Industrial...
Replies
1
Views
150
Hello all, I'm using the SIX driver with Fix. When I configure the SIX driver is says that it opens the TCP/IP connection via 0.0.0.0 and I do...
Replies
2
Views
1,542
Hello friends i want to know how can i establish an communication between Cimplicity for example 8,2 and PLC GE Fanuc serie 6 please the pinout...
Replies
4
Views
2,062
can you help me with this one guys using fluid sim. This is for my bring home exam. providing a problem description, schematic...
Replies
5
Views
2,449
Dear all, I'm trying to upload ladder logic from an obsolete PLC manufactured about 30 years ago. It's GE Fanuc Programmable Controller...
Replies
5
Views
2,971
Back
Top Bottom