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

Поділитися
Вставка
  • Опубліковано 30 жов 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!

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

    Wow, che bravo che sei. Complimenti.

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

    Very good tutorial. Gracie

  • @mayconlutz3090
    @mayconlutz3090 7 років тому

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

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

    This is what i wanna exactly find. Thanks.

  • @321zipzapzoom
    @321zipzapzoom 4 роки тому

    Nicely Explained Brother

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

    Realy great stuff...

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

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

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

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

    Muito bom! Realmente bem explicado.

  • @tt-ve7qr
    @tt-ve7qr 2 роки тому

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

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

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

  • @markcjohnsen
    @markcjohnsen 7 років тому

    Great video! thank you.

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

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

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

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

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

  • @khaihoanle5314
    @khaihoanle5314 7 років тому

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

  • @umanleok22a
    @umanleok22a 5 років тому

    Thank u so much

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

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

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

  • @alz4452
    @alz4452 5 років тому

    Genius

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

    Too small the character on the ide environment

  • @huytruongdinh6456
    @huytruongdinh6456 5 років тому

    Woowwwwwww

  • @den3v
    @den3v 6 років тому

    pRRRRReZentaCHion