这个项目已经正常运行两三年了,最近工艺有些改动,所以程序也要修改.前两天修改了两个cfc和增加了两个sfc后编译就出错了.错误信息如下:
log:compile
filter:
responsibleuser:administrator
compilingchangestothechartsasprogramsimatic400(1)cpu416-3pn/dps7program(1)on2012-04-0114:58:49
generateblockdrivers:on
generatingsclsources:off
setsamplingtimesfrom2012-04-0114:59:02
settingsamplingtimescompleted:2012-04-0114:59:03.
e:fc774isoutsidetheuserrange
e:fc776isoutsidetheuserrange
errormessagesfromthesclcompilersduringgenerationofthefc776block
e:e:l00054c00028:invalidstructureddata,datablock,orinstanceaccess.
e:e:l00054c00028:invalidvariable;periodnotallowed.
e:e:l00057c00027:invalidstructureddata,datablock,orinstanceaccess.
e:e:l00057c00027:invalidvariable;periodnotallowed.
e:e:l00058c00026:invalidstructureddata,datablock,orinstanceaccess.
e:e:l00058c00026:invalidvariable;periodnotallowed.
e:e:l00065c00031:invalidstructureddata,datablock,orinstanceaccess.
e:e:l00065c00031:invalidvariable;periodnotallowed.
e:e:l00066c00044:invalidstructureddata,datablock,orinstanceaccess.
e:e:l00066c00044:invalidvariable;periodnotallowed.
e:e:l00124c00028:invalidstructureddata,datablock,orinstanceaccess.
e:e:l00124c00028:invalidvariable;periodnotallowed.
w:w:codegeneratornotcalLEDbecauseofanerror.
w:op10cfc(2)(1)80blocksareinsertedintheruntimegroupinob35.thiscanleadtoproblemsduringcompilingwiththesclcompiler.
w:inob35thereare362blocks/runtimegroups/sfcchartsinstalled.thiscanleadtoproblemswhencompilingwiththesclcompiler.
w:inob100thereare221blocks/runtimegroups/sfcchartsinstalled.thiscanleadtoproblemswhencompilingwiththesclcompiler.
endofcodegenerator:2012-04-0114:59:51
14error(s)and4warning(s)found
除fc774fc776后,重新编译确实没有出错了。
可以不能只下载更改的部分,必须下载整个项目。提示最后下载的版本不匹配。
cannotdownloadchanges.theonlineprogramdoesnotmatchthelastdownloadedversion.connectasuitablecpuordownloadtheentireprogra
请问怎么样才能只下载更改的部分?
问题补充:
可是我以前做类似的修改都可以changeonly下载,难道没有其它办法吗?修改前修改后项目都有备份,如果不删除fc774fc776有没有其它的办法?
最佳答案
编译没有成功,全部下载也不可能实现.所以首先要编译成功.个人感觉与组态有关,例如:导入了不同版本的功能块建议:
1.将项目备份.
2.做一下块清理.
3.重新全部编译.
如果还有问题,建议咨询免费支持热线.
注:我之前倒是遇到过类似的问题,当时是做实验用的,出问题后这个项目就删掉了.
pcs7v7.0中编译cfc时,为什么会出现如下错误信息“f:thefc...isoutsidetheuserrange?”
http://support.automation.siemens.com/cn/view/zh/34230136
要更正这个错误,必须删除错误信息中提到的fc块(示例中是fc55)(图.02),再关闭lad/stl/fbd编辑器及其自动生成的db块。最后重新编译。
解决办法:
1.打开一个cfc,在option菜单里选择”blocktypes”打开清理的窗口.
2.打开的窗口里,点击”cleanup”,清理一次后继续清理.
再继续编译一下.