quote:以下是引用火麒麟在2011-08-19 14:12:13的发言:
Des cription of Error:
You have used a UDT or declared a static variable for the call of a function block/system function block in the variable declaration (multiple instance declaration). The interface of the used block has been changed or the used block no longer exists. The corresponding line, followed by the original structure of the used block in pseudo-symbols, will be marked as invalid when output.
To Correct or Avoid Error:
?Invalid multiple instance declaration
Eliminate the invalid multiple declaration table by highlighting the respective row in the detailed variable view and selecting the pop-up context menu command Update Declarations. At the same time eliminate all invalid calls in the code section of this block by highlighting each call and selecting the menu command Edit > Call > Update.
?Invalid UDT declaration
Eliminate the invalid UDT declaration by highlighting the relevant row in the detailed variable view and selecting the pop-up context menu command Update Declarations. Now the current interface of the used UDTs will be referenced. At the same time eliminate all invalid accesses to UDT components in the code section of the block.
这是调用不一致的问题,在保存时弹出错误信息的帮助文本里可以看到:
所以,右键单击调用的背景FB,选update declaration即可。
谢谢!右键单击红色错误处,选择了更新后,还是一样的故障。