5/30/2014 6:19 AM | |
Joined: 2/12/2014 Last visit: 5/28/2023 Posts: 158 Rating:
|
please give me algorithm and simple PID program |
5/30/2014 8:35 AM | |
Joined: 1/5/2011 Last visit: 3/13/2025 Posts: 815 Rating:
|
Hi Edwin, Gladly enough Step7 has a function which takes care of the PID control. So it's not nessecary to create your own function so you don't really need to have the algorithm to set up the PID controller. Now offcourse I'm glad you ask for the algorithm because it's essential to understand how the PID controller works. Can you please mention which PLC you are using, is it a S7-1500, 1200 or 300, 400? The reason I ask is because the PID blocks for the S7-300/400 are different from the S7-1500/1200. For S7-300/400;Depending on the application you can chose between: - TCONT_C:The CONT_C instruction is used on SIMATIC S7 automation systems to control technical processes with continuous input and output variables. - TCONT_CP:The instruction TCONT_CP is used to control temperature processes with continuous or pulsed control signals. For S7-1200/1500: - PID-compact: provides a continuous PID controller with integrated tuning. You can alternatively configure a pulse controller. Both manual and automatic mode are possible. - PID-3step:provides a PID controller with tuning for valves or actuators with integral response. I advice if you want to set up a PID controller take a good look at the manuals, the tia portal help-function also contains a lot of useful information. If you have a 300/400 and you are going to use TCONT_CP, this is the algorithm behind it: You can find more info here :Description TCONT_CP As you can see the standard PID algorithm is used here.
Also chech out this thread by Pegaia: Hope this helped
|
Keep it simple and on-topic. |
|
5/30/2014 8:56 AM | |
Joined: 1/28/2009 Last visit: 4/22/2025 Posts: 6867 Rating:
|
To add small point regarding post of our friend "Jens_app" , In my point of view an algorithm is more complex than a formula in time domain.An PID algorithm consists of
Please note, the core calculation of an algorithm is finding P_Part,I_Part and D_Part and I am sure there is no formula to find the result.All iterative neumerical calculation with some concerns with each part for proper operation the whole. I still believe , my concise description is still Valid! No need to know inside PID and search for samples! Have Fun! Hamid Hosseini |
This contribution was helpful to
1 thankful Users |
5/30/2014 8:57 AM | |
Posts: 59 Rating:
|
hi dear ,PID Controller Loop Function its ready made FB 41 CONT_C WIth Tune P I D Enable Parameter Please FInd Attachment Helpfull For U regards shailesh |
Follow us on