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

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ • 88

  • @Autunite
    @Autunite 3 роки тому +11

    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.

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

  • @suchayanmondal9858
    @suchayanmondal9858 4 роки тому +5

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

  • @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🙏🤙😊

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

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

  • @momchilantonov1419
    @momchilantonov1419 4 роки тому +11

    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?

  • @xiaozhang497
    @xiaozhang497 4 місяці тому +2

    Great Lecture!! Thank you so much!

  • @syeddanishraza903
    @syeddanishraza903 6 місяців тому +1

    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

  • @brstilson
    @brstilson 4 місяці тому +1

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

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

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

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

    This is helpful I am learning a lot here.

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

    You doing Fantastic Job! Thank You!

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

    Great video and very useful information!

  • @e-design94
    @e-design94 7 місяців тому

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

  • @thomaspedersen2788
    @thomaspedersen2788 4 роки тому +17

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

    • @hegamurl7434
      @hegamurl7434  4 роки тому +11

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

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

    Thanks for this video, it's very useful.

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

    Many thanks for your for the videos.

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

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

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

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

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

    Great! video, greetings from Mexico, thanks Master

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

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

    [ and ] are square brackets

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

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

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

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

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

  • @ibrahimkaratas5093
    @ibrahimkaratas5093 4 роки тому +2

    We wait more, master

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

      I upload every tuesday and thursday! Thanks for the support!

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

      @@hegamurl7434 Of course I will support

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

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

    Please, make some vedios on motion control.

  • @Foreign_Mirror
    @Foreign_Mirror 2 місяці тому

    [] are the square brackets

  • @steve-ip1cd
    @steve-ip1cd 3 роки тому

    Thanks man! Great video!

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

    [ ] are called brackets as far as i know

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

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

    amazing job sir

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

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

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

    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.

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

    thank you teacher

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

    Can I use move blocks in scl?

  • @torpedohippo8493
    @torpedohippo8493 Місяць тому

    Why is this video not in HD

  • @MIXPLUS77
    @MIXPLUS77 Місяць тому

    This is [ ] call square brackets 04:45 :)

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

    Vfd intefacing with plc

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

    Thank you a lot sir!!!

  • @suriyat8773
    @suriyat8773 2 місяці тому

    Thank You Thai language

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

    going great

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

    Awesome 👍👍👍👍

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

    Please tell us how to connect python

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

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

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

    Vielen Dank

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

      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.

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

    Thank you!

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

    thank you sir ,

  • @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 4 роки тому

    thank you Sir!!!

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

    PUTIN Cheers you exclusively for the first Program Line

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

    HELLO HOW CAN I HANDLE WITH PID BY SCL LANGUAGE

  • @1348mahmoud
    @1348mahmoud 4 роки тому

    Excelente

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

    verryyyy useful

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

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

    square brackets

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

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

  • @LawrenceCarlson-z4m
    @LawrenceCarlson-z4m Місяць тому

    Melisa Path

  • @TennilleEngquist-g9w
    @TennilleEngquist-g9w 2 місяці тому

    Hamill Ways

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

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

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

    Thank you!

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

    square brackets