登录
首页 » C# » c#与西门子s7-200 smart 通讯实例 S7TCPDLL.dll

c#与西门子s7-200 smart 通讯实例 S7TCPDLL.dll

于 2021-05-18 发布
0 336
下载积分: 1 下载次数: 2

代码说明:

c#与西门子s7-200 smart 通讯实例 内附S7TCPDLL.dll 【使用说明】 在bin文件夹debug,config文件打开配置PLC IP地址,CPU 的信息 修改配置文件 [PlcComTCP] IP=192.168.0.1  //PLC IP地址 Rack=0          //PLC 机架 Slot=1          //PLC 插槽 注,PLC和电脑 IP必须在同一网段 S7TCPDLL使用方法 1)添加引用,然后倒入命名空间 using S7TCPDLL; 2)实例化函数 S7Client 例如:   S7Client client = new S7Client(); 然后利用VS开发平台智能感知的功能可选择相应函数 例如调用置位函数 SetBitQB(0, 0)        首先实例化函数S7Client client = new S7Client();        然后 client.SetBitQB(0, 0); 调用其他函数类似。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • gerber解析
    gerber解析
    2021-05-06下载
    积分:1
  • C#三层架构0813—SqlServer带数据库-Vis-visual studio2019
        三层架构增加-删除-修改-查询可以提供学习交流,谢谢C#三层架构0813—SqlServer-Vis-visual studio2019
    2020-12-07下载
    积分:1
  • Winform treeview控件设计及应用源码
    C#winform 控件开发 TreeView实例
    2017-04-28下载
    积分:1
  • 动画效果浮动窗体实例
            private void StopRectTimer_Tick(object sender, EventArgs e)        {            //如果鼠标在窗体上,则根据停靠位置显示整个窗体              if (this.Bounds.Contains(Cursor.Position))            {                switch (this.StopDock)                {                    case AnchorStyles.Top:                        this.Location = new Point(this.Location.X, 0);                        break;                    case AnchorStyles.Bottom:                        this.Location = new Point(this.Location.X, Screen.PrimaryScreen.Bounds.Height - this.Height);                        break;                    case AnchorStyles.Left:                        this.Location = new Point(0, this.Location.Y);                        break;                    case AnchorStyles.Right:                        this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - this.Width, this.Location.Y);                        break;                }            }            else  //如果鼠标离开窗体,则根据停靠位置隐藏窗体,但须留出部分窗体边缘以便鼠标选中窗体              {                switch (this.StopDock)                {                    case AnchorStyles.Top:                        this.Location = new Point(this.Location.X, (this.Height - 3) * (-1));                        break;                    case AnchorStyles.Bottom:                        this.Location = new Point(this.Location.X, Screen.PrimaryScreen.Bounds.Height - 5);                        break;                    case AnchorStyles.Left:                        this.Location = new Point((-1) * (this.Width - 3), this.Location.Y);                        break;                    case AnchorStyles.Right:                        this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - 2, this.Location.Y);                        break;                }            }        }
    2015-06-10下载
    积分:1
  • hosts 修改实例源码
    hosts 修改实例源码
    2013-10-29下载
    积分:1
  • C教程.pdf
    C 基础教程 - v1.4.1.pdf
    2021-05-06下载
    积分:1
  • QQ助手完整源码下载,实现了自动发Q消息
    发送QQ群发信息
    2014-06-23下载
    积分:1
  • 利用cookie可以在静态页判断验证码是否输入正确
    利用cookies实现 验证码的判断,详见如下代码:                       
    2013-07-26下载
    积分:1
  • WPF中多窗体实例
    在WPF中,没有默认提供MDI子窗体控件,如果有用到多窗体的朋友,可以参考一下。
    2013-11-25下载
    积分:1
  • C#代码递归对编码进行转换
    C#代码递归对编码进行转换
    2014-09-19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载