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

  Рет қаралды 221,556

Hegamurl

Hegamurl

4 жыл бұрын

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

Пікірлер: 148
@kishorvalsalan1559
@kishorvalsalan1559 4 жыл бұрын
You are the best instructor with regards to automation tools. They way you present is just awesome.....
@mohamedadelelridy7033
@mohamedadelelridy7033 3 жыл бұрын
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
@matt20012000
@matt20012000 2 жыл бұрын
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.!
@PeteVree
@PeteVree 4 жыл бұрын
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 8 ай бұрын
It is educative and simple to learn . Thanks.
@hakuzu88
@hakuzu88 4 ай бұрын
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 ^^
@pardeepgupta123
@pardeepgupta123 4 жыл бұрын
Great job. I am chasing you in all tutorials
@XaviAllueva
@XaviAllueva 3 жыл бұрын
Thank you Sir, I really like the way you explain and elaborate things in your videos
@matheusbarros5080
@matheusbarros5080 Жыл бұрын
Thank you my friend, I've spent almost two days trying to configure the PID control without sucess. Now it's working......
@armchairfreedomfighter
@armchairfreedomfighter 4 жыл бұрын
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
@jiiggsj
@jiiggsj 4 жыл бұрын
Cheers mate. Your videos are very informative. All the best and keep passing the knowledge.
@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.
@industrialautomation3470
@industrialautomation3470 8 ай бұрын
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.
@anoop22march
@anoop22march 4 жыл бұрын
One of the best teacher you are Sir
@mustafardk
@mustafardk 3 жыл бұрын
Thank you very much! Awesome guides! Why didn`t I find your channel earlier...
@claudio1371
@claudio1371 3 жыл бұрын
Great explanation about pids. Thank you
@christian_t7954
@christian_t7954 2 жыл бұрын
Thank you for the incredible explanation !
@Davidstinton
@Davidstinton 3 жыл бұрын
Thank you awesome break down of how to use a PID
@electrocontrol.joseignacio7291
@electrocontrol.joseignacio7291 4 жыл бұрын
Fantastic video. Congratulations!!.
@santoshkumarpatro2772
@santoshkumarpatro2772 4 жыл бұрын
Great Job Sir...superb explanation....Hates off to you... Thanks ..
@505Nur
@505Nur 3 жыл бұрын
I wish the best! Keep doing that!
@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)
@EngASax
@EngASax 3 жыл бұрын
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
@user-cp2ii8cp8h
@user-cp2ii8cp8h 2 жыл бұрын
Вы хороший учитель. Спасибо за видео.
@romangemo8103
@romangemo8103 4 жыл бұрын
Thank You very much for Your knowlage!
@MisShooter
@MisShooter 4 жыл бұрын
Great work! I really enjoy your video's.
@hegamurl7434
@hegamurl7434 4 жыл бұрын
You are very welcome! Thanks for watching
@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!
@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
@rogeralosilladargent4068
@rogeralosilladargent4068 9 ай бұрын
Hello, one question. Can the 100% output of the PID be scaled in any other FC block?
@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.
@beast123im
@beast123im 4 жыл бұрын
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?
@ajityadav1145
@ajityadav1145 3 жыл бұрын
Thanks a lot...i lerant so many things from your videos
@martinnjoroge6006
@martinnjoroge6006 3 жыл бұрын
Thanks for the video. How would you configure the runtime wincc
@binarynumbers7681
@binarynumbers7681 Жыл бұрын
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.
@georgefouadfahmy2620
@georgefouadfahmy2620 3 жыл бұрын
Thank you for your information
@vanjapermiakov6778
@vanjapermiakov6778 4 жыл бұрын
Wonderful tutorial! I wish I had such a teacher
@wanderajoseph5151
@wanderajoseph5151 3 жыл бұрын
You are very good teacher sir
@imrebaksa7650
@imrebaksa7650 Жыл бұрын
Köszönjük!
@IK-qu9hw
@IK-qu9hw 4 жыл бұрын
Very helpful. Thank you..
@stefanhorn2945
@stefanhorn2945 3 жыл бұрын
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?
@TT_S90
@TT_S90 4 жыл бұрын
It is a great resource.
@angelrivera3192
@angelrivera3192 Ай бұрын
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.
@abdelmalek9682
@abdelmalek9682 Жыл бұрын
Thanks Alot ma for your great lessons..!
@hocmaihocnua9195
@hocmaihocnua9195 4 жыл бұрын
Great! Thank you so much
@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?
@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?
@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
@Mltnzle
@Mltnzle 4 жыл бұрын
das war Klasse danke :)
@dsaasd5381
@dsaasd5381 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.
@MDArman-zi9se
@MDArman-zi9se Жыл бұрын
very good video
@HamedAdefuwa
@HamedAdefuwa Жыл бұрын
this video would be amazing if we had the previous setup video of all the "already prepared stuff".
@hegamurl7434
@hegamurl7434 Жыл бұрын
If I remember correctly I made a livestream about just that! Should be this one: kzbin.info/www/bejne/j2WUe6KnYtV6eLM
@049-rizqipratama7
@049-rizqipratama7 2 жыл бұрын
thank you sir
@user-bw1nm2wr1e
@user-bw1nm2wr1e 2 жыл бұрын
thank you very much
@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.
@engr.akinfenwaabobarin7120
@engr.akinfenwaabobarin7120 Жыл бұрын
thanks very much
@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
@majidemami9187
@majidemami9187 3 жыл бұрын
i love u so much, thanx teacher
@BetelgeuseX800
@BetelgeuseX800 4 жыл бұрын
I like your vid. Thanks
@ilhamrahmatmuharam8501
@ilhamrahmatmuharam8501 3 жыл бұрын
Sir, if I use PER input and output do I have to make a function block for both?
@framos9991
@framos9991 Жыл бұрын
Very educational! Thanks! 👌
@hegamurl7434
@hegamurl7434 Жыл бұрын
You are very welcome!
@gogreen83
@gogreen83 4 жыл бұрын
Thanks to inspired me............
@ud9258
@ud9258 4 ай бұрын
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.
@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
@Gebzelimanda
@Gebzelimanda 4 жыл бұрын
thank you mannnnn
@aamirawan7998
@aamirawan7998 2 жыл бұрын
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?
@bazezikov15
@bazezikov15 2 жыл бұрын
your videos are god sent vielen danke bro
@hegamurl7434
@hegamurl7434 2 жыл бұрын
You are very welcome! Thanks!
@pauldahlman4825
@pauldahlman4825 3 жыл бұрын
what was the video that shows how you created the code for this simulator. Thanks
@nanjarsyabanul8301
@nanjarsyabanul8301 3 жыл бұрын
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?
@dennisrubio2375
@dennisrubio2375 11 ай бұрын
we miss u bro
@hubertwisniewski4376
@hubertwisniewski4376 3 жыл бұрын
THX
@tarekdableh1174
@tarekdableh1174 2 ай бұрын
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
@karoliskontrimas5118
@karoliskontrimas5118 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 3 жыл бұрын
They can be in the same, no problem
@chinonsoemmanuel1906
@chinonsoemmanuel1906 29 күн бұрын
Can you share how you built the display?
@gregorythompson6499
@gregorythompson6499 2 жыл бұрын
What do you use to simulate the PID. Is it a Lsim function or something you wrote yourself?
@ggchavhan
@ggchavhan 2 жыл бұрын
what if its inputs out of range at that PID block need to start manually from configuration window?
@sanilalkuttimon1755
@sanilalkuttimon1755 3 жыл бұрын
Great,❤️❤️❤️
@andrevangijsel957
@andrevangijsel957 3 ай бұрын
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
@nitolsaha1924
@nitolsaha1924 3 жыл бұрын
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.
@Sh_Firouz
@Sh_Firouz 5 ай бұрын
Herzlich Dank
@kaakos9273
@kaakos9273 4 жыл бұрын
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 &regards
@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
@Reaper0931
@Reaper0931 3 ай бұрын
Hey Hegamurl, how can I put the input in temperature and get % ?
@levietpro87
@levietpro87 3 жыл бұрын
Kindly explain how to make io field P, I, D value at HMI
@Juan_Argento
@Juan_Argento 5 ай бұрын
Hello how are you...?? This PID and HMI project can be done on S7 1200 1214 ac/dc/rely..? Greetings from Argentina
@Lyrics_And_Harmony
@Lyrics_And_Harmony 2 жыл бұрын
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 Ай бұрын
PID_Compact V1.2 is supported by S7-1200 (under Technology blocks Compact PID Version V3.0).
@Lyrics_And_Harmony
@Lyrics_And_Harmony Ай бұрын
@@petrkamin i was referring to simulation... as in plcSim
@michaelepstain7946
@michaelepstain7946 4 жыл бұрын
what is the link to last video?
@imsayinthetruth4942
@imsayinthetruth4942 10 ай бұрын
Could u do the series about making HMI professional
@shinoskv
@shinoskv 2 жыл бұрын
@hegamurl brother can you please help , how can i solve error during pretuning output value limits not configured properly... please help...
@lucianogutierrez5259
@lucianogutierrez5259 3 жыл бұрын
Hi, could you tell me how to change buttons size, in the curves? thanks
@hericonan9
@hericonan9 3 жыл бұрын
How to show PID setting in HMI? Which the tag we can use?
@renatogoncalves5931
@renatogoncalves5931 4 жыл бұрын
TOP
@rafo21pe
@rafo21pe 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 Ай бұрын
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?
@spartakous
@spartakous 2 жыл бұрын
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
@chitimelasimeaomaunze2578
@chitimelasimeaomaunze2578 3 жыл бұрын
How can i have your course fro the start?
@dmuzina
@dmuzina 2 жыл бұрын
Why PID must be in cyclic interrupt? Why it can not be in normal block? Thanks
@marcodenora8979
@marcodenora8979 3 жыл бұрын
Can i have the full project please?
@albert4704
@albert4704 2 жыл бұрын
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.
@adammusthofabillah7762
@adammusthofabillah7762 3 жыл бұрын
how to used redundant system in plc s7-1200 🙏
@Bonniebontleng
@Bonniebontleng 2 жыл бұрын
I would like to inquire if you offer training online? What is your email sir? Doing a great job.
@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
@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 ''
@saireddy4469
@saireddy4469 4 жыл бұрын
HI SIR CAN U SPECIFY THE DATATYPES
@murillobau
@murillobau 6 күн бұрын
do you have a course?
TIA Portal: PID Compact - (Auto-)Tuning a PID Controller!
14:15
PID vs. Other Control Methods: What's the Best Choice
10:33
RealPars
Рет қаралды 102 М.
ШЕЛБИЛАР | bayGUYS
24:45
bayGUYS
Рет қаралды 542 М.
Balloon Pop Racing Is INTENSE!!!
01:00
A4
Рет қаралды 14 МЛН
TIA Portal: PID Compact - Analog vs. PWM Output
20:14
Hegamurl
Рет қаралды 40 М.
How to Tune a PID Controller
8:43
RealPars
Рет қаралды 748 М.
TIA Portal: HMI/TP Integration (Human Machine Interface)
28:15
PID Controller Explained
9:25
RealPars
Рет қаралды 759 М.
PIDs Simplified
13:07
SiieeFPV
Рет қаралды 279 М.
TIA Portal: IO-Devices / PLC-PLC Communication
15:47
Hegamurl
Рет қаралды 99 М.
What is the Difference Between PLC and DCS?
11:23
RealPars
Рет қаралды 1,2 МЛН
PLC Training || Tia PortaL || 01-Temperature Control System
14:47
Android top🔥
0:12
ARGEN
Рет қаралды 767 М.
САМЫЙ дешевый ПК с OZON на RTX 4070
16:16
Мой Компьютер
Рет қаралды 107 М.
Пленка или защитное стекло: что лучше?
0:52
Слава 100пудово!
Рет қаралды 1,4 МЛН
ИГРОВОЙ ПК от DEXP за 37 тысяч рублей из DNS
27:53