2021-09-22 09:09:20 索煒達(dá)電子 1701
項目編號:D21
文件大?。?M
源碼說明:帶中文注釋
開發(fā)環(huán)境:.cs
簡要概述:
使用C#編程語言編寫PLC上位機軟件,本程序使用WPF做界面,C#做邏輯,為了界面美觀使用了老外的一個開源皮膚框架,邏輯代碼為了和S7-1200通訊使用了行內(nèi)一位大神的庫。
下面來看看界面,再一一介紹下程序框架:
主界面(使用一個win窗口來作為顯示,界面左側(cè)有彈出菜單,界面內(nèi)容通過菜單按鈕調(diào)用Page來實現(xiàn)界面內(nèi)容轉(zhuǎn)換)
目錄│文件列表:
└ C#+WPF編寫S7-1200上位機 含源碼+文檔
│ 文檔.docx
└ NormalizingApp
│ NormalizingApp.sln
└ NormalizingApp
│ App.config
│ App.xaml
│ App.xaml.cs
│ LoginWindow.xaml
│ LoginWindow.xaml.cs
│ MainWindow.xaml
│ MainWindow.xaml.cs
│ NormalizingApp.csproj
│ TextInputBox.xaml
│ TextInputBox.xaml.cs
│ zt.ico
├ Data
│ ├ AccessTemplate
│ │ └ Template.accdb
│ ├ CFG
│ │ └ LoginCFG.ini
│ ├ Name
│ │ └ name.txt
│ ├ Palette
│ │ └ Palette.txt
│ ├ Recipe
│ │ └ DataRecipe.xml
│ ├ UserData
│ │ └ User.accdb
│ └ WorkData
│ └ 2018
│ ├ 201805
│ │ └ 20180507.accdb
│ ├ 201807
│ │ │ 20180706.accdb
│ │ │ 20180719.accdb
│ │ └ 20180723.accdb
│ ├ 201808
│ │ └ 20180804.accdb
│ ├ 201809
│ │ │ 20180904.accdb
│ │ │ 20180905.accdb
│ │ │ 20180911.accdb
│ │ └ 20180912.accdb
│ ├ 201810
│ │ │ 20181012.accdb
│ │ │ 20181028.accdb
│ │ │ 20181030.accdb
│ │ └ 20181031.accdb
│ └ 201811
│ │ 20181101.accdb
│ │ 20181102.accdb
│ │ 20181103.accdb
│ │ 20181105.accdb
│ │ 20181106.accdb
│ │ 20181106.laccdb
│ │ 20181113.accdb
│ └ 20181114.accdb
├ DataBase
│ │ CQServices.cs
│ └ DBHelp.cs
├ dll
│ │ CircularGauge.dll
│ │ Dragablz.dll
│ │ DynamicDataDisplay.dll
│ │ HslCommunication.dll
│ │ Interop.ADOX.dll
│ │ MahApps.Metro.dll
│ │ MaterialDesignColors.dll
│ │ MaterialDesignThemes.MahApps.dll
│ │ MaterialDesignThemes.Wpf.dll
│ │ Newtonsoft.Json.dll
│ └ System.Windows.Interactivity.dll
├ Lib
│ │ AsyncObservableCollection.cs
│ │ BinaryFile.cs
│ │ ControlBinding.cs
│ │ INIFile.cs
│ │ MyValueEvent.cs
│ └ S71KConnect.cs
├ Messagebox
│ │ CMessageBox.cs
│ │ CMessageBoxWindow.xaml
│ └ CMessageBoxWindow.xaml.cs
├ Models
│ │ Alarm.cs
│ │ DataBaseRecord.cs
│ │ MainWindowItem.cs
│ │ MyDataRecipe.cs
│ │ PLCItems.cs
│ └ ProductNumber.cs
├ MVVM
│ │ AnotherCommandImplementation.cs
│ │ MyCommand.cs
│ │ MyCommandGeneric.cs
│ │ MyEventCommand.cs
│ │ NotifyObject.cs
│ └ NotifyPropertyChangedExtension.cs
├ Properties
│ │ AssemblyInfo.cs
│ │ Resources.Designer.cs
│ │ Resources.resx
│ │ Settings.Designer.cs
│ └ Settings.settings
├ Resources
│ │ error.png
│ │ Question.png
│ │ warning.png
│ │ windowsLogo.png
│ └ zt.ico
├ Style
│ └ SliderStyle.xaml
├ ViewModels
│ │ AlarmSystemPageViewModel.cs
│ │ AutoPageViewModel.cs
│ │ CurvePageViewModel.cs
│ │ HomePageViewModel.cs
│ │ LoginWindowViewModel.cs
│ │ MainWindowViewModel.cs
│ │ ManualPageViewModel.cs
│ │ PaletteSelectorViewModel.cs
│ └ TextInputBoxViewModel.cs
└ Views
│ AlarmSystemPage.xaml
│ AlarmSystemPage.xaml.cs
│ AutoPage.xaml
│ AutoPage.xaml.cs
│ CurvePage.xaml
│ CurvePage.xaml.cs
│ DataQueryPage.xaml
│ DataQueryPage.xaml.cs
│ HomePage.xaml
│ HomePage.xaml.cs
│ IORegionControl.xaml
│ IORegionControl.xaml.cs
│ ManualPage.xaml
│ ManualPage.xaml.cs
│ Palette.xaml
│ Palette.xaml.cs
│ SampleProgressDialog.xaml
│ SampleProgressDialog.xaml.cs
│ SystemSet.xaml
│ SystemSet.xaml.cs
│ UserPaletteSelector.xaml
└ UserPaletteSelector.xaml.cs