网站大量收购独家精品文档,联系QQ:2885784924

S7.Net documentation 文档中文说明书.pdf

  1. 1、本文档共17页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
S7.Net documentation S7.Net 文档 How to download s7.Net 如何下载s7.Net The official repository is on GitHub ( /killnine/s7netplus) , you can also download the library directly from NuGet (/packages/S7netplus/). 官方存储库位于 GitHub (/killnine/s7netplus )上,您也可以直接从 NuGet (/packages/S7netplus/ )下载该库。 What is S7.Net 什么是S7.Net S7.Net is a plc driver that works only with Siemens PLC and only with Ethernet connection. This means that your plc must have a Profinet CPU or a profinet external card (CPxxx card). S7.Net is written entirely in C#, so you can debug it easily without having to go through native dlls. S7.Net 是一个plc 驱动程序,仅适用于Siemens PLC 和以太网连接。 这意味着 您的PLC 必须具有Profinet CPU 或Profinet 外部卡(CPxxx 卡)。 S7.Net 完全用C #编写,因此您无需通过本机dll 即可轻松调试它。 Supported PLC 支持的PLC S7.Net is compatible with S7-200, S7-300, S7-400, S7-1200, S7-1500. S7.Net 与S7-200,S7-300,S7-400 ,S7-1200 和S7-1500 兼容。 Getting started with S7.Net S7.Net 入门 To get started with S7.Net you have to download and include the S7.Net.dll in your project. You can do this by downloading the NuGet package, or by downloading the sources and compile them. 要开始使用S7.Net,您必须下载S7.Net.dll 并将其包含在您的项目中。 你可以这样做 通过下载NuGet 软件包,或通过下载源代码并进行编译。 Create a PLC instance, connect and disconnect 创建一个PLC 实例,连接和断 开连接 To create an instance of the driver you need to use this constructor: 要创建驱动程序的实例,您需要使用以下构造函数: public Plc(CpuType cpu, string ip, Int16 rack, Int16 slot) Cpu: this specify what CPU you are connecting to. The supported CPU are: public enum CpuType { S7200 = 0, S7300 = 10, S7400 = 20, S71200 = 30, S71500 = 40, } Ip: this contains the IP address of the CPU of external Ethernet card 包含外部以太网卡CPU 的IP 地址 Rack: this contains the rack of the plc, tha

文档评论(0)

134****5702 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档