Ninja Monkeys Tutorials
Ninja Monkeys Tutorials
  • Видео 32
  • Просмотров 37 017
29. From Blocks to Candy: Learning OOP Function Blocks in TwinCAT 3
This is the second part of our Vending Machine project for TwinCAT3.
You will learn more about object orientated programming in TwinCAT 3.
At the end of this video you will have a fully functional candy vending machine for greedy and picky ninja monkeys.
You can find the first part of the project and more about Object Orientated programming here:
ruclips.net/video/z1h-uQhCY4A/видео.htmlsi=TARJ7pyTI8-rh3yQ
You can download the full TwinCAT project on GitHub:
github.com/NinjaMonkeyTutorials/candy-vending-machine
00:00 Intro part 2
00:40 AbstractCandyMachine
04:43 NinjaCandyBehavior: Enums: ConsumerTypes ans TasteScale
07:00 Candies
08:15 PickyCandyMachine
11:05 GreedyCandyMachine
12:46 CommonCandyMachin...
Просмотров: 376

Видео

28. From Blocks to Candy: Learning OOP Function Blocks in TwinCAT 3
Просмотров 69728 дней назад
This is our video about FB's in TwinCAT 3 We create a whole project together with you that introduces you to OOP in TwinCAT 3. Together we will build a candy vending machine. The project completely available on our GitHub: github.com/NinjaMonkeyTutorials/candy-vending-machine Part 2 of the tutorial: ruclips.net/video/ZkVK1_xULF0/видео.html Chapters: 00:00 Introducing the project 02:50 Create Ca...
27.TwinCAT 3: Migrate 4024 to 4026
Просмотров 7314 месяца назад
Big news: some weeks ago Beckhoff updated it's package manager! It's not necessary anymore, to migrate TwinCAT 3 4024 to 4026 via PowerShell script. In this short video will show you how to migrate TwinCAT 2024 to TwinCAT3 2026 with the Beckhoff TwinCAT Package Manager installer. Link to the TwinCAT Package Manager (TwinCAT 3.1 Build 4026) on the Beckhoff website: www.beckhoff.com/en-en/support...
26.TwinCAT 3: Where the (FUN) ends
Просмотров 5734 месяца назад
In this video we will have some more (FUN). This time we will try out what can go wrong if you use a reference as return value of a function. yiepieh! Therefore we prepared a TwinCAT project for you. Follow THIS link to download it: github.com/NinjaMonkeyTutorials/functions-part-two Chapters: 00:00 Intro 01:47 Pinana Animation 02:16 Introducing the TwinCat PLC project 05:30 CalcualtePinanaCurva...
25.TwinCAT 3: Just for (FUN)
Просмотров 2,4 тыс.10 месяцев назад
In this video we talk about the next POU in TwinCAT 3: The function. We explain how to declare a function, how to call it, and it's differences to other POUs. Have (FUN). Chapters: 00:00 Intro 00:27 How does a function work 01:27 How to create a function in TwinCAT 3 02:54 Examples 03:34 Example 1 04:32 Function call in TwinCAT 3 05:58 Example 2: Bubble sort algorithm in TwinCAT3 06:18 VAR_IN_O...
24. TwinCAT 3: POUs: programs
Просмотров 897Год назад
In this videos we talk about programs in TwinCAT 3. Therefor we invited an expert: MAIN. Together we explore, how a program is called, we create tasks and programs, look at how to define a program in a tasks and how changes in the tasks settings effect the execution of a program. We also call a program in another program and explain how input and output parameters work. 00:00 Intro 00:46 The MA...
23. TwinCAT 3: FOR, WHILE and REPEAT loop
Просмотров 803Год назад
In this video we show you how to use the FOR, WHILE and REPEAT loop. We solve everyday challenges of a ninja monkey with the help of 3 different loops. We also take a quick look at the EXIT instruction. Chapters 00:00 Intro 00:27 FOR loop Syntax 01:54 FOR loop Example 1 04:10 FOR loop Example 2 05:43 WHILE loop Syntax 06:56 WHILE loop Example 09:49 REPEAT loop Syntax 10:47 REPEAT loop Example 1...
22. TwinCAT 3: IF, CASE, JMP & RETURN instructions
Просмотров 758Год назад
In this video we talk to you about the IF, CASE , JMP and RETURN instructions in Structured Text. We look at the syntax of each instruction and show you how to use them in TwinCAT 3. Chapters: 00:00 Intro 00:39 IF instruction syntax 01:49 Example Animation 02:51 How to use the IF instruction in TwinCAT 3 05:33 CASE instruction Syntax 07:36 How to use the CASE instruction in TwinCAT 3 09:12 JMP ...
21. TwinCAT 3: Pointer and References
Просмотров 1,9 тыс.Год назад
In this video we talk about pointers and references in TwinCAT 3. We also have a blog article about this topic: ekvip.de/blog/pointer-and-references-in-a-nutshell/ Chapters: 00:00 Intro 00:52 What is a POINTER 02:10 How do use pointers in TwinCAT 3 06:12 Index access 06:35 Example index access and pointer arithmetic 09:32 Substract Pointers 09:50 FUNCTION F_CheckMemoryArea: E_TcMemoryArea 13:12...
20. TwinCAT 3: Structures: Alignment & dynamically created structures
Просмотров 779Год назад
In this video we talk about the alignment in TwinCAT 3 and in this context also about the attribute pack_mode. Furthermore we talk about the operators NEW and DELETE, as well as the enable_dynamic_creation attribute and explain how to allocate memory and what a dynamically created structure is. Chapters: 00:00 Intro 00:40 Alignment basics 01:03 Alignment in structures 04:08 SIZEOF operator 04:4...
19. TwinCAT 3: Structures
Просмотров 819Год назад
In this video we talk about structures. In this part we talk about the basic: How to create them, how to get access to a structure component and how you can extend a structure. Chapters: 00:00 Intro 00:16 What is a structure and when should I use it? 01:09 Example 02:02 How to create and declare a structure 04:30 How to access a structure component 05:40 Explanation Data type BIT and BIT struct...
18. TwinCAT 3: Enumerations
Просмотров 1,4 тыс.Год назад
In this video will will explain how to use an enumeration. We will also talk about the attributes 'strict, 'to_string' and 'qualified_only'. Chapters 00:00 Intro 00:17 What is an enumeration? 00:27 How to declare an enumeration 01:03 Textlist support 01:20 Declaration and syntax 04:11 Example with CASE instruction 1/3 05:11 How to use the 'to_string' attribute 05:44 Example with CASE instructio...
17.TwinCAT3: ARRAYS
Просмотров 1,4 тыс.Год назад
17.TwinCAT3: ARRAYS
16. TwinCAT 3: Special data types
Просмотров 510Год назад
16. TwinCAT 3: Special data types
15. TwinCAT 3: Subrange data types & Range/LRange Check
Просмотров 443Год назад
15. TwinCAT 3: Subrange data types & Range/LRange Check
14. TwinCAT 3: Type Conversion and the two's complement
Просмотров 538Год назад
14. TwinCAT 3: Type Conversion and the two's complement
13. TwinCAT 3: Type conversion basics
Просмотров 529Год назад
13. TwinCAT 3: Type conversion basics
12. TwinCAT 3: Standard data types
Просмотров 717Год назад
12. TwinCAT 3: Standard data types
11. TwinCAT 3: Identifiers
Просмотров 703Год назад
11. TwinCAT 3: Identifiers
10. TwinCAT 3: Loading program code/ Login PLC
Просмотров 1,2 тыс.Год назад
10. TwinCAT 3: Loading program code/ Login PLC
09. TwinCAT 3: I/O Configuration
Просмотров 2 тыс.Год назад
09. TwinCAT 3: I/O Configuration
08. TwinCAT 3: Connect to the target system
Просмотров 1,3 тыс.Год назад
08. TwinCAT 3: Connect to the target system
07. TwinCAT 3: How does EtherCAT work
Просмотров 1,1 тыс.Год назад
07. TwinCAT 3: How does EtherCAT work
06.TwinCAT 3: Import and export a PLC project
Просмотров 1,4 тыс.Год назад
06.TwinCAT 3: Import and export a PLC project
05. TwinCAT 3: Creating a PLC project
Просмотров 1,1 тыс.Год назад
05. TwinCAT 3: Creating a PLC project
04. TwinCAT 3: UI Overview
Просмотров 1,5 тыс.2 года назад
04. TwinCAT 3: UI Overview
03. TwinCAT 3: Creating a new TC project
Просмотров 1,5 тыс.2 года назад
03. TwinCAT 3: Creating a new TC project
02. TwinCAT 3: Installation
Просмотров 2,7 тыс.2 года назад
02. TwinCAT 3: Installation
01. TwinCAT 3: Basics
Просмотров 5 тыс.2 года назад
01. TwinCAT 3: Basics

