Это видео недоступно.
Сожалеем об этом.

PLC programming using TwinCAT 3 - Data types & arrays (Part 4/18)

Поделиться
HTML-код
  • Опубликовано: 14 авг 2024
  • In this part we will dive deeper into the various data types that are available in the IEC 61131-3 standard that TwinCAT implements. We'll also look at pointers and references, and why we would want to use them. After that we will take a look at how to declare and use arrays. We will finish this part by looking at one example of how we can convert one datatype to another.
    The complete playlist of all the parts of this tutorial → • PLC programming using ...
    Please support this channel by either:
    - A donation by using the "Thanks" button under the video
    - A donation through PayPal → www.paypal.com...
    - Becoming a Patron → / sagatowski
    Subscribe so you don't miss new videos → www.youtube.co...
    Visit my blog → www.alltwincat...
    Naming conventions for variables in TwinCAT 3 → alltwincat.com...
    All data types in TwinCAT 3 →
    infosys.beckho...
    All type conversion operators in TwinCAT 3 →
    infosys.beckho...
    Attributions → alltwincat.com...
    Intro 0:00
    Scope 0:15
    Variables 1:00
    Bool data types 3:00
    Integer data types 3:45
    Floating point data types 8:39
    String data types 9:04
    Time data types 11:50
    Enums 15:30
    SIZEOF() 19:15
    Pointers 23:14
    References 26:20
    Arrays 32:31
    Type conversion 36:00
    #TwinCAT3 #TwinCAT #PLC #Beckhoff

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

  • @JakobSagatowski
    @JakobSagatowski  2 года назад +5

    ⬆Support this channel using the "Thanks" button⬆ or by making a donation through PayPal → www.paypal.com/donate/?hosted_button_id=7FBED5B26KT7S, or by becoming a Patron → www.patreon.com/sagatowski

  • @liorshtivi1953
    @liorshtivi1953 Год назад +16

    Your videos are better than the official Beckhoff training center... Thanks so much for the content!

  • @zae1130
    @zae1130 Год назад +3

    I'm a Ph.D candidate in S.Korea, and you sir, you just saved my candidate qualification.

  • @wandererJBL
    @wandererJBL 4 месяца назад +1

    I have just joined a new job and this organization is using the Beckhoff PLC and motion in their machines.
    I went to their office as well for training but was unsatisfactory.
    Your videos are helping me a lot to understand the syntax of this logic.
    You are to the point with very good explanation.
    Thanks a lot.
    you are doing a great work!

  • @pedrocampana1329
    @pedrocampana1329 3 года назад +9

    Great course. It is very clear, especially for those coming from traditional PLC programming. Thanks for sharing your knowledge on Beckhoff PLC.

  • @MrBluntNose
    @MrBluntNose 2 года назад +15

    Thanks for your great work! This channel is an absolute Gem 💎 🙏🙌

    • @JakobSagatowski
      @JakobSagatowski  2 года назад +3

      Thank you for this kind donation, this made my week!

    • @MrBluntNose
      @MrBluntNose 2 года назад +2

      @@JakobSagatowski You're welcome. It's the least I could've done. Keep it up!

  • @heydude92
    @heydude92 Год назад +2

    Som en "vanlig" utvecklare har jag egentligen ingen koppling alls till PLC:er och automation (hittade hit via podcasten Kompilator) men denna videoserie är minst sagt häftig och förklaringarna av grundläggande koncept inom programmering är värdefulla även för mig!

  • @gtg7529
    @gtg7529 3 года назад +1

    Dear,
    Thanks for your Video.
    I am really very like the parts of pointer and refernece that you are explain.
    Very make sense and smart!

  • @henri7356
    @henri7356 4 месяца назад

    You're a god. Very clear and complete tutorial!! Thank you.

  • @robertboukens6336
    @robertboukens6336 3 года назад +3

    Thank you for creating this series.

  • @andreasklappert3599
    @andreasklappert3599 3 года назад +2

    Great video again Jakob, can't wait for the rest of the series.

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

    Finally again new episode! :)

  • @bjornforssberg5555
    @bjornforssberg5555 3 года назад +1

    THANKS This is very interesting for me , I have been selling Beckhoff since 1989 (Lightbus i.e Precursor to EtherCAT) to 2010 in Sweden, after that I have as retired supported TR Thailand.
    Up till now , no problems imported machines from Europe = TC2 but now TC3 is starting to come. I practically have any experience Of TC3 (except ST and what I have learned in 1-4 from you ), waiting for next part but maybe especially for "next part" about Git hub :-)

    • @JakobSagatowski
      @JakobSagatowski  3 года назад +1

      Hi Björn! Sounds like you've made a really fun journey! Thanks for your feedback!

  • @Desfaqhunter
    @Desfaqhunter 3 года назад +2

    Great job! I can't wait till next episode. You are the best TwinCat Coach :D

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

      Thanks for the kind words! Next episode hopefully coming soon!

  • @user-fb3vt8hs6u
    @user-fb3vt8hs6u 3 года назад +1

    I hope part 5 is just around the corner.

  • @jatinsingh3295
    @jatinsingh3295 3 года назад +2

    Thank you for creating awesome content! Looking forward to upcoming videos! :)

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

    Excellent course, I got many knowledge from you. Many thanks with love

  • @jktanasin
    @jktanasin 3 года назад +1

    Thanks Jakob , Really useful for me.

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

    Thanks Jakob, for we are getting a free training 😊

  • @smarttech2513
    @smarttech2513 3 года назад +1

    Thanks Jakob Great video

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

    very helpful Tutorial , thanks !

  • @adilsonoliveira5728
    @adilsonoliveira5728 3 года назад +1

    Very good Jakob. Mybe you could create videos with some applications using pointers, references .... just only idea :-)

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

    Thanks 👍
    PLEASE, CONTINUE 🙏

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

    Feel sorry for my kids when they have to deal with every machine breaking down on the 8th Feb 2106! Haha.
    Great Tutorial!

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

    Excellent video.

  • @zoltansimon5699
    @zoltansimon5699 10 месяцев назад

    Hi Jakob! :) And that is
    In witch part r you talking about handlink bigger strings than 255 elements? Cause I'd like to handle the dataflow of my electricity meter (DSMR port, P1 port etc). And that is approx 2.5kbytes.

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

    Thanks a lot!

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

    Great Video. Great work!

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

    Hello Jacob, happy new year.
    I hope you're well.
    I congratulate you on your excellent work and dedication. These tutorials are very good and I have learned a lot.
    I don't know if he explains in the next videos, but I would like to know how to extract and support the programming of a Beckhoff PLC.
    Thanks
    Kind regards

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

    Is there a way to edit TwinCAT code in VisualStudio with VIM commands? I have tried the VSVIM plug in but it doesn't seem to work with the TwinCAT extensions in Visual Studio.

  • @chengkeattan6571
    @chengkeattan6571 3 года назад +1

    thank you very much

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

    Hi Jakob,
    many thanks for these well-structured training courses.
    I asked to connect with you on Linkedin in order to get in touch with you for professional questions. It would be a pleasure to talk to you.
    Gautier

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

    Thanks a lot for this valuable episode! Please I have a question in the last part of type conversion, does the type conversion made causes a data loss and hence a logical error?

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

    This is a great video! Thank you! Will you be talking about PID controllers from the Controller Toolbox in any of the videos?

    • @JakobSagatowski
      @JakobSagatowski  3 года назад +1

      Hi, thanks! No, this will not be covered in this tutorial, but I might cover it in a future series of videos!

  • @Runtimevic
    @Runtimevic 3 года назад +1

    Thank you very much for sharing your knowledge of Twincat in these videos and for the efforts you make.
    Is there a way to get the slides? in order to always have them at hand.
    a greeting and looking forward to the next video

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

      Thanks Victor! Yes If I find the slides I will send them!

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

      ​@@JakobSagatowski , Thank you very much, if you want you can put them on github so they will be for everyone.

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

    Nice video thank you

  • @rasoulsadeghi8635
    @rasoulsadeghi8635 3 года назад +1

    Thank you very much for the valuable content. Just one question, why do we use reference and we don't use the original variable itself? which one has the priority (if any) if we write the variable or if the reference pointing to that variable?

    • @JakobSagatowski
      @JakobSagatowski  3 года назад +1

      Hi Rasoul! By using a reference we are actually using the original variable! It's if we DON'T use a reference that we use a COPY of the variable.

    • @rasoulsadeghi8635
      @rasoulsadeghi8635 3 года назад +1

      @@JakobSagatowski thanks for your reply. Maybe there are more benefits in using references in OOP way of programming. I mean we can see it's advantages there clearly

  • @Han-dc3pp
    @Han-dc3pp Месяц назад

    35:06
    a2dArray2 : ARRAY[1..2] OF ARRAY[1..3] OF REAL;

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

    Thanks!

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

    How can I change REAL to INT in GVL?

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

    Could TwinCat 3 Export ESI(xml) file?

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

      Hi Wu! ESI-files are EtherCAT slave files, and you can import them to TwinCAT for a specific EtherCAT slave device. If you want to export any of those files, you can simply copy them from the C:\TwinCAT\3.1\Config\Io\EtherCAT folder.

  • @Alex-pz7kr
    @Alex-pz7kr 3 года назад

    It is very inconvenient that we cannot assign other data types to reference, for example, in Siemens PLCs we can create a variable
    foo:dword;
    foo1 AT foo:STRUCT;
    byte1:byte;
    byte2:byte;
    byte3:byte;
    byte4:byte;
    end_struct;
    In this example, we can refer to any bytes

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

    How do I find if a certian number exists in a given array?

  • @SunilYadav-nb9wp
    @SunilYadav-nb9wp 3 года назад

    Sir , still I am not clear where and why we use pointer ?

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

      This is a good explanation for when pointers might be useful and you really have to use them: stackoverflow.com/questions/22146094/why-should-i-use-a-pointer-rather-than-the-object-itself

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

      @@JakobSagatowski personaly, after programming for many years in C, i always use pointers even though they can be very difficult to handle in twincat than in classic C.

  • @SunilYadav-nb9wp
    @SunilYadav-nb9wp 3 года назад

    when will come new video

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

    Ogólnie super wyjaśnione tylko dlaczego to 'would' po 'if'. To jest błąd jezykowy i sie czesto tutaj zdarza i wkurza przez to.

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

    nice t-shirt, VI save and quit, huh?

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

    Honestly, that green screen gave a small heart attack. Don't do that me again. 😶

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

    TOO DIFICULT

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

      Can you be more specific of what was too difficult?