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

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024

Комментарии • 86

  • @Autunite
    @Autunite 3 года назад +10

    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 года назад +9

    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 года назад +5

    Sir, please do continue your fascinating and remarkable lectures indepth on the subject. Love and Respect from India.

  • @kunalpatil3457
    @kunalpatil3457 4 года назад +2

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

  • @momchilantonov1419
    @momchilantonov1419 4 года назад +9

    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 Год назад

      Can you give me some training on SCL?

  • @abhijeetgodbole5894
    @abhijeetgodbole5894 3 года назад

    I just love the way you explain things. It is very useful for me to learn SCL. thank you very much.

  • @danielaugustoalmeida1101
    @danielaugustoalmeida1101 Год назад

    Thanks for share this kind of knowledge in a easy way to understand!!!

  • @xiaozhang497
    @xiaozhang497 3 месяца назад +1

    Great Lecture!! Thank you so much!

  • @emirhanerol8504
    @emirhanerol8504 4 года назад

    Great and very useful video as always. Thanks a lot Philipp! Greetings from Turkey

  • @syeddanishraza903
    @syeddanishraza903 5 месяцев назад

    Hi your style of tutoring is the best one ❤

  • @ajitpalsingh2526
    @ajitpalsingh2526 2 года назад +1

    very goog video , can you make a video in scl using single input for on and off the motor. thanks

  • @framos9991
    @framos9991 Год назад

    You doing Fantastic Job! Thank You!

  • @khululekanindabana4267
    @khululekanindabana4267 Год назад

    This is helpful I am learning a lot here.

  • @spectrum7spectrum727
    @spectrum7spectrum727 7 месяцев назад

    Great video and very useful information!

  • @frankchristiansen2585
    @frankchristiansen2585 4 года назад

    Thank u sooo much for these videos. Im learning a lot from these!

  • @Bacilys13
    @Bacilys13 4 года назад

    Easy to understand! :) Dont worry about the length of the video... more fun for us! :D

  • @orlandoserrano4275
    @orlandoserrano4275 3 года назад

    Great! video, greetings from Mexico, thanks Master

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

  • @shashanksawant1986
    @shashanksawant1986 2 года назад

    Many thanks for your for the videos.

  • @e-design94
    @e-design94 6 месяцев назад

    PLEASE MAKE A VIDEO HOW TO MAKE A TIMER DATABLOCK MANUAL,THANK YOU

  • @muhammetemreturk7137
    @muhammetemreturk7137 2 года назад

    Thanks for this video, it's very useful.

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

  • @brstilson
    @brstilson 2 месяца назад

    You probably already know this, but in case someone watching this, the syntax for a Negate AND in SCL is "AND NOT"

  • @sagarkaria6291
    @sagarkaria6291 4 года назад +3

    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 года назад +3

      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?

  • @thomaspedersen2788
    @thomaspedersen2788 4 года назад +17

    Instead of writing AND #Take_Out = FALSE, you can simply write AND NOT #Take_Out

    • @hegamurl7434
      @hegamurl7434  4 года назад +10

      Exactly what I was trying to do! Programming in too many languages at a time makes me forget the easiest stuff😅 Thanks!

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

  • @hegamurl7434
    @hegamurl7434  4 года назад +2

    As always, waaaaayyyyyy toooooo loooong, sorry! Will try to keep it to max 15min in the future!

    • @MrBoowashere
      @MrBoowashere 4 года назад +2

      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 года назад +2

      No matter, if take even one hour i will see several time.

  • @2tan90
    @2tan90 2 года назад

    thank you sir ,

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

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

  • @ibrahimkaratas5093
    @ibrahimkaratas5093 4 года назад +2

    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

  • @suriyat8773
    @suriyat8773 25 дней назад

    Thank You Thai language

  • @apinutnuengnong6834
    @apinutnuengnong6834 4 года назад

    thank you teacher

  • @steve-ip1cd
    @steve-ip1cd 3 года назад

    Thanks man! Great video!

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

  • @kme8134
    @kme8134 2 года назад

    Thank you!

  • @ghulamsarwar5899
    @ghulamsarwar5899 2 года назад

    [ and ] are square brackets

  • @yoghurtedchikenpneumatics749
    @yoghurtedchikenpneumatics749 4 года назад

    amazing job sir

  • @Foreign_Mirror
    @Foreign_Mirror Месяц назад

    [] are the square brackets

  • @nazimmirza9421
    @nazimmirza9421 4 года назад

    Please, make some vedios on motion control.

  • @Sh_Firouz
    @Sh_Firouz 2 года назад

    Vielen Dank

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

  • @industrialautomationkotttu8841
    @industrialautomationkotttu8841 3 года назад

    going great

  • @ahmeddarwish883
    @ahmeddarwish883 3 года назад

    Is there any way to have TIA Portal on my laptop ?

  • @sandeepgowda114
    @sandeepgowda114 Год назад

    Vfd intefacing with plc

  • @vitaliizaliskyi1266
    @vitaliizaliskyi1266 2 года назад

    Awesome 👍👍👍👍

  • @NotMarkKnopfler
    @NotMarkKnopfler 4 года назад +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 года назад +1

      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 года назад +1

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

  • @manutentoreelettrico647
    @manutentoreelettrico647 3 года назад

    Thank you a lot sir!!!

  • @GoldenAfroZZ
    @GoldenAfroZZ 2 года назад

    [ ] are called brackets as far as i know

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

  • @manutentoreelettrico647
    @manutentoreelettrico647 3 года назад

    thank you Sir!!!

  • @milesonwheels8127
    @milesonwheels8127 2 года назад

    Can I use move blocks in scl?

  • @1348mahmoud
    @1348mahmoud 4 года назад

    Excelente

  • @mechanikalkraken
    @mechanikalkraken 3 года назад

    PUTIN Cheers you exclusively for the first Program Line

  • @alv1947
    @alv1947 2 года назад

    you can say 'eckige Klammer' we understand you :)

  • @rezamagham4495
    @rezamagham4495 2 года назад

    Please tell us how to connect python

  • @zhengkunyan8001
    @zhengkunyan8001 4 года назад

    verryyyy useful

  • @touchdesign4582
    @touchdesign4582 4 года назад

    HELLO HOW CAN I HANDLE WITH PID BY SCL LANGUAGE

  • @ercankr75
    @ercankr75 4 года назад

    Hood thank you tiycher goood

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

  • @LawrenceCarlson-z4m
    @LawrenceCarlson-z4m 12 дней назад

    Melisa Path

  • @joeschlitzer2004
    @joeschlitzer2004 4 года назад +1

    square brackets

  • @tomahawk777
    @tomahawk777 3 года назад

    Я уверен у тебя отличный контент, но не понимаю я на английском, а так хотелось бы понять тебя!!!))))

  • @TennilleEngquist-g9w
    @TennilleEngquist-g9w Месяц назад

    Hamill Ways

  • @desolator1295
    @desolator1295 2 года назад

    bad example. Next time using a button and a led is more understandable.

  • @CosminRusu154
    @CosminRusu154 4 года назад

    Thank you!

  • @dangalyt
    @dangalyt 4 года назад +1

    square brackets