Simple HMI with C# and WPF part 1: create a UI and connect to a Siemens S7 plc

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

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

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

    omg, this is so crazy. two years ago i watched probably exactly this tutorial series and made a HMI with C# like yours. two years later my brain completely reset itself. i didnt know anything about prism and mvvm, so i tried to learn from scratch. i found my project from two years and was mindblown how i did program that because i have no idea about anything anymore, lol :-D now after some searching i found t his video AGAIN and i guess i have to start from scratch again....this is so weird :-D it was just a hobby project for me :-) lol

  • @yuzhezhou9953
    @yuzhezhou9953 7 лет назад +5

    We have a lot in common, I am also applying an HMI application with C# and MVVM pattern. Glad to see your videos.

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

    This is so rad...just watching you implement the programming constructs i'm learning about in a book is ..🤯..i am enlightened

  • @a_sava
    @a_sava 7 лет назад

    Brilliant tutorial Man! 5+
    Previously I have made few simple HMI using Delphi + libnodave, but when I tried to repeat the same thing with c # + wpf + mvvm, i'm always stuck on different steps. Finally I put it to better times. Your tutorial explained me many things about mvvm that was unclear.
    Keep going!

  • @AdityaKundety
    @AdityaKundety 5 лет назад

    Thank you for your work. With your help the first step to MVVM has been comfortable.
    Would it be possible to do a binding programmatically bind a variable on the View class to the viewmodel property (not in xaml but in c# class)?

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

    Wow, che bravo che sei. Complimenti.

  • @donomeniko
    @donomeniko 7 лет назад

    Hello Michele,
    i'm interested how fast would be your HMI application in case to communicate with 5-10 CPU connections, and around 4k-15k Tags?
    Do you have had something like that?
    I really appreciate your work and thank you for examples you are sharing with the community.

    • @Mesta-automation
      @Mesta-automation  7 лет назад

      Very short reply, but take a look in the next days on my website, as I'm writing an article to explain more in details.
      Regarding the User Interface part, with WPF you are choosing the best technology available at the moment for desktop applications.
      About the drivers, you can choose between OPC servers or external libraries.
      In case of external libraries, the driver is as fast as you can optimize the data that you have to read.
      The less TCP requests you do, the faster your refresh time can be. But always take into account the network balance in case of multiple plc.
      My standard scan time is 100ms. For big applications it can be increased if there is the need, but I would rarely go above 200 ms.

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

    hmm HMI on .NET .. are there cheaper HMI's on the market than Siemens KTP models? Do these cheaper HMI's have IE/ProfiNET ports? just wondering...

  • @ZexDCeu
    @ZexDCeu 7 лет назад

    Does Sharp7 offer the same functions that Siemens Create MyHmi .NET package has? In particular does it have event callback on plc items change? Thanks

  • @illusioniste00
    @illusioniste00 6 лет назад

    Great efforts. I'm happy to see what you are doing, and you helped me a lot.
    I'm working on a project that will involve entity framework and snap7. It's a kind of refactory for my old project based on wincc and sql server with wincc VB commands. I'd like to protect the logics inside the PLC, and for that reason I'm writing all my Grafcets on Csharp using PropertyChanged events. Anyway, I just want to ask you if you think it is a good idea?

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

    This is what i wanna exactly find. Thanks.

  • @mayconlutz3090
    @mayconlutz3090 7 лет назад

    Muito legal, eu também utilizo o Sharp 7 com Wpf e obtenho ótimos resultados, muito bom seus videos :D

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

    Very good tutorial. Gracie

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

    Hi, If plc bit On I want see ON-OFF in c# and make a trigger for saving actual data to database. can you help me please.

  • @tt-ve7qr
    @tt-ve7qr 2 года назад

    How can we read more bool or integer from db1 without creating struct or Array one by one

  • @321zipzapzoom
    @321zipzapzoom 4 года назад

    Nicely Explained Brother

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

    Realy great stuff...

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

    sorry, "filling level" doesn't change, can you help me to fix it, please

  • @石川さゆり-r1m
    @石川さゆり-r1m 6 лет назад

    can we possibly make the component ourselve using C# ?

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

    hey sir i want to deploiement an application with s7.net how can i do it thank you

  • @xavierdenis2282
    @xavierdenis2282 7 лет назад

    Hi; thanks for you're videos. Can we retrieve informations from multiples PLC in the same windows ??

    • @Mesta-automation
      @Mesta-automation  7 лет назад

      Yes, of course you can.
      In this video I used a single plc service and I called it S7PlcService. In case of multiple Plc I would create multiple services, and name them with meaningful names. Then in the ViewModel I would use the services that I need.
      I will talk about this in the next videos.

  • @khaihoanle5314
    @khaihoanle5314 7 лет назад

    I want create one the library for my HMI. How do me do?

  • @christian482
    @christian482 7 лет назад

    what is its better to work with plc in c#, WPF or WinForms?? and why??

    • @Mesta-automation
      @Mesta-automation  7 лет назад +1

      I use WPF and in my website I talk only about WPF.
      Personally of WPF I like XAML, MVVM and how easy is to create customized controls and applications, once you learned the foundamentals.
      You can google WPF vs WinForms if you are looking for more details.

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

    Muito bom! Realmente bem explicado.

  • @luslus..19
    @luslus..19 7 лет назад

    Hello Mesta,
    I do not understand everythink with MVVM framework you do not need Sharp7 or Snap7 librairie ?

    • @Mesta-automation
      @Mesta-automation  7 лет назад

      This project uses Sharp7 library to communicate with the plc. WPF is used for the graphic, and MVVM is the pattern that it's reccomended to use when developing with WPF, or XAML in general. There are plenty of tutorials on youtube and on internet in general about MVVM.

    • @luslus..19
      @luslus..19 7 лет назад

      Mesta,
      Understood, thanks I will work on it !

    • @krs8595
      @krs8595 7 лет назад

      Is MVVM open source?

    • @den3v
      @den3v 6 лет назад

      ratan singh : looooooooooooooooooooooooooooool !!!!

  • @markcjohnsen
    @markcjohnsen 7 лет назад

    Great video! thank you.

  • @karlosebalj7025
    @karlosebalj7025 6 лет назад

    can you send me tia portal project to see what kind of logic did you make there pls

  • @mehmetturan8500
    @mehmetturan8500 7 лет назад

    i downloaded but it is not working

  • @umanleok22a
    @umanleok22a 5 лет назад

    Thank u so much

  • @alz4452
    @alz4452 5 лет назад

    Genius

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

    Too small the character on the ide environment

  • @huytruongdinh6456
    @huytruongdinh6456 6 лет назад

    Woowwwwwww

  • @den3v
    @den3v 6 лет назад

    pRRRRReZentaCHion