Siemens PLC

Hello. I am a new programmer. My client wants me to modify plc code and i dont know how to start.

This is what he wants,
1. Ok, that should be good enough for now. I'd like you to create a function in the software to run the booster pumps at a set pressure, with scaling on the pumps.

2. "I need an input on the interface to be able to set the pressure, the booster pumps need to maintain the setpoint pressure, and I would like for the system to only use the pumps required for maintain the pressure, ie. when the pressure drops with one pump running add another pump."

Can you guys please help me on how to start this project, I have the existing code ready.

Thank you so much
 
This looks like a pump station, so I'm assuming here that pumps are driven by inverters, and are all of the same type and are centrifugal.

You should start by familiarizing yourself with PID controllers. This is going to be the core of your logic. With it (PID) you can calculate some index value representing demand for pumping capacity.

Adding and removing a pump from a running set can be based on the calculated index value - when the index value approaches maximum, that is the moment to add another pump. When it drops below a certain value - a pump can be removed. Using thresholds like this is the simplest solution, but is either unreliable (the pump will be disconnected too early) or inefficient (the pump will be disconnected too late). A more advanced approach requires examining the pump characteristics in the third dimension (rotational speed), as manufacturers usually provide only the pump performance characteristics at rated speed (grid frequency). Then the characteristics can be used to calculate better threshold values.

Since I assumed centrifugal pumps, all working with a common manifold - you should run all the pumps with the same speed. If one of them will be running fast, the other slow, the slow ones will contribute nothing to the process (they will generate to little pressure to open the check valve).
So you need a formula to convert the index value to a setpoint for all inverters given the number of pumps running - to minimize instabilities to the process when attaching or detaching a pump from the running set.

From my experience, it is a good practice to implement pump switchover, to ensure consistent wear among all the pumps. This technique also helps ensure that every pump is periodically started, as this minimizes the risk of seal seizure and damage to a stagnant pump.

There is more to this topic, such as reactions to a single pump failure or service disconnection allowing for immediate response without waiting for the controller to ramp up.
 
The key will be managing transitions and hysteresis. There will be pressure spikes/dips if you use set speeds as indicated above, and you have to account for some deadband as you don't want secondary pumps short cycling on and off to achieve that final pressure.

Really need to know alot more about the process to comment further:

What's the anticipated range of pressure?

What external influences cause pressure variations?

What amount of error is tolerable and for how long?

Confirm assumptions that these are centrifugal pump on inverters and that you have speed control of the inverters.
 

Similar Topics

Hi all, I've built a free, browser-based trainer for people starting out in PLC programming, and I'd like feedback from people who do this work...
0
Replies
1
Views
Hi everyone, I am urgently looking to purchase a Siemens S7-200 CPU 224 DC/DC/DC PLC, part number 6ES7 214-1AD23-0XB0, as a spare for an existing...
3
Replies
169
Views
Hello everyone, I am facing a problem with an MTP700 HMI connected to a Siemens S7-1200 PLC. I have configured the communication, PLC tags, and...
3
Replies
269
Views
Hello all, I have a siemens 1200 PLC can't connect HMI KPT900 basic. my laptop can download program to PLC and also can download program to HMI. I...
1
Replies
209
Views
We need to integrate a sorting station. 4 barcode scanners (probably cognex), 2 scales, 2 Zebra Printers, 4 HMI, 1 PLC Also some physical...
13
Replies
849
Views
Top