Arrays, Structures and User Defined Types! How and Why?

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • Here's an explanation on data types and how to know what/how to use them!
    Find it out here!
    Downloadlink TIA V16 (you need to register on the website):
    support.indust...
    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.c...

Komentáře • 70

  • @erolkeyfoglu311
    @erolkeyfoglu311 Před 4 lety +2

    106/5000
    I think it has been much more useful than Siemens' help texts. Siemens should thank you.

  • @adrian-stefan3053
    @adrian-stefan3053 Před 4 lety +1

    Deine videos sind großartig!!! 👌
    Ich habe andere Leute gesehen, die die Grundlagen und die Verwendung von SPS (TIA Portal) präsentieren, aber von ihren Videos, ich habe nicht so gut verstanden wie aus Deinen Videos.
    Es hilft mir persönlich sehr! Die Art und Weise, wie Du es mit Beispielen, und alle der rest ist TOLL.
    Ich kann Dir nur sagen, aus meinem Herzen ein aufrichtiges 'DANKE'.🍻

  • @oogalook
    @oogalook Před 4 lety +3

    Thanks for another really helpful video! You always move at a perfect pace and cover all of our questions.

    • @leoantonio5477
      @leoantonio5477 Před 3 lety

      i dont mean to be so off topic but does any of you know of a way to get back into an instagram account?
      I was dumb forgot my login password. I appreciate any tips you can give me.

    • @carterandy7202
      @carterandy7202 Před 3 lety

      @Leo Antonio Instablaster :)

    • @leoantonio5477
      @leoantonio5477 Před 3 lety

      @Carter Andy I really appreciate your reply. I found the site on google and im in the hacking process atm.
      Seems to take a while so I will reply here later when my account password hopefully is recovered.

    • @leoantonio5477
      @leoantonio5477 Před 3 lety

      @Carter Andy it did the trick and I actually got access to my account again. I'm so happy!
      Thanks so much you saved my ass :D

    • @carterandy7202
      @carterandy7202 Před 3 lety

      @Leo Antonio You are welcome :)

  • @gpmscosta
    @gpmscosta Před 2 lety +2

    Having to be able to change, add or remove variables from tons of states or different machines in huge projects, I find UDTs quite useful. Arrays and structures are interesting too, you can make arrays or structures of different UDTs, it's quite useful. Thanks for your lessons, Hega!

    • @silentbob1236
      @silentbob1236 Před 2 lety +2

      I just started usinng structures and I love them. I set each of my IO points into a structure with multiple other structures storing the scaling values, alarms setpoints, config info, smoothed values, ect. It makes it really easy to find tags, and entering multple tags into a functon is cut way down. You also pass all of the information to the HMI with one tag. If you add another tag to the stucture, all you need to do is reupload, you dont need to add the tags to the HMI.

  • @rajlaxmiprajapati469
    @rajlaxmiprajapati469 Před 4 lety +1

    really helpful video sir .
    respect & love from India.

  • @saeed2tube
    @saeed2tube Před 4 lety +7

    Hi.
    If you can please make clip about indirect addressing.🙏

  • @gianzap
    @gianzap Před 4 lety

    hi,im italian technician,thanks for your wonderful work in all your videos...thanks very much
    you are the best guide to my study..(sorry for my bad english)

  • @zebulonzhou6912
    @zebulonzhou6912 Před 4 lety

    You are a good teacher. Like your videos very much.

  • @marvinn42
    @marvinn42 Před 2 lety +2

    There's another type of Structure - which uses the AT system - Could you do another video to show us how that works - Thanks for a great set of videos

  • @losantonio9049
    @losantonio9049 Před 8 měsíci

    Thank you sir!
    Please make a video how to address variable datatype nested inside structures to hardware.
    For example how to address start and running bool datatype to hardware addresses.
    Thank you in advance! Great work!

  • @Youness-Ladib
    @Youness-Ladib Před 4 lety +3

    Hi, I find your videos so much useful thanks for you're explanation and videos about Tia Portal
    I just went if you can talking about sinamics and simotion and communication with plc

  • @owinookello9358
    @owinookello9358 Před 2 lety

    this guy is great good educative videos thanks sir

  • @user-cy6iw3us7o
    @user-cy6iw3us7o Před 5 měsíci

    super job. Thanks!!!!!!!

  • @MrPyroman420
    @MrPyroman420 Před 6 měsíci

    Thank you So Much. Your video's are really helpfull to me. Very clear and easy to follow and listen to.

  • @dnyaneshwargobade7846
    @dnyaneshwargobade7846 Před 3 lety

    Sir, You are really awesome.

  • @ATOMACH
    @ATOMACH Před 3 lety

    Thank you....made it easy to understand

  • @neelsherman6436
    @neelsherman6436 Před 2 lety +1

    Hi, Like the way you explain things. Can you think of Making a video and explaining when do you select retain and setpoint etc. in a data block ?

  • @bhagyodayasinghjadhav
    @bhagyodayasinghjadhav Před 3 lety

    Thank you sir...
    Very nice explanation

  • @machineryoverhaulretrofitm6607

    u r always great

  • @marouanebayad
    @marouanebayad Před 4 lety

    thanks you so much for your explaining and efforts you done a great job...keep up

  • @suriyat8773
    @suriyat8773 Před 2 lety

    Thank you

  • @BerryBagmeijer
    @BerryBagmeijer Před rokem

    Don't forget that UDT's can have a default value...

  • @ArtWolfProductions
    @ArtWolfProductions Před rokem

    Hi, I have a Boolean in my PLC data type "logging". I have a DB "Sensorlogging" with a Production Array of type "logging". In the "logging" PLC data type there is a boolean. I want to log and write the status of the boolean to Sensorlogging.Production[0].Sensor_Pot
    I tried:
    A Sensor_Pot
    T Sensorlogging.Production[0].Sensor_Pot
    This doesn't seem to work as it wouldn't allow me to transfer a bit.
    Any suggestions?

  • @framos9991
    @framos9991 Před rokem

    Helpful! Thanks!

  • @ajayogliya7287
    @ajayogliya7287 Před 3 lety

    Thank you sir this video's is vary help full

  • @georgeabalon6481
    @georgeabalon6481 Před 3 lety

    Nice video. Very helpful

  • @JinsonKurianVJames
    @JinsonKurianVJames Před 4 lety +1

    Super cool

  • @condaungayxuaay
    @condaungayxuaay Před 9 měsíci

    Thanks

  • @nazimmirza9421
    @nazimmirza9421 Před 4 lety

    Kindly make a vedio on memory bits and how adressing is done in TIA portal.

  • @gajendram6462
    @gajendram6462 Před 3 lety

    Superb sir

  • @richardrajhoczki376
    @richardrajhoczki376 Před 4 lety +1

    Helo, very good video!!!
    I have a very old and frustrating question. When use PLC tag and when Data blocks?

  • @AO-yw3gz
    @AO-yw3gz Před 2 lety

    @hegamurl can you do indirect addressing video please

  • @mkrisan
    @mkrisan Před rokem

    Could you please explain ANY pointer. Vielen Dank

  • @mahmudrajon9104
    @mahmudrajon9104 Před 4 lety

    Very helpful.

  • @SudaXzzz
    @SudaXzzz Před 2 lety

    Lifesaver

  • @CosminRusu154
    @CosminRusu154 Před 3 lety

    Thank you!

  • @mubarishussain3696
    @mubarishussain3696 Před 4 lety +1

    Perfect

  • @delisoranamaria6466
    @delisoranamaria6466 Před 4 lety +1

    Hello! I come back with another question:
    I use a TCP conexion for a PLC 1200 as server: sometimes i have a time out error, the client send a disconnection request, after that the PLC send the keep alive bit and the CLIENT accept the bit keep alive, so the PLC don't start another connection. Can you help me to explain better this situation or to have a solution for this problem?

    • @hegamurl7434
      @hegamurl7434  Před 4 lety

      Hmmm I don't exactly get the problem, your PLC does not want to disconnect? Sounds very strange (a lot of those things are automatically handled because you use "TCP").
      There is a lot of diagnostics already implemented in TIA Portal that might help... I explain the most important thing here: czcams.com/video/8qkmAO7Ey_w/video.html
      Maybe that helps!

  • @maxpenfold8699
    @maxpenfold8699 Před 4 lety

    Sehr gutes Englisch und super Video.

  • @mr.write1433
    @mr.write1433 Před měsícem

    wow nice

  • @khachapatrachatamethin7484

    How could we save the UDT and use in another project ?

  • @user-en4tw8eg4q
    @user-en4tw8eg4q Před 3 lety

    Can not find video of summing over all array values, whatever thank you from Kazakhstan for helpfull video!

  • @GenX_Gaming_PUBG
    @GenX_Gaming_PUBG Před 4 lety

    Hallo Hegamurl,
    Ich habe eine Frage an Sie,
    Ich möchte Conveyor Position über Encoder Überwachen,aber es gibt ein Problem!
    Obwohl ich HSC aktiv habe und die Adresse (Dint) ID1000 ins Variablentabelle rein geschrieben habe, Program sieht das nicht!
    Factory IO 2.4.0 und TIA V14 die frage ist, kann ich überhaupt Position siehen über Simulations Programe?
    Also Encoder Signal A Bool
    Encoder Signal B Bool
    HSC Hw id 257
    Typ Count
    Operating A/B Counter
    Initial Count Up
    I/O Adresse Dint(ID1000)
    Komischeweise Signale A und B sind am Blinken, aber keine Position zu siehen
    Können Sie mir Helfen um rausfinden wo das Problem liegt?
    Danke im Voraus

  • @0Nadim0
    @0Nadim0 Před rokem

    very useful content, thank you so much!
    plus, can you leave your linkedIn link if you're using it? thanks!

  • @photosapientt
    @photosapientt Před 3 lety

    How can I use index as a variable within an array without using SCL?

  • @ahmedebrahim7593
    @ahmedebrahim7593 Před 4 lety +1

    Can you please upload those symbol tag table which would be helpful

    • @hegamurl7434
      @hegamurl7434  Před 4 lety +1

      I unfortunately already deleted the project (at least I can't find it anymore). I am currently working to create a forum where I can share future content!

  • @trollquantum
    @trollquantum Před 4 lety

    And what about instance DB?

  • @binarynumbers7681
    @binarynumbers7681 Před 4 lety

    What's the actual difference between using a Struct compared to a UDT? Can't understand the differences and when to use which?

    • @user-su1ll9dl1h
      @user-su1ll9dl1h Před 4 lety +2

      If you change the UDT (for example add a new variable) it will take effect in all affiliated structures. UDT is something like a template for structures.

  • @jeffreydijkstra3391
    @jeffreydijkstra3391 Před 2 lety

    Very usefull thnx! , btw does anyone know if it is possible to create a GUID? a random generated number datatype?

  • @raviteja-sz9jt
    @raviteja-sz9jt Před rokem

    Nice video . Is Tia supports muti dimensional array ?

  • @familjen5863
    @familjen5863 Před 3 lety

    hi!
    can you do the difference betweeen a local and global variables

  • @johanneskampfl6794
    @johanneskampfl6794 Před 2 lety

    Best

  • @AkhilPG369
    @AkhilPG369 Před 4 lety

    Hi
    What if we use struct inside an array of 50 struct?

    • @AkhilPG369
      @AkhilPG369 Před 4 lety

      Tell me about using the array and struct for communication for any type

  • @yokeshbalajiravichandran2934

    can you make a video on array in scl language

  • @mahsahassani1475
    @mahsahassani1475 Před 3 lety

    Hi Philip. Thank you for your good videos. Can you put the subtitles in English To be translated correctly into other languages. Dankeschön :)

  • @yoghurtedchikenpneumatics749

    hi, i have a comment

  • @user-wl4my6ue7e
    @user-wl4my6ue7e Před 2 měsíci

    A lot more better IF you forget about LAD at all an will do (and remske this video) just on SCL. This ugly conseption run FBD (that created on SCL) in LAD... Oh shoot... Just SCL please!

  • @santoelectron
    @santoelectron Před 2 lety +1

    Please make the videos much shorter by editing them. Your videos are good but have info not needed to be explained for so long. Thanks