資源簡介
分享github案例 Sharp7連接西門子PLC
代碼片段和文件信息
/*=============================================================================|
|??PROJECT?Sharp7????????????????????????????????????????????????????????1.0.3?|
|==============================================================================|
|??Copyright?(C)?2016?Davide?Nardella??????????????????????????????????????????|
|??All?rights?reserved.????????????????????????????????????????????????????????|
|==============================================================================|
|??Sharp7?is?free?software:?you?can?redistribute?it?and/or?modify??????????????|
|??it?under?the?terms?of?the?Lesser?GNU?General?Public?License?as?published?by?|
|??the?Free?Software?Foundation?either?version?3?of?the?License?or???????????|
|??(at?your?option)?any?later?version.?????????????????????????????????????????|
|??????????????????????????????????????????????????????????????????????????????|
|??It?means?that?you?can?distribute?your?commercial?software?which?includes????|
|??Sharp7?without?the?requirement?to?distribute?the?source?code?of?your????????|
|??application?and?without?the?requirement?that?your?application?be?itself?????|
|??distributed?under?LGPL.?????????????????????????????????????????????????????|
|??????????????????????????????????????????????????????????????????????????????|
|??Sharp7?is?distributed?in?the?hope?that?it?will?be?useful???????????????????|
|??but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of??????????????|
|??MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the???????????????|
|??Lesser?GNU?General?Public?License?for?more?details.?????????????????????????|
|??????????????????????????????????????????????????????????????????????????????|
|??You?should?have?received?a?copy?of?the?GNU?General?Public?License?and?a?????|
|??copy?of?Lesser?GNU?General?Public?License?along?with?Sharp7.????????????????|
|??If?not?see??http://www.gnu.org/licenses/???????????????????????????????????|
|==============================================================================|
History:
?*?1.0.0?2016/10/09?First?Release
?*?1.0.1?2016/10/22?Added?CoreCLR?compatibility?(CORE_CLR?symbol?must?be?
????????????????????defined?in?Build?options).
????????????????????Thanks?to?Dirk-Jan?Wassink.
?*?1.0.2?2016/11/13?Fixed?a?bug?in?CLR?compatibility
?*?1.0.3?2017/01/25?Fixed?a?bug?in?S7.GetIntAt().?Thanks?to?lupal1
????????????????????Added?S7Timer?Read/Write.?Thanks?to?Lukas?Palkovic?
*/
using?System;
using?System.Runtime.InteropServices;
using?System.Text;
using?System.Threading;
using?System.Collections.Generic;
//------------------------------------------------------------------------------
//?If?you?are?compiling?for?UWP?verify?that?WINDOWS_UWP?or?NETFX_CORE?are?
//?defined?into?Project?Properties->Build->Conditional?compilation?symbols
//------------------------------------------------------------------------------
#if?WINDOWS_UWP?||?NETFX_CORE
using?System.Threading.Tasks;
using?Windows.Networking;
using?Windows.Networking.Sockets;
using?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\
?????文件????????4195??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\.gitignore
?????文件????????1075??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\LICENSE
?????文件?????????339??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\README.md
?????目錄???????????0??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\Sharp7Library\
?????目錄???????????0??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\Sharp7Library\Properties\
?????文件????????1402??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\Sharp7Library\Properties\AssemblyInfo.cs
?????文件??????131480??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\Sharp7Library\Sharp7.cs
?????文件????????2409??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\Sharp7Library\Sharp7Library.csproj
?????目錄???????????0??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Infrastructure\
?????目錄???????????0??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Infrastructure\PlcServices\
?????文件?????????252??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Infrastructure\PlcServices\ConnectionStates.cs
?????目錄???????????0??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Infrastructure\Properties\
?????文件????????1424??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Infrastructure\Properties\AssemblyInfo.cs
?????文件?????????388??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Infrastructure\Regions.cs
?????文件????????2490??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Infrastructure\SimpleHmi.Infrastructure.csproj
?????目錄???????????0??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Plc2Service\
?????文件????????1572??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Plc2Service\DummyPlc2Service.cs
?????文件?????????492??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Plc2Service\IPlc2Service.cs
?????文件????????2351??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Plc2Service\ModbusPlc2Service.cs
?????目錄???????????0??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Plc2Service\Properties\
?????文件????????1418??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Plc2Service\Properties\AssemblyInfo.cs
?????文件????????3067??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Plc2Service\SimpleHmi.Plc2Service.csproj
?????文件?????????133??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.Plc2Service\packages.config
?????目錄???????????0??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.PlcService\
?????文件????????2766??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.PlcService\DummyPlcService.cs
?????文件?????????656??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.PlcService\IPlcService.cs
?????目錄???????????0??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.PlcService\Properties\
?????文件????????1416??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.PlcService\Properties\AssemblyInfo.cs
?????文件????????7625??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.PlcService\S7PlcService.cs
?????文件????????2961??2017-03-24?22:41??HMI-with-WPF-part-3-Communication-with-multiple-plc-master\SimpleHmi.PlcService\SimpleHmi.PlcService.csproj
............此處省略60個文件信息
評論
共有 條評論