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

Поділитися
Вставка
  • Опубліковано 30 вер 2024
  • 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.c...

КОМЕНТАРІ • 154

  • @PeteVree
    @PeteVree 4 роки тому +43

    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 роки тому +5

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

    • @Prithvi_Power_Engineers
      @Prithvi_Power_Engineers Рік тому

      It is educative and simple to learn . Thanks.

    • @hakuzu88
      @hakuzu88 8 місяців тому

      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 ^^

  • @beast123im
    @beast123im 4 роки тому +13

    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 роки тому +2

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

    • @gercekamerika
      @gercekamerika 3 роки тому

      After a year, did you find it?

  • @industrialautomation3470
    @industrialautomation3470 Рік тому +1

    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.

  • @Lyrics_And_Harmony
    @Lyrics_And_Harmony 3 роки тому +4

    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 6 місяців тому

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

    • @Lyrics_And_Harmony
      @Lyrics_And_Harmony 6 місяців тому

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

  • @rafo21pe
    @rafo21pe 2 роки тому +2

    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 6 місяців тому

      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?

  • @dsaasd5381
    @dsaasd5381 5 років тому +4

    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.

  • @karoliskontrimas5118
    @karoliskontrimas5118 4 роки тому +3

    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 роки тому +1

      They can be in the same, no problem

  • @thomasb4422
    @thomasb4422 2 роки тому +2

    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)

  • @andrevangijsel957
    @andrevangijsel957 8 місяців тому

    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

  • @Juan_Argento
    @Juan_Argento 10 місяців тому

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

  • @pvasilavalentin
    @pvasilavalentin 20 днів тому

    Thanks, teachers in my school put videos with your work 😂

  • @shinoskv
    @shinoskv 2 роки тому

    @hegamurl
    brother can you please help , how can i solve error during pretuning output value limits not configured properly... please help...

  • @Sandman777-RTU
    @Sandman777-RTU Місяць тому

    Sir i have a question for tank behavior DB in your simulation file why is there an array up to 9999?

  • @albert4704
    @albert4704 3 роки тому

    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.

  • @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

  • @armchairfreedomfighter
    @armchairfreedomfighter 5 років тому +4

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

    • @hegamurl7434
      @hegamurl7434  5 років тому +3

      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

  • @tarekdableh1174
    @tarekdableh1174 6 місяців тому

    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

  • @HamedAdefuwa
    @HamedAdefuwa 2 роки тому

    unfortunately without all the prepared stuff, i wasnt able to get this working

  • @electrocontrol.joseignacio7291
    @electrocontrol.joseignacio7291 4 роки тому +1

    Fantastic video. Congratulations!!.

  • @perceptronsaber4479
    @perceptronsaber4479 4 дні тому

    شكرا جـــــــــــــــــــــــــزيلا ؛ فيديو رائــــــــــــــــــع

  • @AdamBast
    @AdamBast 9 місяців тому

    Db stands for data block, not database. Everybody gets this wrong

  • @Huyautomation2901
    @Huyautomation2901 Рік тому

    Could u do the series about making HMI professional

  • @90mantry
    @90mantry 4 роки тому +1

    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?

  • @Reaper0931
    @Reaper0931 8 місяців тому

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

  • @ud9258
    @ud9258 9 місяців тому

    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.

  • @chinonsoemmanuel1906
    @chinonsoemmanuel1906 5 місяців тому

    Can you share how you built the display?

  • @masumahmed7978
    @masumahmed7978 15 днів тому

    Have any ABB DCS tutorial

  • @MisShooter
    @MisShooter 5 років тому +2

    Great work! I really enjoy your video's.

    • @hegamurl7434
      @hegamurl7434  5 років тому +1

      You are very welcome! Thanks for watching

  • @TT_S90
    @TT_S90 5 років тому +2

    It is a great resource.

  • @mohamedadelelridy7033
    @mohamedadelelridy7033 3 роки тому +1

    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

  • @anirudhnayal4596
    @anirudhnayal4596 3 роки тому

    which university you are professor

  • @nanjarsyabanul8301
    @nanjarsyabanul8301 3 роки тому +1

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

    • @hegamurl7434
      @hegamurl7434  3 роки тому +1

      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?

  • @matt20012000
    @matt20012000 2 роки тому +1

    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.!

  • @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

  • @sanjar.mambetisaev
    @sanjar.mambetisaev 4 роки тому

    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.

  • @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?

  • @kdldllofjfkdkdodkdk4096
    @kdldllofjfkdkdodkdk4096 3 роки тому

    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 ''

  • @angelrivera3192
    @angelrivera3192 5 місяців тому

    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.

  • @mdsajibahmed5611
    @mdsajibahmed5611 7 місяців тому

    HMI Desing are not show

  • @stefanhorn2945
    @stefanhorn2945 4 роки тому

    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?

  • @spartakous
    @spartakous 3 роки тому

    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

  • @rogeralosilladargent4068
    @rogeralosilladargent4068 Рік тому

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

  • @binarynumbers7681
    @binarynumbers7681 2 роки тому

    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.

  • @nitolsaha1924
    @nitolsaha1924 4 роки тому

    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.

  • @MegaRyad
    @MegaRyad 2 роки тому

    this video is not helpful at all , you just changed the setpoint and the pid started doing its job , it doesn"t work for me , how did the pid start changing the output value ?

  • @dmuzina
    @dmuzina 3 роки тому

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

  • @aamirawan7998
    @aamirawan7998 3 роки тому

    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?

  • @mustafardk
    @mustafardk 3 роки тому

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

  • @ggchavhan
    @ggchavhan 2 роки тому

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

  • @resulcrak3113
    @resulcrak3113 4 роки тому

    Awesome!!!!!!!! Thanks a lot for your informative videos. Could you share this similation diagram with WinCC and main block. Really I need that soo much for learn more. I can give my mail adress to you or you can share however you want if you can. THANK YOU FOR YOUR ANSWER.

  • @isaacortegaromero5269
    @isaacortegaromero5269 4 роки тому

    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?

  • @matheusbarros5080
    @matheusbarros5080 2 роки тому

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

  • @hericonan9
    @hericonan9 3 роки тому

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

  • @Bonniebontleng
    @Bonniebontleng 2 роки тому

    I would like to inquire if you offer training online? What is your email sir? Doing a great job.

  • @anoop22march
    @anoop22march 4 роки тому +1

    One of the best teacher you are Sir

  • @kevinpena105
    @kevinpena105 3 роки тому

    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

  • @lucianogutierrez5259
    @lucianogutierrez5259 3 роки тому

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

  • @murillobau
    @murillobau 4 місяці тому

    do you have a course?

  • @gregorythompson6499
    @gregorythompson6499 3 роки тому

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

  • @007Lifo
    @007Lifo 4 роки тому

    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.

  • @santoshkumarpatro2772
    @santoshkumarpatro2772 4 роки тому

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

  • @engr.akinfenwaabobarin7120
    @engr.akinfenwaabobarin7120 Рік тому

    thanks very much

  • @spk7054
    @spk7054 Рік тому

    Please example tunning cascade PID.

  • @adammusthofabillah7762
    @adammusthofabillah7762 3 роки тому

    how to used redundant system in plc s7-1200 🙏

  • @ilhamrahmatmuharam8501
    @ilhamrahmatmuharam8501 4 роки тому

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

  • @JachinDevasahayam
    @JachinDevasahayam 3 місяці тому

    THIS GUY IS GANGSTER

  • @БулатШайхулин
    @БулатШайхулин 2 роки тому

    thank you very much

  • @levietpro87
    @levietpro87 4 роки тому

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

  • @abdengineer6225
    @abdengineer6225 4 роки тому

    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

  • @christian_t7954
    @christian_t7954 2 роки тому

    Thank you for the incredible explanation !

  • @martinnjoroge6006
    @martinnjoroge6006 3 роки тому

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

  • @HamedAdefuwa
    @HamedAdefuwa 2 роки тому

    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: ua-cam.com/video/Y41Joq-pGBQ/v-deo.html

  • @ajityadav1145
    @ajityadav1145 3 роки тому

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

  • @danielkliza1945
    @danielkliza1945 4 роки тому

    You set 1 second instead of 1000ms on PID controller.

  • @abdelmalek9682
    @abdelmalek9682 2 роки тому

    Thanks Alot ma for your great lessons..!

  • @pauldahlman4825
    @pauldahlman4825 3 роки тому

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

  • @ultimatetian
    @ultimatetian 2 роки тому

    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.

  • @bazezikov15
    @bazezikov15 2 роки тому +1

    your videos are god sent vielen danke bro

  • @marciocaster1524
    @marciocaster1524 3 роки тому

    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!

  • @claudio1371
    @claudio1371 3 роки тому

    Great explanation about pids. Thank you

  • @049-rizqipratama7
    @049-rizqipratama7 2 роки тому

    thank you sir

  • @valdemargulenok7067
    @valdemargulenok7067 4 місяці тому

    Thanks😊

  • @dennisrubio2375
    @dennisrubio2375 Рік тому

    we miss u bro

  • @marcodenora8979
    @marcodenora8979 3 роки тому

    Can i have the full project please?

  • @MDArman-zi9se
    @MDArman-zi9se 2 роки тому

    very good video

  • @ГеннадийГрудяев
    @ГеннадийГрудяев 2 роки тому

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

  • @XaviAllueva
    @XaviAllueva 3 роки тому

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

  • @chitimelasimeaomaunze2578
    @chitimelasimeaomaunze2578 4 роки тому

    How can i have your course fro the start?

  • @BetelgeuseX800
    @BetelgeuseX800 4 роки тому

    I like your vid. Thanks

  • @felixmontpetit
    @felixmontpetit 2 роки тому

    NOTE ! IF YOU USE A 12XX PLC YOU CAN'T SIMULATE THE PID, YOU NEED A 15XX PLC...

  • @Sh_Firouz
    @Sh_Firouz 9 місяців тому

    Herzlich Dank

  • @Mltnzle
    @Mltnzle 4 роки тому +1

    das war Klasse danke :)

  • @jiiggsj
    @jiiggsj 4 роки тому

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

  • @majidemami9187
    @majidemami9187 3 роки тому

    i love u so much, thanx teacher

  • @EngASax
    @EngASax 4 роки тому

    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

  • @kishorvalsalan1559
    @kishorvalsalan1559 4 роки тому

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

  • @Davidstinton
    @Davidstinton 4 роки тому

    Thank you awesome break down of how to use a PID

  • @RobNO
    @RobNO 4 роки тому

    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

  • @firdavsmirzadjonov5040
    @firdavsmirzadjonov5040 3 роки тому

    Ok

  • @kaakos9273
    @kaakos9273 5 років тому

    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 5 років тому +2

      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  5 років тому +2

      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