Комментарии

  • @younesmamdouh7845
    @younesmamdouh7845 13 дней назад

    Thank you for the great work that you delivered.

  • @Nycfeeds
    @Nycfeeds 27 дней назад

    Thats helpful 😊

  • @awaisali440
    @awaisali440 28 дней назад

    Cool

  • @seldom8718
    @seldom8718 28 дней назад

    Really cool project! I think my personalized candy machine algorithm would always give me a kind of candy that I haven't eaten before and then lecture me on the merits of vegetables.

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

    Nice video! but if i right click on my new referenced task, there isn't the add function?

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

      did you click on the task or on the referenced task object? watch the video again, starting at 4:28. We tried it also in TC 4026 and had no problems.

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

    Migration always failed in my case. It says, other twincat was detected. But nothing on the list is displayed. I un installed everything. And run the package manager. Again detected other twincat. And still nothing on the list. And will fail to migration and 64bit will not be installed..

  • @Facebook_Mum69
    @Facebook_Mum69 3 месяца назад

    Computer Monkey :)

  • @henrikross4489
    @henrikross4489 3 месяца назад

    How to write the sum function to be able to input the ARRAY OF ARRAY notation?

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

      We tried it out but did not finde a way to manage it. How about you? Did you find a way to write the sum function?

  • @WilliamElstad
    @WilliamElstad 3 месяца назад

    These tutorials are ai generated trash

  • @awaisali440
    @awaisali440 3 месяца назад

    how to migrate a twincat 3 project from 4024 to 4026?

    • @ninjamonkeystutorials
      @ninjamonkeystutorials 3 месяца назад

      In most cases the project will be converted automatically.

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

      Migration always failed in my case. It says, other twincat was detected. But nothing on the list is displayed. I un installed everything. And run the package manager. Again detected other twincat. And still nothing on the list. And will fail to migration and 64bit will not be installed..

  • @veramann
    @veramann 3 месяца назад

    What do they mean by solution files?

    • @ninjamonkeystutorials
      @ninjamonkeystutorials 3 месяца назад

      Do you mean the "solution explorer"? In this video we explain the TwinCAT UI and talk about the Solution Explorer: ruclips.net/video/a22xCNjDEWs/видео.html Maybe this will answer your question. :-)

    • @veramann
      @veramann 3 месяца назад

      @@ninjamonkeystutorials I meant files. My guess is, some instructors or teachers refer to the completed programs that are saved into a folder file.

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

    I didn't know a fever dream could be so educational.

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

    İt is different method to teach plc. It seems good and You also explain good. Lets go other videos 👏👏👏

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

    Sorry, cant do annoying AI generated stuff.l

  • @larbitalbi-zj2ik
    @larbitalbi-zj2ik 4 месяца назад

    You are the best

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

    The best of the best as always🎉 welcome back we were waiting for you and hope everything is ok 😊

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

    welcome back Ninja, please make it on regualr basis .:)

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

      normally we do that but Yeknom had a little accident. But we are back now! ruclips.net/user/postUgkxoL9fgwlP--yg0jQXo_TwDqhB0xfZ1RpS

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

      @@ninjamonkeystutorials Sorry for hearing so, welcome back again.

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

    I am a fan.

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

    So excited

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

    github.com/NinjaMonkeyTutorials/functions-part-two

  • @GlideologyCompany
    @GlideologyCompany 6 месяцев назад

    I dont have a PLC, can we connect to target?

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

      Srry for the late response, Yeknom had an accident! Anyway, just select <local> as target. You'll get a pop-up about missing licenses, just create a trial license by typing the equal characters.

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

    This video is very clear! The only thing that was slightly confusing was that the name of the DUT structure changed in the last part. Other than that, it was excellent, and closely followed the Beckhoff documentation.

  • @chudchadanstud
    @chudchadanstud 8 месяцев назад

    a program can also have methods and properties. GVLs can have properties.

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

      Never tried a property for a GVL before. Thanks for this hint! Normally, we do not use GVL excessively, but it offers nice possibilities with internal setters in libraries, for example.

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

    I dont get the point of using this kind of display, its far away and not 100% clear :(

  • @howardmiller1736
    @howardmiller1736 11 месяцев назад

    Great video guys - thanks; the bubble sort program is very useful. But why do you say so strongly that "A function returns exactly one data element when executed" at 0:35? You (correctly) say that output type variables can be decleared (2:46) and even show a FUN with multiple outputs being called at 5:05. Clearly, a functions can output multiple variables.

    • @ninjamonkeystutorials
      @ninjamonkeystutorials 11 месяцев назад

      Thank you, for your feedback! As long as you don't declare any further outputs, a function only returns one data element by default. Maybe, the word 'default' is missing, in the sentence you mentioned. :-]

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

      Yes, that's all you really needed here. Overall, a very good video, we shouldn't lose prespective.

  • @Nycfeeds
    @Nycfeeds 11 месяцев назад

    Hi again i am always waiting for your videos 🎉🎉

  • @Runtimevic
    @Runtimevic 11 месяцев назад

    Hi, 🙈🙉💯👍

  • @Runtimevic
    @Runtimevic 11 месяцев назад

    Hello, I miss the monkeys, I like them a lot 🙈🙉

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

    great work! and I like the main;)

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

    Was waiting for new videos im glad to see new tutorials again

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

    Just warning yall, that there is a simpler way to write out a multidimensional array, however this is still a good start.

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

      Oh, there is a third variant, what does it look like? I only know array[0 .. 2, 0 .. 3] and array of array. Both notations are shown in the video. In my opinion, array of array is the better one.

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

    Great content 👍

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

    Great content, keep going im waiting for advanced topics Nci NcPTP CNC and MC Xplanar XTS

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

    Gracias

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

    Are these videos targeted to children? Why the kindergarten graphics and weird fonts? You are covering PLC topics and using childish animation. Doesn't look very professional.

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

      Children are not our target group. Our main audience is between 25 and 45 years old. We like to explain difficult topics with humor. That's why we use animations that might not be typical for such topics.

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

      @@ninjamonkeystutorials hahaha ,so cute

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

      @@ninjamonkeystutorials There is no problem with animations the content is rich and i like that keep going

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

    Thanks for your videos. Just one suggestion, why don't u make the TwinCAT window fullscreen so that it's easier to see. Your small window is also tilted which makes it difficult to read what you're showing.

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

      Thank you for the feedback! We will change that in upcoming videos with code examples.

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

    TwinCAT window is to small for watching on phone. Next time I recommend you to make it fullscreen or zoom it to code. Anyway thanks for good content.👍

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

      Thank you for your feedback! We will change that in upcoming videos with code examples.

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

    I don't get why this channel has kindergarten level animation for an advanced topic like this?

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

      Why not? I think this is nicely done and easy to understand.

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

    🙈🙉🙊

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

    Nice.. its helping for new programer to learn about TWINCAT.. keep going

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

    With these implicit check POUs, we see this sentence in the creation dialogue: "Note: Adding a checkfunction will provoke a full recompile and prohibit an online change" I can understand the need for a full re-compile, but what's meant by probiting online changes? I've been able to do online edits even after adding implicit checking POUs.

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

    Well done guys, another great video with very clear explanations - thank you! Please keep making them 😊😊 1) Are we missing video #17? Maybe you forgot to post it ?? 2) At around 9:50, you started to say that arrays have a maxmum of 20,000 elements (although the sentence wasn't completed). I don't think this is right - I don't believe there's a prescribed limit to array size 3) I couldn't get my program to compile the way you had it - I had to define my array as bContainer3 : Array[0..1, 0..1, 0..3] of INT ... Then it compiled and worked fine. Thanks again for everything,

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

      Hey, 1. We corrected the number. ;) 2. You are absolutely right. Yeknom did not say, that an array is limited to 20.000 elements. The sentence is cut off. He said: "20.000 are the maximum of elements TwinCAT can display". Thank you for your feedback.

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

      ​@@ninjamonkeystutorials Thank you for clarfying this, so the 20,000 relates to the maximum number that can be displayed. Once again guys, well done with these videos, you're explaining how to use a very powerful product in Beckhoff

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

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

    i'd like to thank you and thank the one who make me know your channel

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

    Hi, Mr. NIJIA. Can I install TwinCAT 3 into pc Win11 visual Studio Community 2022? Thanks.

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

      Hey, It is possible to integrate TwinCAT 3 in full versions of Visual Studio 2013-19 or Visual Studio Shell 2013-2019. It is not possible yet to integrate it in Visual Studio Community 2022, but it could be that this is changing in version 40.26. :-)

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

      @@ninjamonkeystutorials thanks a lot.

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

    Hello, my best congratulations is very original and quality content... I am also taking an OOP course in my free time: ruclips.net/p/PLEfi_hUmmSjFpfdJ6yw3B9yj7dWHYkHmQ

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

    Let's make about Software protection, monkey friends