使用libnodave采集西门子840D数控系统S7-300 PLC数据
2015-09-07 22:51
543 查看
使用libnodave采集西门子840D数控系统PLC S7-300 数据。S7-200的没有试验
版本:libnodave-0.8.5
测试了几天终于成功了,特别注意localMPI和PlcMPI的地址,我的机器不是0或2,可以使用S7软件查询。
需要把840D的HMI关了,直接进入windowsXp系统进行测试成功。
使用libnodave自带的例子,C语言的和C#的测试成功,Delphi的没成功
获得到了
daveListReachablePartners list length:126
PDU length:240
FD0:26836456
FD4:0
FD8:0
FD12:0
res 7:0 0
之前 Libnodave: connectPLC 总返回-1 returns -1
参考这个,没起作用
http://stackoverflow.com/questions/14247313/libnodave-connectplc-returns-1
使用libnodave采集西门子840D数控系统PLC S7-300 数据。S7-200的没有试验
版本:libnodave-0.8.5
测试了几天终于成功了,特别注意localMPI和PlcMPI的地址,我的机器不是0或2,可以使用S7软件查询。
需要把840D的HMI关了,直接进入windowsXp系统进行测试成功。
使用libnodave自带的例子,C语言的和C#的测试成功,Delphi的没成功
获得到了
daveListReachablePartners list length:126
PDU length:240
FD0:26836456
FD4:0
FD8:0
FD12:0
res 7:0 0
之前 Libnodave: connectPLC 总返回-1 returns -1
参考这个,没起作用
http://stackoverflow.com/questions/14247313/libnodave-connectplc-returns-1
I'm trying to connect to a Siemens CPU315-2 DP via Ethernet by a CP 343-1 Lean using Libnodave dll. I've tried the example program "simpleISO_TCP.cs" contained in the download file. The function openSocket works just fine but the function connectPLC always returns -1 wich means that the connection to the PLC fails. Anyone knows what could cause this problem? PS: I'm using Visual Studio 2012 in Windows 7 64 bit. |
相关文章推荐
- linux--Xshell的使用
- 电源管理项目学习笔记
- 一个可大规模悄无声息窃取淘宝/支付宝账号与密码的漏洞 -(埋雷式攻击附带视频演示)
- POJ1007 解题报告
- 微信公共平台开发2 .net
- EnCase v.s. FTK - find out Chinese characters writing in different direction
- HDU 4622 Reincarnation
- BT的文件系统btrfs
- linux--SSH Secure Shell Client
- HDU2.2.7 Train Problem II
- 数学概率问题
- CTabCtrl - 如何使用TabCtrl控件
- Android软件安全开发实践(下)
- 同一进程中的线程究竟共享哪些资源
- 四种异步更新Android的方式
- 对数据库中数据模型的认识
- SetTimeOut 详解
- UVA 11987 Almost Union-Find (单点修改的并查集)
- 关于那些最好玩的户外APP合集下(适合资深驴友、牛逼设计狮、装逼攻城狮)
- 《机器学习实战》笔记之五——Logistic回归