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
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!
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)?
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.
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.
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?
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.
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.
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.
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
We have a lot in common, I am also applying an HMI application with C# and MVVM pattern. Glad to see your videos.
This is so rad...just watching you implement the programming constructs i'm learning about in a book is ..🤯..i am enlightened
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!
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)?
Wow, che bravo che sei. Complimenti.
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.
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.
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...
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
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?
This is what i wanna exactly find. Thanks.
Muito legal, eu também utilizo o Sharp 7 com Wpf e obtenho ótimos resultados, muito bom seus videos :D
Very good tutorial. Gracie
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.
How can we read more bool or integer from db1 without creating struct or Array one by one
Nicely Explained Brother
Realy great stuff...
sorry, "filling level" doesn't change, can you help me to fix it, please
can we possibly make the component ourselve using C# ?
hey sir i want to deploiement an application with s7.net how can i do it thank you
Hi; thanks for you're videos. Can we retrieve informations from multiples PLC in the same windows ??
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.
I want create one the library for my HMI. How do me do?
what is its better to work with plc in c#, WPF or WinForms?? and why??
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.
Muito bom! Realmente bem explicado.
Hello Mesta,
I do not understand everythink with MVVM framework you do not need Sharp7 or Snap7 librairie ?
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.
Mesta,
Understood, thanks I will work on it !
Is MVVM open source?
ratan singh : looooooooooooooooooooooooooooool !!!!
Great video! thank you.
can you send me tia portal project to see what kind of logic did you make there pls
i downloaded but it is not working
Thank u so much
Genius
Too small the character on the ide environment
Woowwwwwww
pRRRRReZentaCHion