Тёмный

TIA Portal: "IF" "THEN" "ELSE" "ELSIF" Statement in SCL 

Hegamurl
Подписаться 80 тыс.
Просмотров 86 тыс.
50% 1

Let's have a look at the basics of SCL and how we can use the "IF" statement correctly!
Find it out here!
Downloadlink TIA V16 (you need to register on the website):
support.industry.siemens.com/...
Find a lot of content about TIA Portal on my channel!
New programming videos every tuesday and thursday.
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...

Наука

Опубликовано:

 

6 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 82   
@Autunite
@Autunite 2 года назад
I'm using these videos to learn myself SCL so that I can make complicated tasks a lot simpler. I went from having a looong ladder rung to one line of SCL code to indicate a lamp every 10 pallet. Opened my eyes a bit.
@luckyimmn9790
@luckyimmn9790 4 года назад
I really enjoy the video, smooth and clear. Easy to understand.😌 I couldn't believe how fast time goes, when watching your video. appreciated🙏🤙😊
@suchayanmondal9858
@suchayanmondal9858 4 года назад
Sir, please do continue your fascinating and remarkable lectures indepth on the subject. Love and Respect from India.
@kunalpatil3457
@kunalpatil3457 3 года назад
I am writing my first scl seqence programm, with lot of if, else, elsif conditions, and needed to understand how thease statements work in shorttime. Got exactly what I was looking for..! thanks a lot..!
@abhijeetgodbole5894
@abhijeetgodbole5894 3 года назад
I just love the way you explain things. It is very useful for me to learn SCL. thank you very much.
@emirhanerol8504
@emirhanerol8504 3 года назад
Great and very useful video as always. Thanks a lot Philipp! Greetings from Turkey
@xiaozhang497
@xiaozhang497 Месяц назад
Great Lecture!! Thank you so much!
@frankchristiansen2585
@frankchristiansen2585 4 года назад
Thank u sooo much for these videos. Im learning a lot from these!
@danielaugustoalmeida1101
@danielaugustoalmeida1101 Год назад
Thanks for share this kind of knowledge in a easy way to understand!!!
@orlandoserrano4275
@orlandoserrano4275 3 года назад
Great! video, greetings from Mexico, thanks Master
@framos9991
@framos9991 Год назад
You doing Fantastic Job! Thank You!
@steve-ip1cd
@steve-ip1cd 3 года назад
Thanks man! Great video!
@spectrum7spectrum727
@spectrum7spectrum727 4 месяца назад
Great video and very useful information!
@syeddanishraza903
@syeddanishraza903 3 месяца назад
Hi your style of tutoring is the best one ❤
@yoghurtedchikenpneumatics749
@yoghurtedchikenpneumatics749 4 года назад
amazing job sir
@muhammetemreturk7137
@muhammetemreturk7137 2 года назад
Thanks for this video, it's very useful.
@shashanksawant1986
@shashanksawant1986 2 года назад
Many thanks for your for the videos.
@khululekanindabana4267
@khululekanindabana4267 11 месяцев назад
This is helpful I am learning a lot here.
@manutentoreelettrico647
@manutentoreelettrico647 3 года назад
Thank you a lot sir!!!
@momchilantonov1419
@momchilantonov1419 4 года назад
Nice video! I just want to say that SCL is not just for special programming, I program everything only on SCL, even my Main OB. If you are good on SCL I will appreciate if you make more videos for tips and tricks on this language :)
@egrabhishek
@egrabhishek 2 года назад
I was kinda aware of this. I am new to SCL .. got a little dis heartened listening to what he mentioned... Thanks to you for confirming it's broad applicability
@mwanikimwaniki6801
@mwanikimwaniki6801 2 года назад
@@egrabhishek Phewks. I have the same sentiment as you.
@swapnilbhalerao3914
@swapnilbhalerao3914 11 месяцев назад
Can you give me some training on SCL?
@Bacilys13
@Bacilys13 4 года назад
Easy to understand! :) Dont worry about the length of the video... more fun for us! :D
@manutentoreelettrico647
@manutentoreelettrico647 3 года назад
thank you Sir!!!
@CosminRusu154
@CosminRusu154 3 года назад
Thank you!
@ajitpalsingh2526
@ajitpalsingh2526 2 года назад
very goog video , can you make a video in scl using single input for on and off the motor. thanks
@apinutnuengnong6834
@apinutnuengnong6834 4 года назад
thank you teacher
@alwayshappy9509
@alwayshappy9509 3 года назад
Thanks for your good tutorial, Is it possible that if the input value is false the it will also make output false.
@2tan90
@2tan90 2 года назад
thank you sir ,
@vitaliizaliskyi1266
@vitaliizaliskyi1266 2 года назад
Awesome 👍👍👍👍
@BTON889
@BTON889 2 года назад
Hello ! I follow your videos a lot and it teaches me a lot. indeed I would like to know how to keep the hmi variables in cpu after restarting the cpu? Thanks in advance
@zhengkunyan8001
@zhengkunyan8001 4 года назад
verryyyy useful
@e-design94
@e-design94 3 месяца назад
PLEASE MAKE A VIDEO HOW TO MAKE A TIMER DATABLOCK MANUAL,THANK YOU
@a4wong
@a4wong 3 года назад
quick question. what is the primary DB of this FB? can/should you leave both on the program? thanks for the vid
@industrialautomationkotttu8841
@industrialautomationkotttu8841 2 года назад
going great
@1348mahmoud
@1348mahmoud 4 года назад
Excelente
@christamohr2358
@christamohr2358 3 года назад
Hi, Is it possible to add timmer her with "if statement". for example: IF "input variable" then WAIT for 5s output := True; End_IF;
@nabilmarsel8792
@nabilmarsel8792 3 года назад
Hello, I need to convert a program made of a c++ language to the scl tia portal, any chance to do that automatically.
@ibrahimkaratas5093
@ibrahimkaratas5093 4 года назад
We wait more, master
@hegamurl7434
@hegamurl7434 4 года назад
I upload every tuesday and thursday! Thanks for the support!
@ibrahimkaratas5093
@ibrahimkaratas5093 4 года назад
@@hegamurl7434 Of course I will support
@milesonwheels8127
@milesonwheels8127 2 года назад
Can I use move blocks in scl?
@Sh_Firouz
@Sh_Firouz Год назад
Vielen Dank
@ghulamsarwar5899
@ghulamsarwar5899 Год назад
[ and ] are square brackets
@nazimmirza9421
@nazimmirza9421 4 года назад
Please, make some vedios on motion control.
@shoaibshoaib1453
@shoaibshoaib1453 3 года назад
Sir i want to one plant plant programme . Like still plant there have a different sensor pressure transmitter rtd etc more analog signal. I hope u will next video same as.
@ahmeddarwish883
@ahmeddarwish883 3 года назад
Is there any way to have TIA Portal on my laptop ?
@ercankr75
@ercankr75 3 года назад
Hood thank you tiycher goood
@taavikoppel1769
@taavikoppel1769 4 года назад
What do I do If I have a large number of conditions inside one IF statement. How do I write it? Do I just keep adding AND statements? IF ..... this AND that AND that AND that AND that AND this AND not THAT AND ......THEN END_IF;
@sandeepgowda114
@sandeepgowda114 Год назад
Vfd intefacing with plc
@thomaspedersen2788
@thomaspedersen2788 4 года назад
Instead of writing AND #Take_Out = FALSE, you can simply write AND NOT #Take_Out
@hegamurl7434
@hegamurl7434 4 года назад
Exactly what I was trying to do! Programming in too many languages at a time makes me forget the easiest stuff😅 Thanks!
@touchdesign4582
@touchdesign4582 3 года назад
HELLO HOW CAN I HANDLE WITH PID BY SCL LANGUAGE
@brstilson
@brstilson 11 дней назад
You probably already know this, but in case someone watching this, the syntax for a Negate AND in SCL is "AND NOT"
@hegamurl7434
@hegamurl7434 4 года назад
As always, waaaaayyyyyy toooooo loooong, sorry! Will try to keep it to max 15min in the future!
@MrBoowashere
@MrBoowashere 4 года назад
Dont worry too much. It is nice that you explain things nice and clearly and take your time makes it easy for noobs like me to follow!
@vinothparker7425
@vinothparker7425 4 года назад
No problem about timing.. you are really explaining very clearly.. I'm waiting for you next video
@Youness-Ladib
@Youness-Ladib 4 года назад
it's useful like that because you take time to explain good and very clearly thanks my freind .
@saeed2tube
@saeed2tube 4 года назад
No matter, if take even one hour i will see several time.
@sagarkaria6291
@sagarkaria6291 4 года назад
haloo, i am learning about scl and i dont undurstand de for and while loops in scl can you make a video explaining that topic? kind regards sagar karia
@hegamurl7434
@hegamurl7434 4 года назад
Exactly what my next videos will be about!
@sagarkaria6291
@sagarkaria6291 4 года назад
thank you👍🏾
@mertsenol6000
@mertsenol6000 4 года назад
Thank you for your share and effort you madeCould you make a video regarding to indirect addressing?
@GoldenAfroZZ
@GoldenAfroZZ 2 года назад
[ ] are called brackets as far as i know
@rezamagham4495
@rezamagham4495 2 года назад
Please tell us how to connect python
@intradeee
@intradeee 4 года назад
Can you explain me why Shelfs[5] stays TRUE when #Put_in is false and becames FALSE only when #Take_Out becames TRUE while #Error becames instantly FALSE when the statement in last IF is FALSE? Is it because Shelfs[] are InOut and Error is just output and has 'Default value'?
@NiteAngyl
@NiteAngyl Год назад
I'm sorry you had to wait two years for this answer, but here goes; When Put_In is TRUE it only states Shelves[5] to be TRUE. There is no statement that helps Shelves to be FALSE by Put_In. You need either a reset function for it, or in this case, the Take_Out bit to be TRUE.
@alv1947
@alv1947 2 года назад
you can say 'eckige Klammer' we understand you :)
@NotMarkKnopfler
@NotMarkKnopfler 4 года назад
The error evaluation could be more concisely written as ERROR := #Put_In AND #Take_Out; If you evaluate the error condition first, then you can simplify even further and increase efficiency: ERROR := #Put_In AND #Take_Out; IF NOT ERROR THEN IF Put_In THEN Shelfs[Selected_Shelf] :=TRUE; ELSIF Take_Out THEN Shelfs[Selected_Shelf] := FALSE; END_IF; END_IF;
@hegamurl7434
@hegamurl7434 4 года назад
A lot of the code snippets I create in my videos could be improved/be made more efficient, that is 100% correct. But my videos are aimed more at absolute beginners, I just want to teach the basics. Maybe I'll make a video at some point an talk about writing more efficient code, that will be directed at more advanced programmers than... so I'll see^^
@NotMarkKnopfler
@NotMarkKnopfler 4 года назад
@@hegamurl7434 You are doing a GREAT job with these videos. Really fantastic. I just wanted to point it out. I've been watching your videos to re-familiarise myself with TIA/Step7 and they are fantastic. One possible question/topic for a video: Is it possible to write an FB and then call it using SCL? That would make a great video (if it's possible!). Many thanks for your efforts in producing these videos. It's really appreciated! Greetings from Scotland!
@mechanikalkraken
@mechanikalkraken 3 года назад
PUTIN Cheers you exclusively for the first Program Line
@EugenMk
@EugenMk 2 года назад
Singular - shelf, plural - shelvs ;-)
@alonsohdzf
@alonsohdzf 2 года назад
I also noticed that, but I don't mind. This guy is amazing and does it for free. Haha
@joeschlitzer2004
@joeschlitzer2004 4 года назад
square brackets
@tomahawk777
@tomahawk777 3 года назад
Я уверен у тебя отличный контент, но не понимаю я на английском, а так хотелось бы понять тебя!!!))))
@desolator1295
@desolator1295 2 года назад
bad example. Next time using a button and a led is more understandable.
@kme8134
@kme8134 Год назад
Thank you!
@dangalyt
@dangalyt 3 года назад
square brackets
Далее
TIA Portal: "FOR" "TO" "DO" Loops in SCL
21:31
Просмотров 66 тыс.
TIA Portal: "CASE... OF..." Statements in SCL
17:43
Просмотров 40 тыс.
PLC Basics: Structured Text
33:31
Просмотров 107 тыс.
how Google writes gorgeous C++
7:40
Просмотров 840 тыс.
TIA Portal: "WHILE" "DO" Loop in SCL
24:45
Просмотров 40 тыс.
TIA Portal: UDT's (User Defined Types) - Part 1
16:27
Logic AND: Boolean Circuits in LAD, FBD, STL and SCL
9:29
КАКОЙ SAMSUNG КУПИТЬ В 2024 ГОДУ
14:59