这个项目已经正常运行两三年了,最近工艺有些改动,所以程序也要修改.前两天我修改了两个CFC和增加了两个SFC后编译就出错了.错误信息如下:
Log: Compile
Filter:
Responsible user: Administrator
Compiling changes to the charts as program SIMATIC 400(1)\CPU 416-3 PN/DP\S7 Program(1) on 2012-04-01 14:58:49
Generate block drivers: on
Generating SCL sources: off
Set sampling times from 2012-04-01 14:59:02
Setting sampling times completed: 2012-04-01 14:59:03.
E: FC774 is outside the user range
E: FC776 is outside the user range
Error messages from the SCL compilers during generation of the FC776 block
E: E: L 00054 C 00028: Invalid structured data, data block, or instance access.
E: E: L 00054 C 00028: Invalid variable; period not allowed.
E: E: L 00057 C 00027: Invalid structured data, data block, or instance access.
E: E: L 00057 C 00027: Invalid variable; period not allowed.
E: E: L 00058 C 00026: Invalid structured data, data block, or instance access.
E: E: L 00058 C 00026: Invalid variable; period not allowed.
E: E: L 00065 C 00031: Invalid structured data, data block, or instance access.
E: E: L 00065 C 00031: Invalid variable; period not allowed.
E: E: L 00066 C 00044: Invalid structured data, data block, or instance access.
E: E: L 00066 C 00044: Invalid variable; period not allowed.
E: E: L 00124 C 00028: Invalid structured data, data block, or instance access.
E: E: L 00124 C 00028: Invalid variable; period not allowed.
W: W: Code generator not called because of an error.
W: OP10CFC(2)(1) 80 blocks are inserted in the runtime group in OB35. This can lead to problems during compiling with the SCL compiler.
W: In OB35 there are 362 blocks / runtime groups / SFC charts installed. This can lead to problems when compiling with the SCL compiler.
W: In OB100 there are 221 blocks / runtime groups / SFC charts installed. This can lead to problems when compiling with the SCL compiler.
End of code generator: 2012-04-01 14:59:51
14 error(s) and 4 warning(s) found
除FC774 FC776后,重新编译确实没有出错了。
可以不能只下载更改的部分,必须下载整个项目。提示最后下载的版本不匹配。
cannot download changes. the online program does not match the last downloaded version. connect a suitable cpu or download the entire progra
请问怎么样才能只下载更改的部分???
问题补充:
可是我以前做类似的修改都可以CHANGE ONLY下载,难道没有其它办法吗?修改前修改后项目都有备份,如果不删除FC774 FC776有没有其它的办法?
最佳答案
编译没有成功, 全部下载也不可能实现.所以首先要编译成功.个人感觉与组态有关, 例如: 导入了不同版本的功能块建议:
1. 将项目备份.
2.做一下块清理.
3.重新全部编译.
如果还有问题,建议咨询免费支持热线.
注:我之前倒是遇到过类似的问题, 当时是做实验用的,出问题后这个项目就删掉了.
PCS7 V7.0中编译CFC时,为什么会出现如下错误信息“F: The FC... is outside the user range?”
http://support.automation.siemens.com/CN/view/zh/34230136
要更正这个错误,必须删除错误信息中提到的FC块(示例中是FC55)(图.02),再关闭LAD/STL/FBD编辑器及其自动生成的DB块。最后重新编译。
解决办法:
1. 打开一个CFC, 在Option 菜单里选择”Block types”打开清理的窗口.
2.打开的窗口里, 点击”Clean UP”, 清理一次后继续清理.
再继续编译一下.
提问者对于答案的评价:
谢谢!
原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc175423.html