- {{item.name}}
CFC使用技巧
![star](/download/images/main-stars-grey.png)
![star](/download/images/main-stars-grey.png)
![star](/download/images/main-stars-grey.png)
![star](/download/images/main-stars-grey.png)
![star](/download/images/main-stars-grey.png)
- 0
- 12
PCS 7项目的基础逻辑是基于CFC来组态的,有必要熟悉掌握CFC的使用,掌握它的技巧,可以大大节省组态和调试的时间。
CFC是常用于PCS7环境中的一种方便简洁的编程工具,通过功能块互连,既可以轻松自动实现跨AS的数据交换,也可以避免对诸如M、L等系统资源的管理,编程不再是一个面向繁琐数据存储单元的乏味劳动,而是将主要精力集中面向控制技术层面的工作。
CFC编程工具不仅能实现过程变量名称(Process Tag)生成、过程值归档(Tag Logging)、报警归档(Alarm Logging),以及变量shortcut和unit的属性传递等功能,还能传递功能块的blocktype、comment、areaname字符串至WinCC的Internal tags中,以Text reference类型自动生成内部变量,
1)CFC技巧
- 多个管脚相连时可以使用CTRL、SHIFT键;
- 不同Sheet之间的跳转可以使用CTRL+键盘方向键;
- 管脚上SFC控制点的移动可以使用ALT键;
- 功能块的复制支持CTRL键;
- 所有被SFC读写的管脚的属性中有SFC Access按钮,可以通过该按钮快速定位读取点;
- BOOL量操作功能块的Number of I/Os菜单;
- BOOL量连接的Invert功能;
- BOOL量输出端可以通过Interconnection to Runtime Group来控制运行组使能功能。
- 通过GoTo功能,快速定位功能块;
- 双击连接导线,快速回查连接点;
- 更新Template后,通过拖拽新Template到Template实例的方式可以
- CTRL+TAB即可切换不同的CFC窗口.
2)CFC 访问DB
在CFC里不可避免地有访问DB块的要求,可以参考:
https://www.ad.siemens.com.cn/download/documentdetail_15138.html
https://www.ad.siemens.com.cn/download/documentdetail_3875.html
https://www.ad.siemens.com.cn/download/documentdetail_6032.html
https://www.ad.siemens.com.cn/download/documentdetail_3066.html
https://www.ad.siemens.com.cn/download/documentdetail_3795.html
![](/download/images/argicle33.png)
剩余80%未阅读,请登录查看大全章节内容
- 评论
-
分享
扫码分享
- 收藏 收藏
- 点赞 点赞
- 纠错 纠错
{{item.nickName}}