Hello all.
I am working on a project where there are 7 vents which have a cooling function with a S7-1200 station and a KTP Basic panel (1st.gen)
The vents turn on one after another based on the temperature in the sistem.
All the vents have the calculation of working hours. The client wishes that every 2 weeks the priority of the pumps changes so that the pump with the lowest operating hours starts first, the pump with the second lowest working hours starts second and so on to the last pump that has the highest working hours.
So far I have made a logic for 3 vents that can define the vent with the highest, lowest and the mid operating hours. I did this with the min and max functions in the PLC.
I can't seem to figure out a good way to define the priority of Xnumber of vents, or when the number of vents is bigger than 3. Has anyone ever had to make a similar logic and can point me in the right direction.
If anyone would like I can share the code that I have so far, but I would need to write coments in English so that you will easily understand my program.
Best regards
I am working on a project where there are 7 vents which have a cooling function with a S7-1200 station and a KTP Basic panel (1st.gen)
The vents turn on one after another based on the temperature in the sistem.
All the vents have the calculation of working hours. The client wishes that every 2 weeks the priority of the pumps changes so that the pump with the lowest operating hours starts first, the pump with the second lowest working hours starts second and so on to the last pump that has the highest working hours.
So far I have made a logic for 3 vents that can define the vent with the highest, lowest and the mid operating hours. I did this with the min and max functions in the PLC.
I can't seem to figure out a good way to define the priority of Xnumber of vents, or when the number of vents is bigger than 3. Has anyone ever had to make a similar logic and can point me in the right direction.
If anyone would like I can share the code that I have so far, but I would need to write coments in English so that you will easily understand my program.
Best regards