C#使用sharp7读写S7-1200 寄存器模块数据的简单例程

上传者: lxandcs | 上传时间: 2021-05-12 01:33:15 | 文件大小: 121KB | 文件类型: RAR
需要自己开发桌面程序来控制PLC时也许用的着,我也是这方面的新手,抛砖引玉,主要是寄存器模块读写数据,举了浮点数和bool数据的例子。sharp7是西门子官网提供的通讯类文件,有空可以研究下,各种功能齐全。

文件下载

资源详情

[{"title":"( 29 个子文件 121KB ) C#使用sharp7读写S7-1200 寄存器模块数据的简单例程","children":[{"title":"S7test","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"S7test.exe.config <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"S7test.pdb <span style='color:#111;'> 107.50KB </span>","children":null,"spread":false},{"title":"S7test.exe <span style='color:#111;'> 51.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'> 7.62KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 518B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"S7test.csproj.GenerateResource.cache <span style='color:#111;'> 1012B </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"S7test.pdb <span style='color:#111;'> 107.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.94KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 831B </span>","children":null,"spread":false},{"title":"S7test.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"S7test.csproj.FileListAbsolute.txt <span style='color:#111;'> 625B </span>","children":null,"spread":false},{"title":"S7test.csprojAssemblyReference.cache <span style='color:#111;'> 11.22KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"S7test.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"S7test.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"S7test.exe <span style='color:#111;'> 51.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Sharp7.cs <span style='color:#111;'> 128.52KB </span>","children":null,"spread":false},{"title":"S7test.csproj <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"App.config <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"S7test.sln <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false}],"spread":true}]

评论信息

  • 泡面大侠 :
    很方便,没有DLL直接用类就可以连PLC,非常方便。
    2020-07-04
  • 文文1222222 :
    使用起来挺不错
    2019-02-12

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明