摘要: 今天在C#中调用prodave中的db_write_ex6(BlkNr, DType, StartNr, ref pAmount, BufLen, pWriteBuffer)时,出错,调用语句RetValue = Prodave6.db_write_ex6(BlkNr, DType, StartNr, ref pAmount, BufLen, pWriteBuffer);retvalue = 0xD241,然后通过GetErrorMessage_ex6(RetValue, pErrLen, pErrorBuffer);得到错误信息为D241 The function is not perm.. 阅读全文
posted @ 2013-12-08 15:14 天涯我行 阅读(1338) 评论(1) 推荐(0) 编辑
摘要: MPI错误对照表 00CA : no resources available 00CB : configuration error 00CD : illegal call 00CE : module not found 00CF : driver not loaded 00D0 : hardware fault 00D1 : software fault 00D2 : memory fault 00D7 : no me age 00D8 : storage fault 00DB : internal timeout 00E1 : too many cha els ope... 阅读全文
posted @ 2013-12-08 14:44 天涯我行 阅读(2323) 评论(0) 推荐(0) 编辑
摘要: 本文转载自吴向阳的文章运用VC#编程通过MPI方式与西门子S7系列PLC通讯[关键词]: 运用VC#编程通过MPI方式与西门子S7系列PLC通讯 吴向阳 ,变频器与传动 ,电信/网络/通讯西门子S7300/400系列的PLC没有公开通讯协议,但西门子公司提供的ProDave软件公开了一系列库函数,使用计算机高级语言调用这些函数,可实现以MPI的方式与PLC通讯。当今的高级语言VC#有着非常高效的开发手段,在把基础类库、标准模块都编好的情况下,开发监控界面的速度比WinCC慢不了多少,但灵活性却是WInCC无法比的。大家只要找到西门子的ProDave中的动态连接库:W95_S7.DLL,并把它注 阅读全文
posted @ 2013-12-08 00:27 天涯我行 阅读(1527) 评论(3) 推荐(0) 编辑