北京西门子培训教程scl语言编程_第1页
北京西门子培训教程scl语言编程_第2页
北京西门子培训教程scl语言编程_第3页
北京西门子培训教程scl语言编程_第4页
北京西门子培训教程scl语言编程_第5页
已阅读5页,还剩19页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.1源文件编程和用户程序的重新接线“什么是口令? ”SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.2编程工具PRGG_T

2、2DSIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.3利用文本编辑器生成程序SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.4启动文本编辑器SIMATIC S7Siem

3、ens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.5编辑一个源文件 (1)被编辑的源文件插入块样板插入块产生插入文件插入文件文件文件块块样板SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.6编辑一个

4、源文件 (2)分配给调用调用调用调用OB1分配给FC5FB3的背景 DBFB3UDT型 DB全局 DBUDTSIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.7代码块的语法SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate

5、: File:2018/10/4SSP2_02C.8数据块的语法SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.9变量声明保护属性SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2

6、_02C.10属性代码块(OB, FB, FC)数据块UDTKNOW_HOW_PROTECT(关键技术保护)有有无AUTHOR(作者)有有无FAMILY(类别)有有无NAME (名称)有有无VERSION (版本)有有无UNLINKED (未连接)无有无READ_ONLY (只读)无有无SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.11保存, 一致性检查和编译SIMATIC S7

7、Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.12练习2.1: 利用源文件将FC转换为FB (1)SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.13练习2.1: 利用源文件将FC转换为

8、FB (2): : : SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.14程序重新接线简介信号模板前连接器“旧” 程序失效的通道I 16.7可用的通道I 17.0“新” 程序A I 17.0.AN I17.0A I 16.7.AN I16.7SIMATIC S7Siemens AG 2000. All rights reserved.Information and Trainin

9、g Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.15用SIMATIC管理器实现重新接线SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.16概述:用源程序实现重新接线“Blocks”“Source Files”“Blocks”文件夹文件夹文件夹132符号表(新)符号表(旧)重新接线的 带符号地址的STEP 7

10、 程序带符号地址的源程序带符号地址的STEP 7 程序SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.17从已有的S7程序产生源程序SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP

11、2_02C.18生成的源程序SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.19符号表:改变绝对地址之后之前SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.20重新接线

12、的结果FC 5 “新”FC 5 “旧”SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.21用“符号优先”重新接线SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.22练习

13、2.2:用SIMATIC 管理器实现重新接线一个名为“REWIRE”的S7程序被存在项目“My Project”中。对象被选中。弹出“重新接线”窗口。S7 程序“REWIRE”被修改成新地址。符号LB1被分配一个新地址。I 9.0替换程序中原来的 I 8.0。在SIMATIC管理器中,从项目“STOE_32”下将S7程序REWIRE拷贝到“My Project”项目下在S7程序“REWIRE”中,单击“Blocks”对象选择菜单命令Options - Rewire.在旧地址中输入I 8.0,在新地址中输入I 9.0, 用“OK”钮确认从S7 程序“REWIRE”打开符号表,把符号LB1的地址从 I 8.0 换成 I 9.0。保存符号表并退出符号编辑器。利用交叉参考表检查重新接线是否成功。123456结果操作步骤SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationDate: File:2018/10/4SSP2_02C.23修改扫描2xSIMA

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论