TIA Portal: PID Compact - How to program and use it!

Ғылым және технология

After some pre-work in the last videos, let's get our tank system running using a PID controller!
Contents:
- PID Compact
- Cyclic OB with 1ms cycle time
- Block parameterization
- Autoscale
- Block explanation on Inputs/Outputs
- Fitting the block to our tank system example
(- Troubleshooting)
- Testing the PID Compact block
If this video helped you, please consider helping me by joining my "GoFundMe" and donating a small amount to my cause. Link here:
www.gofundme.com/f/let039s-fi...

Пікірлер: 150

  • @mohamedadelelridy7033
    @mohamedadelelridy70333 жыл бұрын

    Thank you very much. by end of my headache day, I love to spend one hour on your informative videos releasing all the daily pressure. thank you Hegamurl

  • @kishorvalsalan1559
    @kishorvalsalan15594 жыл бұрын

    You are the best instructor with regards to automation tools. They way you present is just awesome.....

  • @matt20012000
    @matt200120002 жыл бұрын

    Awesome videos fella, I've used a few now and they have been amazingly helpful. As people have said before you teach the subject really well. Thanks.!

  • @jiiggsj
    @jiiggsj4 жыл бұрын

    Cheers mate. Your videos are very informative. All the best and keep passing the knowledge.

  • @XaviAllueva
    @XaviAllueva3 жыл бұрын

    Thank you Sir, I really like the way you explain and elaborate things in your videos

  • @pardeepgupta123
    @pardeepgupta1234 жыл бұрын

    Great job. I am chasing you in all tutorials

  • @armchairfreedomfighter
    @armchairfreedomfighter4 жыл бұрын

    Mate, you're such a good teacher. Thank you for all the uploads!

  • @hegamurl7434

    @hegamurl7434

    4 жыл бұрын

    Sure thing! As long as it's fun creating the videos and helps out, I'll keep them coming. But gotta take a week break, am on a business trip. But I plan continuing after

  • @matheusbarros5080
    @matheusbarros50802 жыл бұрын

    Thank you my friend, I've spent almost two days trying to configure the PID control without sucess. Now it's working......

  • @PeteVree
    @PeteVree4 жыл бұрын

    This is great! Thanks so much for continuing with the phenomenal Siemens PLC videos. I have learned so much from you. Keep up the awesome content!

  • @hegamurl7434

    @hegamurl7434

    4 жыл бұрын

    Thanks! I'll continue as much as I can! Also checked your channel, some good stuff on there too!

  • @avinashchandervigh2454

    @avinashchandervigh2454

    11 ай бұрын

    It is educative and simple to learn . Thanks.

  • @hakuzu88

    @hakuzu88

    6 ай бұрын

    I programed in the past in simatic manager , one line for scale and unscale to read data and control the analog input in fonction of the analog input value. I used scale bloc to read analog input value and used the output real value to the comparaisons blocs. I used compares blocs if input are for exmeple >than 50% so i used move fonction to put 10% to the data type in input and i used this input to the unscale bloc to control the the flow of my tank . At the end i have lot of comparaison bloc , if i have 5% i will open and analogic output to 75% and etc ..., i think the pid bloc work with the same focntion but with others bonus fonctions I can notice i didn't have tia portal in the past this is why i have to programm like that ^^

  • @ultimatetian
    @ultimatetian Жыл бұрын

    Siemens made really great product, and you made it more easier to use! I never thought PID can be this easy in Siemens PLC. I guess now my fan operation is really depend on my intermediate relay's life.

  • @anoop22march
    @anoop22march4 жыл бұрын

    One of the best teacher you are Sir

  • @claudio1371
    @claudio13713 жыл бұрын

    Great explanation about pids. Thank you

  • @Davidstinton
    @Davidstinton3 жыл бұрын

    Thank you awesome break down of how to use a PID

  • @christian_t7954
    @christian_t79542 жыл бұрын

    Thank you for the incredible explanation !

  • @electrocontrol.joseignacio7291
    @electrocontrol.joseignacio72914 жыл бұрын

    Fantastic video. Congratulations!!.

  • @505Nur
    @505Nur4 жыл бұрын

    I wish the best! Keep doing that!

  • @mustafardk
    @mustafardk3 жыл бұрын

    Thank you very much! Awesome guides! Why didn`t I find your channel earlier...

  • @santoshkumarpatro2772
    @santoshkumarpatro27724 жыл бұрын

    Great Job Sir...superb explanation....Hates off to you... Thanks ..

  • @user-cp2ii8cp8h
    @user-cp2ii8cp8h2 жыл бұрын

    Вы хороший учитель. Спасибо за видео.

  • @ajityadav1145
    @ajityadav11453 жыл бұрын

    Thanks a lot...i lerant so many things from your videos

  • @MisShooter
    @MisShooter4 жыл бұрын

    Great work! I really enjoy your video's.

  • @hegamurl7434

    @hegamurl7434

    4 жыл бұрын

    You are very welcome! Thanks for watching

  • @romangemo8103
    @romangemo81034 жыл бұрын

    Thank You very much for Your knowlage!

  • @TT_S90
    @TT_S904 жыл бұрын

    It is a great resource.

  • @wanderajoseph5151
    @wanderajoseph51513 жыл бұрын

    You are very good teacher sir

  • @vanjapermiakov6778
    @vanjapermiakov67784 жыл бұрын

    Wonderful tutorial! I wish I had such a teacher

  • @abdelmalek9682
    @abdelmalek96822 жыл бұрын

    Thanks Alot ma for your great lessons..!

  • @georgefouadfahmy2620
    @georgefouadfahmy26203 жыл бұрын

    Thank you for your information

  • @hocmaihocnua9195
    @hocmaihocnua91954 жыл бұрын

    Great! Thank you so much

  • @IK-qu9hw
    @IK-qu9hw4 жыл бұрын

    Very helpful. Thank you..

  • @Mltnzle
    @Mltnzle4 жыл бұрын

    das war Klasse danke :)

  • @thomasb4422
    @thomasb4422 Жыл бұрын

    That's a very good video! However one thing I'd change is the cycle time of the OB31. 1ms is really fast, and if you're using a slow PLC or a lot of PIDs the PLC could need more than 1ms to run the OB, which would cause an error. "Slow stuff" like this tank level and temperature can easily be controlled with a 100ms OB (this was kind of the "standart" with S7-300 and its OB35). Also if you're not using peripheral access to the In/Outputs there's also nearly no improvement in calling the OB twice as often as your PLC cycle time (e.g. if your average cycle time is 10ms there's almost no point in setting the OB cycle lower then 5ms). (the PLC will only update the values of IW and QW once it starts/finishes the OB1)

  • @MDArman-zi9se
    @MDArman-zi9se Жыл бұрын

    very good video

  • @framos9991
    @framos9991 Жыл бұрын

    Very educational! Thanks! 👌

  • @hegamurl7434

    @hegamurl7434

    Жыл бұрын

    You are very welcome!

  • @majidemami9187
    @majidemami91873 жыл бұрын

    i love u so much, thanx teacher

  • @user-bw1nm2wr1e
    @user-bw1nm2wr1e2 жыл бұрын

    thank you very much

  • @BetelgeuseX800
    @BetelgeuseX8004 жыл бұрын

    I like your vid. Thanks

  • @engr.akinfenwaabobarin7120
    @engr.akinfenwaabobarin7120 Жыл бұрын

    thanks very much

  • @imrebaksa7650
    @imrebaksa7650 Жыл бұрын

    Köszönjük!

  • @049-rizqipratama7
    @049-rizqipratama72 жыл бұрын

    thank you sir

  • @bazezikov15
    @bazezikov152 жыл бұрын

    your videos are god sent vielen danke bro

  • @hegamurl7434

    @hegamurl7434

    2 жыл бұрын

    You are very welcome! Thanks!

  • @gogreen83
    @gogreen834 жыл бұрын

    Thanks to inspired me............

  • @valdemargulenok7067
    @valdemargulenok7067Ай бұрын

    Thanks😊

  • @Gebzelimanda
    @Gebzelimanda4 жыл бұрын

    thank you mannnnn

  • @angelrivera3192
    @angelrivera31923 ай бұрын

    The same thing happened to you, the difference is that I was in the start-up with maximum pressure, I think this is part of the Siemens developers who must improve the software.

  • @dennisrubio2375
    @dennisrubio2375 Жыл бұрын

    we miss u bro

  • @EngASax
    @EngASax3 жыл бұрын

    that was a really nice video. I had actually done a similar simulation while learning TIA Portal programming, but I always faced the problem of simulating the input (PV). so I wanna ask, how did you manage to simulate the input to be proportional to the output but does not immediately follow it? thanks in advance

  • @kevinpena105
    @kevinpena1053 жыл бұрын

    Thanks so much. Finally put my PID test to work after a long (like seriously a loooong time) trying. But i have a question regarding not the PID itself but your test program (OB1). How do you take an integer from the HMI so you can select what option (Auto, Manual, PID, 0 Value) you want to work with? I was trying with the "Set bit in tag" event but all it was doing was taking the integer and using it as a power of 2 (For example, choosing the option with set as an 3, made the tag take a 8 value). Thank you beforehand

  • @marciocaster1524
    @marciocaster15243 жыл бұрын

    Hello! Great channel and videos! I have learned so much from you! I have a question: how should I configure cyclic interrupt to have 3 simultaneous Pid Compact? By example 3 tanks with different sensor values and set points? I tried to include 3 pid compacts in one cyclic interrupt and also 3 cyclic interrupts with one pid compact each with different phase offsets. But didn't work. They all stuck and stopped controlling the outputs. Thanks in advance!

  • @sanilalkuttimon1755
    @sanilalkuttimon17553 жыл бұрын

    Great,❤️❤️❤️

  • @hubertwisniewski4376
    @hubertwisniewski43764 жыл бұрын

    THX

  • @HamedAdefuwa
    @HamedAdefuwa2 жыл бұрын

    this video would be amazing if we had the previous setup video of all the "already prepared stuff".

  • @hegamurl7434

    @hegamurl7434

    2 жыл бұрын

    If I remember correctly I made a livestream about just that! Should be this one: kzread.info/dash/bejne/i2hlrNGqXdOtcrQ.html

  • @007Lifo
    @007Lifo4 жыл бұрын

    Very Good Lesson. I have searched between videos for the program logic and Hmi screen for this video to apply it , I couldn't find them. Are they available ? I only could find the analogue input and output scaling but i couldnt find the program logic to operate PID. Thank you in advance.

  • @sanjar.mambetisaev
    @sanjar.mambetisaev4 жыл бұрын

    hi, very good videos, now I need to work with PID but I met some problems , PID works just when I press "start" button in comissioning windows, but without this operation it doesn't work.

  • @martinnjoroge6006
    @martinnjoroge60063 жыл бұрын

    Thanks for the video. How would you configure the runtime wincc

  • @stefanhorn2945
    @stefanhorn29454 жыл бұрын

    Thanks for you Videos and the very good explanations. Do you have Videos about Node-Red on plc and Data-Logging on HMI, i need to log ca. 10 values every second to hmi->USB-Stick. Is there a posibility to use e.g. array and move them to USB-Stick?

  • @binarynumbers7681
    @binarynumbers76812 жыл бұрын

    Hey thanks for this wonderful tutorial. I’d like to try it out myself but I’m missing out your simulationblocks. Is this something you would like to provide…? 😅 Would be so thankful.

  • @beast123im
    @beast123im4 жыл бұрын

    Kindly share the link of how did you create this program of tank I couldn't find it in your tutorials. Thankyou for your time, your videos are really helpful. Happy New year from Duomo di Milano.

  • @hoangviettran4074

    @hoangviettran4074

    4 жыл бұрын

    it's the most mystery of his previous video when he was saying that

  • @gercekamerika

    @gercekamerika

    3 жыл бұрын

    After a year, did you find it?

  • @isaacortegaromero5269
    @isaacortegaromero52694 жыл бұрын

    An excellent video! But I`m having some problems for connect the variables with the HMI, specifically with the graph, Please, Could you help me?

  • @dsaasd5381
    @dsaasd53814 жыл бұрын

    Hey, I'm just wondering if you could make source code of the testing environment public. Do you think is it possible? It would help my final a lot.

  • @renatogoncalves5931
    @renatogoncalves59314 жыл бұрын

    TOP

  • @elvisnzekwe3700
    @elvisnzekwe3700 Жыл бұрын

    Hi Hegamurl, love your vids! I'm currently doing a school project using an S7-300 controller, do you think you could make a vid explaining how Cont_C is used?

  • @abdengineer6225
    @abdengineer62254 жыл бұрын

    hello i have this question let us assume that the pump wich fill the glass had a different behavior during time maybe it related by another store how will the pid treat that

  • @Sh_Firouz
    @Sh_Firouz7 ай бұрын

    Herzlich Dank

  • @fverboven
    @fverboven Жыл бұрын

    Hi Great video ! I had just one question Shoud the tme for the cyclic interupt always be set to 1ms? In some video's from siemens they set 100ms What is the correct time ? I m a bit confused as i m a beginner Thank you very mubh

  • @nanjarsyabanul8301
    @nanjarsyabanul83013 жыл бұрын

    I think you should use ziegler nichols method to get starting parameters. Thank for your great video sir :)

  • @hegamurl7434

    @hegamurl7434

    3 жыл бұрын

    CHR would also work, but yeah... calculating some parameters beforehand is useful! I also made a video on the "autotuning" function of the PID Block

  • @nanjarsyabanul8301

    @nanjarsyabanul8301

    3 жыл бұрын

    Sounds good...👍 thanks again sir. I'll watch it

  • @Alex-pz7kr

    @Alex-pz7kr

    3 жыл бұрын

    What's the method?

  • @ilhamrahmatmuharam8501
    @ilhamrahmatmuharam85014 жыл бұрын

    Sir, if I use PER input and output do I have to make a function block for both?

  • @hericonan9
    @hericonan93 жыл бұрын

    How to show PID setting in HMI? Which the tag we can use?

  • @aamirawan7998
    @aamirawan79983 жыл бұрын

    Hello! How are you changing the "setpoint" of PID from HMI? I don't see a setpoint tag in the "plc tags" that i can associate with HMI to change the value from there. How to do it?

  • @JachinDevasahayam
    @JachinDevasahayamАй бұрын

    THIS GUY IS GANGSTER

  • @industrialautomation3470
    @industrialautomation347010 ай бұрын

    The simulation of PID_Compact V2.x with PLCSIM for CPU S7-1200 is not supported. PID_Compact V2.x can only be simulated for CPU S7-1500 with PLCSIM.

  • @rogeralosilladargent4068
    @rogeralosilladargent406811 ай бұрын

    Hello, one question. Can the 100% output of the PID be scaled in any other FC block?

  • @karoliskontrimas5118
    @karoliskontrimas51184 жыл бұрын

    Hi I have a question: If I have in my program more then one PID controller, do they have to be in separate cycle interrupts or on the same?

  • @hegamurl7434

    @hegamurl7434

    4 жыл бұрын

    They can be in the same, no problem

  • @ud9258
    @ud92587 ай бұрын

    Vielen Dank erstmal für deine Videos. Ich habe eine Frage. Wie kann ich bei pid Regler eine mindestdrehzahl programmieren? Der Regler startet fährt auf startdrehzahl danach übernimmt der Regler. Vielen Dank.

  • @nitolsaha1924
    @nitolsaha19243 жыл бұрын

    I have a question. How to stop and start PID Block with condition? Example: If my temperature goes out of range PID output is deactivated and then restarts again when temperature is in range.

  • @pauldahlman4825
    @pauldahlman48253 жыл бұрын

    what was the video that shows how you created the code for this simulator. Thanks

  • @ggchavhan
    @ggchavhan2 жыл бұрын

    what if its inputs out of range at that PID block need to start manually from configuration window?

  • @gregorythompson6499
    @gregorythompson64992 жыл бұрын

    What do you use to simulate the PID. Is it a Lsim function or something you wrote yourself?

  • @alihajiaghaei7424
    @alihajiaghaei7424 Жыл бұрын

    Hi. It was perfect. I have some problem with tuning. When i start tuning i face with error: the out put value limit are not configured correctly or the actual value does not react correctly. How shoud i put Sampling time

  • @dmuzina
    @dmuzina3 жыл бұрын

    Why PID must be in cyclic interrupt? Why it can not be in normal block? Thanks

  • @lucianogutierrez5259
    @lucianogutierrez52593 жыл бұрын

    Hi, could you tell me how to change buttons size, in the curves? thanks

  • @levietpro87
    @levietpro874 жыл бұрын

    Kindly explain how to make io field P, I, D value at HMI

  • @rafo21pe
    @rafo21pe2 жыл бұрын

    hi great teacher i did follow all the configuration but somehow i can not start the pid controller . i can not change to run like you did on the 16:32 minute can you please tell what is the solution ?

  • @petrkamin

    @petrkamin

    4 ай бұрын

    The Compact PID controller is in disabled mode - 0, regardless of the settings. Only downgrading the Compact PID from V6.0 to V3.0 in Technology blocks enabled the automatic mode. Is this a bug or a feature? Does somebody know?

  • @michaelepstain7946
    @michaelepstain79464 жыл бұрын

    what is the link to last video?

  • @user-eu2ez5bt6x
    @user-eu2ez5bt6x Жыл бұрын

    Good video))

  • @tarekdableh1174
    @tarekdableh11744 ай бұрын

    please what is the best way to add 48 pid control loop (temperature control) and make it works in groups (so it will not swicth on all together) and thanks

  • @Lyrics_And_Harmony
    @Lyrics_And_Harmony2 жыл бұрын

    You should mention that its NOT possible to simulate PID with an s7-1200 PLC. Ive been going at it for hours trying to get this to work but finally found out its not possible on the siemens Forums. You would need to use a 1500.

  • @MarkNante

    @MarkNante

    Жыл бұрын

    thank you Sir, That's the information I needed

  • @petrkamin

    @petrkamin

    4 ай бұрын

    PID_Compact V1.2 is supported by S7-1200 (under Technology blocks Compact PID Version V3.0).

  • @Lyrics_And_Harmony

    @Lyrics_And_Harmony

    4 ай бұрын

    @@petrkamin i was referring to simulation... as in plcSim

  • @kaakos9273
    @kaakos92734 жыл бұрын

    splendid video thank you ......... i tried to find in internet an information about the basic parameters for PID in case of (Pressure , Volume , heating ...) which should be used just as start parameters befor doing pre-tunning resp. fine-tunning . would guide me to some usefull resources especially for first time PID commissioning .??? Thx ®ards

  • @Zwiggity

    @Zwiggity

    4 жыл бұрын

    The PID values vary depending on the application, but I advice you to test the values on a simulation model before implementering the control law on a physical system to avoid the potential of damaging components. As far as PID tuning goes, I recommend looking up the "Ziegler Nichols tuning method".

  • @hegamurl7434

    @hegamurl7434

    4 жыл бұрын

    Yep, ZN is a pretty standard method of tuning your system. It is based on some mathmatical formula, which are not to difficult to apply. The strange thing is that they are also based on some "tested constants"... so basically not 100% accurate (which you can never actually get). In the newest video of this series I show how you can use a "self tuning" method that is integrated in TIA Portal and newer PLC's that I prefer using rather than the manual ZN method

  • @spartakous
    @spartakous3 жыл бұрын

    Hello!!! Could you please explain this to me with a sample? The difference between setpoint and process value is greater than 30% of the difference between process value upper limit and process value lower limit.  The difference between setpoint and process value is >50% of the setpoint

  • @Reaper0931
    @Reaper09315 ай бұрын

    Hey Hegamurl, how can I put the input in temperature and get % ?

  • @andrevangijsel957
    @andrevangijsel9575 ай бұрын

    Hey I am playing around with the pid compact in tia V17 on a S7-1200 PLC. What I do not understand is that the control output is still quite high ( 67.50) while the PV is already 31.4 celcius and the SP = 30. Played around with Kp, Ti,Td but the controller output does not return to below 10% if the PV comes close to SP(0.2C). This someout bugs me maybe you can explain. Thanks

  • @chinonsoemmanuel1906
    @chinonsoemmanuel19063 ай бұрын

    Can you share how you built the display?

  • @adammusthofabillah7762
    @adammusthofabillah77623 жыл бұрын

    how to used redundant system in plc s7-1200 🙏

  • @chitimelasimeaomaunze2578
    @chitimelasimeaomaunze25783 жыл бұрын

    How can i have your course fro the start?

  • @RobNO
    @RobNO4 жыл бұрын

    When I'm going to the tuning window, the online status of controller is showing the setpoint value but the input stays to 0. I can't start the PID on this window. Hence I'm changing the input in my simulation, it does not move in the tuning window (it moves fine on the PID ladder block). I did not program any "behaviour model" but it should still moves the input and the output right? I have 0 reaction of the controller... Edit: can it be due to the ":P" next to my variable name? Because the input is an ID address form a high speed counter

  • @TomMeeusvd

    @TomMeeusvd

    3 жыл бұрын

    Did you already find the problem? I have the same issue.

  • @RobNO

    @RobNO

    3 жыл бұрын

    I don't remember sorry. It was for my master thesis one year ago

  • @Juan_Argento
    @Juan_Argento7 ай бұрын

    Hello how are you...?? This PID and HMI project can be done on S7 1200 1214 ac/dc/rely..? Greetings from Argentina

  • @albert4704
    @albert47042 жыл бұрын

    i have v16 and a don't know why I cannot open technology objects, each time I try to open add a PID function my appears an error and my program get freeze and close.

  • @90mantry
    @90mantry4 жыл бұрын

    i have a problem with the pid block . i have set all the parameters accordingly but my controller is disable - inactive . how to resolve the issue...kindly guide me

  • @TomMeeusvd

    @TomMeeusvd

    3 жыл бұрын

    Did you already found the problem?

  • @marcodenora8979
    @marcodenora89793 жыл бұрын

    Can i have the full project please?

  • @kdldllofjfkdkdodkdk4096
    @kdldllofjfkdkdodkdk40963 жыл бұрын

    I have the same problem that u have my output in pid is always 0 why !!!!! What did u do in 5 minute for solve the problem.....'' Sorry for my english ''

  • @Huyautomation2901
    @Huyautomation2901 Жыл бұрын

    Could u do the series about making HMI professional

Келесі