实例介绍
C#读取ABPLC的调试工具软件程序源码,程序实现了PLC数据的读取和写入。使用动态决策算法实现在在多标签数据读取时的请求最优组合规划。同时还提供了一个ABPLC的模拟器软件用于模拟实现PLC设备。代码使用最基础的.net2.0开发,完全基于AB的EIP和CIP协议开发。没有使用三方DLL库。程序简单高效。
【实例截图】
【核心代码】
6f48dcb3-e4d3-4ccb-970f-f4ff8a12e783
└── AB
├── ABClient
│ ├── ABClient.csproj
│ ├── ABClient.csproj.user
│ ├── ABClient_TemporaryKey.pfx
│ ├── app.config
│ ├── bin
│ │ └── Debug
│ │ ├── ABClient.application
│ │ ├── ABClient.exe
│ │ ├── ABClient.exe.config
│ │ ├── ABClient.exe.manifest
│ │ ├── ABClient.pdb
│ │ ├── ab.config
│ │ └── Newtonsoft.Json.Net20.dll
│ ├── FormMain.cs
│ ├── FormMain.Designer.cs
│ ├── FormMain.resx
│ ├── FormWrite.cs
│ ├── FormWrite.Designer.cs
│ ├── FormWrite.resx
│ ├── Manager
│ │ ├── ABClientDevice.cs
│ │ └── ABCmdBuilderManager.cs
│ ├── Model
│ │ ├── ABConfigData.cs
│ │ ├── ABDeviceData.cs
│ │ ├── ABRuntimeData.cs
│ │ ├── CMDType.cs
│ │ ├── MutilPacketData.cs
│ │ └── Tag.cs
│ ├── obj
│ │ ├── Debug
│ │ │ ├── ABClient.application
│ │ │ ├── ABClient.csprojAssemblyReference.cache
│ │ │ ├── ABClient.csproj.CopyComplete
│ │ │ ├── ABClient.csproj.CoreCompileInputs.cache
│ │ │ ├── ABClient.csproj.FileListAbsolute.txt
│ │ │ ├── ABClient.csproj.GenerateResource.cache
│ │ │ ├── ABClient.exe
│ │ │ ├── ABClient.exe.manifest
│ │ │ ├── ABClient.FormMain.resources
│ │ │ ├── ABClient.FormWrite.resources
│ │ │ ├── ABClient.pdb
│ │ │ ├── ABClient.Properties.Resources.resources
│ │ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ └── TempPE
│ │ │ └── Properties.Resources.Designer.cs.dll
│ │ └── Release
│ │ └── ABClient.csproj.CoreCompileInputs.cache
│ ├── packages.config
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── publish
│ │ ├── ABClient.application
│ │ ├── Application Files
│ │ │ └── ABClient_1_0_0_0
│ │ │ ├── ABClient.application
│ │ │ ├── ABClient.exe.deploy
│ │ │ ├── ABClient.exe.manifest
│ │ │ └── Newtonsoft.Json.Net20.dll.deploy
│ │ └── setup.exe
│ └── Util
│ └── Extension.cs
├── ABClient.sln
├── ABSimulator
│ ├── ABSimulator.csproj
│ ├── bin
│ │ └── Debug
│ │ ├── ab.config
│ │ ├── ABSimulator.exe
│ │ ├── ABSimulator.pdb
│ │ ├── Newtonsoft.Json.Net20.dll
│ │ ├── Newtonsoft.Json.Net20.pdb
│ │ └── Newtonsoft.Json.Net20.xml
│ ├── FormMain.cs
│ ├── FormMain.Designer.cs
│ ├── FormMain.resx
│ ├── Model
│ │ ├── ClientData.cs
│ │ └── Tag.cs
│ ├── obj
│ │ └── Debug
│ │ ├── ABSimulator.csprojAssemblyReference.cache
│ │ ├── ABSimulator.csproj.CopyComplete
│ │ ├── ABSimulator.csproj.CoreCompileInputs.cache
│ │ ├── ABSimulator.csproj.FileListAbsolute.txt
│ │ ├── ABSimulator.csproj.GenerateResource.cache
│ │ ├── ABSimulator.exe
│ │ ├── ABSimulator.FormMain.resources
│ │ ├── ABSimulator.pdb
│ │ ├── ABSimulator.Properties.Resources.resources
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ └── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── packages.config
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ └── Util
│ └── Extension.cs
└── packages
├── MSTest.TestAdapter.1.3.2
│ ├── build
│ │ ├── _common
│ │ │ ├── cs
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ │ ├── de
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ │ ├── es
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ │ ├── fr
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ │ ├── it
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ │ ├── ja
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ │ ├── ko
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.dll
│ │ │ ├── pl
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ │ ├── pt
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ │ ├── ru
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ │ ├── tr
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ │ ├── zh-Hans
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ │ └── zh-Hant
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll
│ │ ├── net45
│ │ │ ├── MSTest.TestAdapter.props
│ │ │ └── MSTest.TestAdapter.targets
│ │ ├── netcoreapp1.0
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll
│ │ │ └── MSTest.TestAdapter.props
│ │ └── uap10.0
│ │ ├── Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll
│ │ ├── MSTest.TestAdapter.props
│ │ └── MSTest.TestAdapter.targets
│ └── MSTest.TestAdapter.1.3.2.nupkg
├── MSTest.TestFramework.1.3.2
│ ├── lib
│ │ ├── net45
│ │ │ ├── cs
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── de
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── es
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── fr
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── it
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── ja
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── ko
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.dll
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.XML
│ │ │ ├── pl
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── pt
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── ru
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── tr
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── zh-Hans
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ └── zh-Hant
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ ├── netstandard1.0
│ │ │ ├── cs
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── de
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── es
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── fr
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── it
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── ja
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── ko
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.dll
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.XML
│ │ │ ├── pl
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── pt
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── ru
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── tr
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ ├── zh-Hans
│ │ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ │ └── zh-Hant
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ └── uap10.0
│ │ ├── cs
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ ├── de
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ ├── es
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ ├── fr
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ ├── it
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ ├── ja
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ ├── ko
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.dll
│ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll
│ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML
│ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.XML
│ │ ├── pl
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ ├── pt
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ ├── ru
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ ├── tr
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ ├── zh-Hans
│ │ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ │ └── zh-Hant
│ │ ├── Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml
│ │ └── Microsoft.VisualStudio.TestPlatform.TestFramework.xml
│ └── MSTest.TestFramework.1.3.2.nupkg
└── Newtonsoft.Json.4.0.1
├── lib
│ ├── 20
│ │ ├── Newtonsoft.Json.Net20.dll
│ │ ├── Newtonsoft.Json.Net20.pdb
│ │ └── Newtonsoft.Json.Net20.xml
│ ├── 35
│ │ ├── Newtonsoft.Json.Net35.dll
│ │ ├── Newtonsoft.Json.Net35.pdb
│ │ └── Newtonsoft.Json.Net35.xml
│ ├── 40
│ │ ├── Newtonsoft.Json.dll
│ │ ├── Newtonsoft.Json.pdb
│ │ └── Newtonsoft.Json.xml
│ ├── SL
│ │ ├── Newtonsoft.Json.Silverlight.dll
│ │ ├── Newtonsoft.Json.Silverlight.pdb
│ │ └── Newtonsoft.Json.Silverlight.xml
│ └── WP
│ ├── Newtonsoft.Json.WindowsPhone.dll
│ ├── Newtonsoft.Json.WindowsPhone.pdb
│ └── Newtonsoft.Json.WindowsPhone.xml
└── Newtonsoft.Json.4.0.1.nupkg
94 directories, 245 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论