实例介绍
倍福TwinCAT3上位机与PLC通信测试(ADS通信) 包含C#和C++代码 程序介绍:https://www.cnblogs.com/JiYF/p/7780948.html 最底部有下载连接,不需要在这里下载 本次测试需要环境: VS2013,TwinCAT3(本人版本TC31-Full-Setup.3.1.4018.16) 代码:C#代码,PLC程序代码,C++代码 测试部分: 测试包含:bool类型,int类型,long类型,real类型,lreal类型,string类型,数组,以及结构体 部分测试(这里没有结构体嵌套)
【实例截图】
【核心代码】
倍福TwinCAT3上位机与PLC通信测试(ADS通信)包含C和C代码
└── TC3_Ads_Samples
├── C++变量名读取PLC
│ └── test
│ ├── Debug
│ │ └── test.log
│ ├── ReadMe.txt
│ ├── res
│ │ ├── test.ico
│ │ ├── test.rc2
│ │ └── Thumbs.db
│ ├── resource.h
│ ├── StdAfx.cpp
│ ├── StdAfx.h
│ ├── TcAdsAPI.h
│ ├── TcAdsDef.h
│ ├── TcAdsDll.lib
│ ├── test.clw
│ ├── test.cpp
│ ├── testDlg.cpp
│ ├── testDlg.h
│ ├── test.dsp
│ ├── test.dsw
│ ├── test.h
│ ├── test.ncb
│ ├── test.opt
│ ├── test.plg
│ ├── test.rc
│ ├── test.sdf
│ ├── test.sln
│ ├── test.v11.suo
│ ├── test.v12.suo
│ ├── test.vcxproj
│ ├── test.vcxproj.filters
│ └── test.vcxproj.user
├── c#程序
│ └── writeread
│ ├── writeread
│ │ ├── bin
│ │ │ └── Debug
│ │ │ ├── TwinCAT.Ads.dll
│ │ │ ├── TwinCAT.Ads.xml
│ │ │ ├── writeread.exe
│ │ │ ├── writeread.pdb
│ │ │ ├── writeread.vshost.exe
│ │ │ └── writeread.vshost.exe.manifest
│ │ ├── Form1.cs
│ │ ├── Form1.Designer.cs
│ │ ├── Form1.resx
│ │ ├── obj
│ │ │ └── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── Interop.TcAdsDll.dll
│ │ │ ├── TempPE
│ │ │ │ └── Properties.Resources.Designer.cs.dll
│ │ │ ├── writeread.csproj.FileListAbsolute.txt
│ │ │ ├── writeread.csproj.GenerateResource.Cache
│ │ │ ├── writeread.csprojResolveAssemblyReference.cache
│ │ │ ├── writeread.csproj.ResolveComReference.cache
│ │ │ ├── writeread.exe
│ │ │ ├── writeread.Form1.resources
│ │ │ ├── writeread.pdb
│ │ │ └── writeread.Properties.Resources.resources
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ ├── Resources.resx
│ │ │ ├── Settings.Designer.cs
│ │ │ └── Settings.settings
│ │ ├── writeread.csproj
│ │ └── writeread.csproj.user
│ ├── writeread.sln
│ ├── writeread.suo
│ ├── writeread.v11.suo
│ └── writeread.v12.suo
└── PLC_Program
├── PLC_Program
│ ├── _Boot
│ │ └── TwinCAT RT (x86)
│ │ ├── CurrentConfig.xml
│ │ └── Plc
│ │ ├── Port_851.app
│ │ ├── Port_851.autostart
│ │ ├── Port_851_boot.tizip
│ │ ├── Port_851.cid
│ │ ├── Port_851.crc
│ │ └── Port_851.occ
│ ├── PLC_Program.tsproj
│ ├── PLC_Program.tsproj.bak
│ ├── Test1
│ │ ├── _CompileInfo
│ │ │ └── E2C6691E-088E-EBE8-CA6D-866E0F5583C7.compileinfo
│ │ ├── DUTs
│ │ │ └── plcstructure.TcDUT
│ │ ├── ExternalTypes.tmc
│ │ ├── _Libraries
│ │ │ └── beckhoff automation gmbh
│ │ │ ├── tc2_standard
│ │ │ │ └── 3.3.0.0
│ │ │ │ └── tc2_standard.compiled-library
│ │ │ ├── tc2_system
│ │ │ │ ├── 3.3.10.0
│ │ │ │ │ └── tc2_system.compiled-library
│ │ │ │ └── 3.3.9.0
│ │ │ │ └── tc2_system.compiled-library
│ │ │ ├── tc3_interfaces
│ │ │ │ └── 3.3.0.0
│ │ │ │ └── tc3_interfaces.compiled-library
│ │ │ └── tc3_module
│ │ │ └── 3.3.6.0
│ │ │ └── tc3_module.compiled-library
│ │ ├── PlcTask.TcTTO
│ │ ├── POUs
│ │ │ └── MAIN.TcPOU
│ │ ├── Test1.plcproj
│ │ ├── Test1.tmc
│ │ └── Test1.tpy
│ └── TrialLicense.tclrs
├── PLC_Program.sln
├── PLC_Program.sln.~u
├── PLC_Program.v11.suo
└── PLC_Program.v12.suo
34 directories, 89 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论