在好例子网,分享、交流、成长!
您当前所在位置:首页C# 开发实例C#语言基础 → C#倍福PLC通讯实例源码

C#倍福PLC通讯实例源码

C#语言基础

下载此实例
  • 开发语言:C#
  • 实例大小:11.14M
  • 下载次数:248
  • 浏览次数:1959
  • 发布时间:2019-10-22
  • 实例类别:C#语言基础
  • 发 布 人:pshlin
  • 文件格式:.zip
  • 所需积分:2
 相关标签: C# 倍福 PLC

实例介绍

【实例简介】

【实例截图】

from clipboard


from clipboard



from clipboard


【核心代码】

│  ADS通讯(c#).rar
│  C# example for AdsWebService.zip
│  C#.NET例程.zip
│  c#与twincatplc 通讯读写PLC数据666.rar
│  C#通过Modbus Tcp与CX控制器通讯.rar
│  test.pro
│  使用C#实现WINCE系统下的ADS通讯V1.1.zip
│  倍福HMI框架(C#)入门.rar
│  通过ADS把本地数据存储到远程目标机.rar

├─ADS通讯(c#)
│  │  ADS通讯(c#).docx
│  │  TwinCAT.Ads.dll
│  │
│  ├─C#源程序
│  │  │  Form1.cs
│  │  │  Form1.Designer.cs
│  │  │  Form1.resx
│  │  │  Program.cs
│  │  │  WindowsFormsApplication1.csproj
│  │  │  WindowsFormsApplication1.csproj.user
│  │  │  WindowsFormsApplication1.sln
│  │  │
│  │  ├─bin
│  │  │  ├─Debug
│  │  │  │      TwinCAT.Ads.dll
│  │  │  │      WindowsFormsApplication1.exe
│  │  │  │      WindowsFormsApplication1.pdb
│  │  │  │      WindowsFormsApplication1.vshost.exe
│  │  │  │      WindowsFormsApplication1.vshost.exe.manifest
│  │  │  │
│  │  │  └─Release
│  │  ├─obj
│  │  │  ├─Debug
│  │  │  │  │  ResolveAssemblyReference.cache
│  │  │  │  │  WindowsFormsApplication1.csproj.FileListAbsolute.txt
│  │  │  │  │  WindowsFormsApplication1.csproj.GenerateResource.Cache
│  │  │  │  │  WindowsFormsApplication1.exe
│  │  │  │  │  WindowsFormsApplication1.Form1.resources
│  │  │  │  │  WindowsFormsApplication1.pdb
│  │  │  │  │  WindowsFormsApplication1.Properties.Resources.resources
│  │  │  │  │
│  │  │  │  ├─Refactor
│  │  │  │  └─TempPE
│  │  │  └─Release
│  │  └─Properties
│  │          AssemblyInfo.cs
│  │          Resources.Designer.cs
│  │          Resources.resx
│  │          Settings.Designer.cs
│  │          Settings.settings
│  │
│  └─plc源程序
│          PLC.pro

├─C# example for AdsWebService
│  │  MemoryCounter.pro
│  │  UpgradeLog.htm
│  │  WebAppCX.sln
│  │
│  ├─Backup
│  │  │  WebAppCX.sln
│  │  │
│  │  └─WebAppCX
│  │      │  App.ico
│  │      │  AssemblyInfo.cs
│  │      │  Form1.cs
│  │      │  Form1.resx
│  │      │  WebAppCX.csproj
│  │      │  WebAppCX.csproj.user
│  │      │
│  │      └─Web References
│  │          └─stCX_007656
│  │                  Reference.cs
│  │                  Reference.map
│  │                  TcAdsWebService.wsdl
│  │
│  └─WebAppCX
│      │  App.ico
│      │  AssemblyInfo.cs
│      │  Form1.cs
│      │  Form1.resx
│      │  WebAppCX.csproj
│      │  WebAppCX.csproj.user
│      │
│      ├─bin
│      │  └─Debug
│      │          WebAppCX.exe
│      │          WebAppCX.pdb
│      │
│      ├─obj
│      │  └─Debug
│      │      │  DesignTimeResolveAssemblyReferences.cache
│      │      │  DesignTimeResolveAssemblyReferencesInput.cache
│      │      │  WebAppCX.csproj.CoreCompileInputs.cache
│      │      │  WebAppCX.csprojAssemblyReference.cache
│      │      │  WebAppCX.exe
│      │      │  WebAppCX.Form1.resources
│      │      │  WebAppCX.pdb
│      │      │
│      │      ├─temp
│      │      └─TempPE
│      │              Web References.stCX_002380.Reference.cs.dll
│      │              Web References.stCX_007656.Reference.cs.dll
│      │
│      └─Web References
│          └─stCX_007656
│                  Reference.cs
│                  Reference.map
│                  TcAdsWebService.wsdl

├─C#.NET例程
│  ├─CE
│  │  ├─ADSComm_CE系统例程
│  │  │  └─ADSComm_CE
│  │  │      │  ADSComm_CE.csproj
│  │  │      │  ADSComm_CE.csproj.user
│  │  │      │  ADSComm_CE.sln
│  │  │      │  Form1.resx
│  │  │      │  PLC_Demo.pro
│  │  │      │  UpgradeLog.XML
│  │  │      │
│  │  │      ├─Backup
│  │  │      │  │  ADSComm_CE.csproj
│  │  │      │  │  ADSComm_CE.sln
│  │  │      │  │  Form1.resx
│  │  │      │  │
│  │  │      │  └─Properties
│  │  │      │          Resources.Designer.cs
│  │  │      │
│  │  │      ├─bin
│  │  │      │  └─Debug
│  │  │      │          TwinCAT.Ads.dll
│  │  │      │
│  │  │      ├─obj
│  │  │      │  │  ADSComm_CE.csproj.FileList.txt
│  │  │      │  │
│  │  │      │  └─Debug
│  │  │      │      │  ADSComm_CE.csproj.FileListAbsolute.txt
│  │  │      │      │  ADSComm_CE.csproj.GenerateResource.Cache
│  │  │      │      │  ResolveAssemblyReference.cache
│  │  │      │      │
│  │  │      │      └─TempPE
│  │  │      │              Properties.Resources.Designer.cs.dll
│  │  │      │
│  │  │      ├─Properties
│  │  │      │      Resources.Designer.cs
│  │  │      │      Resources.resx
│  │  │      │
│  │  │      └─_UpgradeReport_Files
│  │  │              UpgradeReport.xslt
│  │  │
│  │  ├─CE事件驱动方式C#
│  │  │  │  C#_CE事件驱动方式访问.docx
│  │  │  │  Samples.sln
│  │  │  │
│  │  │  ├─PLC程序
│  │  │  │      PLC.pro
│  │  │  │
│  │  │  └─Samples
│  │  │      │  Form1.cs
│  │  │      │  Form1.Designer.cs
│  │  │      │  Samples.csproj
│  │  │      │
│  │  │      ├─bin
│  │  │      ├─obj
│  │  │      │  └─Debug
│  │  │      │      │  Samples.csproj.FileListAbsolute.txt
│  │  │      │      │  Samples.csproj.GenerateResource.Cache
│  │  │      │      │
│  │  │      │      └─TempPE
│  │  │      └─Properties
│  │  │              AssemblyInfo.cs
│  │  │
│  │  ├─CE变量名方式C#
│  │  │  │  C#_CE变量名方式访问.docx
│  │  │  │
│  │  │  ├─PLC程序
│  │  │  │      PLC.ASD
│  │  │  │
│  │  │  └─Samples
│  │  │      │  Form1.cs
│  │  │      │
│  │  │      ├─bin
│  │  │      └─obj
│  │  │          └─Debug
│  │  │              │  Samples.csproj.FileListAbsolute.txt
│  │  │              │
│  │  │              ├─Refactor
│  │  │              └─TempPE
│  │  ├─CE地址方式C#
│  │  │  │  C#_CE地址方式访问.docx
│  │  │  │
│  │  │  └─Samples
│  │  │      │  Form1.cs
│  │  │      │
│  │  │      ├─bin
│  │  │      └─obj
│  │  │          └─Debug
│  │  │              │  Samples.csproj.FileListAbsolute.txt
│  │  │              │
│  │  │              ├─Refactor
│  │  │              └─TempPE
│  │  └─Sql_CE2005_Demo
│  │      │  Form1.cs
│  │      │  Form1.Designer.cs
│  │      │  Program.cs
│  │      │  SqlCE2005_Demo.csproj
│  │      │  SqlCE2005_Demo.sln
│  │      │
│  │      ├─bin
│  │      │  └─Debug
│  │      │          System.Data.SqlServerCe.dll
│  │      │          System.Data.SqlServerCe.xml
│  │      │
│  │      ├─obj
│  │      │  │  SqlCE2005_Demo.csproj.FileList.txt
│  │      │  │
│  │      │  └─Debug
│  │      │          ResolveAssemblyReference.cache
│  │      │          SqlCE2005_Demo.csproj.GenerateResource.Cache
│  │      │
│  │      └─Properties
│  │              AssemblyInfo.cs
│  │              Resources.Designer.cs
│  │
│  └─XP
│      ├─AdsWebService
│      │  │  MemoryCounter.pro
│      │  │  WebAppCX.sln
│      │  │
│      │  └─WebAppCX
│      │      │  App.ico
│      │      │  AssemblyInfo.cs
│      │      │  Form1.cs
│      │      │  Form1.resx
│      │      │  WebAppCX.csproj
│      │      │  WebAppCX.csproj.user
│      │      │
│      │      ├─bin
│      │      ├─obj
│      │      │  └─Debug
│      │      │          WebAppCX.Form1.resources
│      │      │
│      │      └─Web References
│      │          └─stCX_007656
│      │                  Reference.cs
│      │                  Reference.map
│      │                  TcAdsWebService.wsdl
│      │
│      ├─ADS_BY_ADDRESS
│      │  ├─PLC
│      │  │      PLC_Demo.pro
│      │  │
│      │  └─Samples
│      │      │  Form1.cs
│      │      │  Form1.Designer.cs
│      │      │
│      │      ├─bin
│      │      └─obj
│      │          └─Debug
│      │              │  ADS_RW.csproj.FileListAbsolute.txt
│      │              │  ResolveAssemblyReference.cache
│      │              │  Samples.csproj.FileListAbsolute.txt
│      │              │
│      │              └─TempPE
│      │                      Properties.Resources.Designer.cs.dll
│      │
│      ├─ADS_BY_EVENT
│      │  ├─PLC
│      │  │      (Untitled)
│      │  │      PLC_Demo.ASD
│      │  │      PLC_Demo.pro
│      │  │      UNTITLED.ASD
│      │  │
│      │  └─Samples
│      │      │  Form1.cs
│      │      │  Form1.Designer.cs
│      │      │
│      │      ├─bin
│      │      └─obj
│      │          └─Debug
│      │              │  ADS_RW.csproj.FileListAbsolute.txt
│      │              │  ADS_RW.csproj.GenerateResource.Cache
│      │              │  ResolveAssemblyReference.cache
│      │              │  Samples.csproj.FileListAbsolute.txt
│      │              │  Samples.csproj.GenerateResource.Cache
│      │              │
│      │              └─TempPE
│      │                      Properties.Resources.Designer.cs.dll
│      │
│      └─ADS_BY_NAME
│          ├─PLC
│          │      PLC_Demo.pro
│          │
│          └─Samples
│              │  Form1.cs
│              │  Form1.Designer.cs
│              │  Samples.csproj
│              │
│              ├─bin
│              └─obj
│                  └─Debug
│                      │  ResolveAssemblyReference.cache
│                      │  Samples.csproj.FileListAbsolute.txt
│                      │  Samples.csproj.GenerateResource.Cache
│                      │
│                      └─TempPE
│                              Properties.Resources.Designer.cs.dll

├─c#与twincatplc 之间通过变量名进行通讯
│  └─C#读写程序
│      │  c#与twincatplc通讯.zip
│      │  c#与Twincat通讯说明文档.docx
│      │  information相关内容位置.bmp
│      │
│      ├─c#程序
│      │  └─writeread
│      │      │  UpgradeLog.htm
│      │      │  writeread.sln
│      │      │
│      │      ├─Backup
│      │      │  │  writeread.sln
│      │      │  │
│      │      │  └─writeread
│      │      │      │  Form1.cs
│      │      │      │  Form1.Designer.cs
│      │      │      │  Form1.resx
│      │      │      │  Program.cs
│      │      │      │  writeread.csproj
│      │      │      │
│      │      │      └─Properties
│      │      │              AssemblyInfo.cs
│      │      │              Resources.Designer.cs
│      │      │              Resources.resx
│      │      │              Settings.Designer.cs
│      │      │              Settings.settings
│      │      │
│      │      └─writeread
│      │          │  Form1.cs
│      │          │  Form1.Designer.cs
│      │          │  Form1.resx
│      │          │  Program.cs
│      │          │  writeread.csproj
│      │          │
│      │          ├─bin
│      │          │  └─Debug
│      │          │          TwinCAT.Ads.dll
│      │          │          TwinCAT.Ads.xml
│      │          │          writeread.exe
│      │          │          writeread.pdb
│      │          │          writeread.vshost.exe
│      │          │          writeread.vshost.exe.manifest
│      │          │
│      │          ├─obj
│      │          │  └─Debug
│      │          │      │  DesignTimeResolveAssemblyReferences.cache
│      │          │      │  DesignTimeResolveAssemblyReferencesInput.cache
│      │          │      │  Interop.TcAdsDll.dll
│      │          │      │  ResolveAssemblyReference.cache
│      │          │      │  writeread.csproj.CopyComplete
│      │          │      │  writeread.csproj.CoreCompileInputs.cache
│      │          │      │  writeread.csproj.FileListAbsolute.txt
│      │          │      │  writeread.csproj.GenerateResource.cache
│      │          │      │  writeread.csproj.ResolveComReference.cache
│      │          │      │  writeread.csprojAssemblyReference.cache
│      │          │      │  writeread.exe
│      │          │      │  writeread.Form1.resources
│      │          │      │  writeread.pdb
│      │          │      │  writeread.Properties.Resources.resources
│      │          │      │
│      │          │      └─TempPE
│      │          │              Properties.Resources.Designer.cs.dll
│      │          │
│      │          └─Properties
│      │                  AssemblyInfo.cs
│      │                  Resources.Designer.cs
│      │                  Resources.resx
│      │                  Settings.Designer.cs
│      │                  Settings.settings
│      │
│      └─PLC程序
│              DEFAULT.DFR
│              vbreadwrite.BAK
│              vbreadwrite.pro
│              vbreadwrite.SDB
│              vbreadwrite.SYM
│              vbreadwrite.tpy
│              vbreadwrite________r.ci
│              vbreadwrite________r.ri

├─CSharpModBusExample
│  │  CSharpModBusExample.sln
│  │
│  └─CSharpModBusExample
│      │  App.config
│      │  ClassDiagram1.cd
│      │  CSharpModBusExample.csproj
│      │  ILog.cs
│      │  ModBusSerialPortWrapper.cs
│      │  ModBusTCPIPWrapper.cs
│      │  ModBusWrapper.cs
│      │  Program.cs
│      │  SocketWrapper.cs
│      │  TestModBus.cs
│      │  TestModBus.designer.cs
│      │  TestModBus.resx
│      │  ValueHelper.cs
│      │
│      ├─bin
│      │  ├─Debug
│      │  │      CSharpModBusExample.exe
│      │  │      CSharpModBusExample.exe.config
│      │  │      CSharpModBusExample.pdb
│      │  │      CSharpModBusExample.vshost.exe
│      │  │      CSharpModBusExample.vshost.exe.config
│      │  │      CSharpModBusExample.vshost.exe.manifest
│      │  │
│      │  └─Release
│      ├─obj
│      │  └─x86
│      │      └─Debug
│      │          │  CSharpModBusExample.csproj.FileListAbsolute.txt
│      │          │  CSharpModBusExample.exe
│      │          │  CSharpModBusExample.pdb
│      │          │  CSharpModBusExample.Properties.Resources.resources
│      │          │  CSharpModBusExample.TestModBus.resources
│      │          │  DesignTimeResolveAssemblyReferences.cache
│      │          │  DesignTimeResolveAssemblyReferencesInput.cache
│      │          │  GenerateResource.read.1.tlog
│      │          │  GenerateResource.write.1.tlog
│      │          │  ResolveAssemblyReference.cache
│      │          │
│      │          └─TempPE
│      └─Properties
│              AssemblyInfo.cs
│              Resources.Designer.cs
│              Resources.resx
│              Settings.Designer.cs
│              Settings.settings

└─通过ADS把本地数据存储到远程目标机
    │  AdsFileCopy.sln
    │
    └─AdsFileCopy
        │  AdsFileAccess.Cleaned.dll
        │  AdsFileAccess.dll
        │  AdsFileAccessSamples.csproj
        │  App.config
        │  MainForm.cs
        │  MainForm.Designer.cs
        │  MainForm.resx
        │  Program.cs
        │
        ├─bin
        │  ├─Debug
        │  │      AdsFileAccess.dll
        │  │      AdsFileAccessSamples.exe
        │  │      AdsFileAccessSamples.exe.config
        │  │      AdsFileAccessSamples.pdb
        │  │      AdsFileAccessSamples.vshost.exe
        │  │      AdsFileAccessSamples.vshost.exe.config
        │  │      TwinCAT.Ads.dll
        │  │      TwinCAT.Ads.xml
        │  │
        │  └─Release
        │          AdsFileAccess.dll
        │          AdsFileAccessSamples.exe
        │          AdsFileAccessSamples.exe.config
        │          AdsFileAccessSamples.pdb
        │          AdsFileAccessSamples.vshost.exe
        │          AdsFileAccessSamples.vshost.exe.config
        │          AdsFileAccessSamples.vshost.exe.manifest
        │          TwinCAT.Ads.dll
        │          TwinCAT.Ads.xml
        │
        ├─obj
        │  ├─Debug
        │  │  │  AdsFileAccessSamples.csproj.CoreCompileInputs.cache
        │  │  │  AdsFileAccessSamples.csproj.FileListAbsolute.txt
        │  │  │  AdsFileAccessSamples.csproj.GenerateResource.Cache
        │  │  │  AdsFileAccessSamples.csprojAssemblyReference.cache
        │  │  │  AdsFileAccessSamples.exe
        │  │  │  AdsFileAccessSamples.MainForm.resources
        │  │  │  AdsFileAccessSamples.pdb
        │  │  │  AdsFileAccessSamples.Properties.Resources.resources
        │  │  │  AdsFileCopy2.csproj.FileListAbsolute.txt
        │  │  │  AdsFileCopy2.csproj.GenerateResource.Cache
        │  │  │  AdsFileCopy2.csprojResolveAssemblyReference.cache
        │  │  │  AdsFileCopy2.exe
        │  │  │  AdsFileCopy2.MainForm.resources
        │  │  │  AdsFileCopy2.pdb
        │  │  │  AdsFileCopy2.Properties.Resources.resources
        │  │  │  DesignTimeResolveAssemblyReferences.cache
        │  │  │  DesignTimeResolveAssemblyReferencesInput.cache
        │  │  │  TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
        │  │  │  TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
        │  │  │  TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
        │  │  │
        │  │  └─TempPE
        │  │          Properties.Resources.Designer.cs.dll
        │  │
        │  └─Release
        │      │  AdsFileAccessSamples.csproj.FileListAbsolute.txt
        │      │  AdsFileAccessSamples.csproj.GenerateResource.Cache
        │      │  AdsFileAccessSamples.csprojResolveAssemblyReference.cache
        │      │  AdsFileAccessSamples.exe
        │      │  AdsFileAccessSamples.MainForm.resources
        │      │  AdsFileAccessSamples.pdb
        │      │  AdsFileAccessSamples.Properties.Resources.resources
        │      │  DesignTimeResolveAssemblyReferencesInput.cache
        │      │  TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
        │      │  TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
        │      │  TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
        │      │
        │      └─TempPE
        │              Properties.Resources.Designer.cs.dll
        │
        └─Properties
                AssemblyInfo.cs
                Resources.Designer.cs
                Resources.resx
                Settings.Designer.cs
                Settings.settings

标签: C# 倍福 PLC

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警