ProDave和西门子PLC通讯写db块时出现D241错误

  今天在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 permitted in the current protection level.

谷歌了一下在 这里 中找到了答案,

Hi all,

this is often caused by Norton (especially, but also other antivirus)!
Try to remove Norton (use the special Norton removal tool).

关掉瑞兴杀毒之后就OK了!

posted @ 2013-12-08 15:14  天涯我行  阅读(1338)  评论(1编辑  收藏  举报