SIMATIC S7 培训教材-14.源文件编程和用户程序的重新接线

上传人:飞*** 文档编号:46208825 上传时间:2018-06-23 格式:PPT 页数:24 大小:488.50KB
返回 下载 相关 举报
SIMATIC S7 培训教材-14.源文件编程和用户程序的重新接线_第1页
第1页 / 共24页
SIMATIC S7 培训教材-14.源文件编程和用户程序的重新接线_第2页
第2页 / 共24页
SIMATIC S7 培训教材-14.源文件编程和用户程序的重新接线_第3页
第3页 / 共24页
SIMATIC S7 培训教材-14.源文件编程和用户程序的重新接线_第4页
第4页 / 共24页
SIMATIC S7 培训教材-14.源文件编程和用户程序的重新接线_第5页
第5页 / 共24页
点击查看更多>>
资源描述

《SIMATIC S7 培训教材-14.源文件编程和用户程序的重新接线》由会员分享,可在线阅读,更多相关《SIMATIC S7 培训教材-14.源文件编程和用户程序的重新接线(24页珍藏版)》请在金锄头文库上搜索。

1、Date:* File:SSP2_02C.1SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation源文件编程和用户程序的重新接线“什么是 口令? ”Date:* File:SSP2_02C.2SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation编程工具PRGG_T2DPRGG_T2DDat

2、e:* File:SSP2_02C.3SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation利用文本编辑器生成程序Date:* File:SSP2_02C.4SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation启动文本编辑器Date:* File:SSP2_02C.5SIMATIC S7

3、Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation编辑一个源文件 (1)被编辑的源文件 块样板 块文件文件插入块样板插入块插入文件插入文件 产生Date:* File:SSP2_02C.6SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation编辑一个源文件 (2)UDT全局 DBUDT型 DBFB3FB3的背

4、景 DBFC5OB1分配给调用 调用 调用调用分配给 Date:* File:SSP2_02C.7SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation代码块的语法Date:* File:SSP2_02C.8SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation数据块的语法Date:* Fi

5、le:SSP2_02C.9SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation变量声明Date:* File:SSP2_02C.10SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation保护属性Date:* File:SSP2_02C.11SIMATIC S7 Siemens AG 200

6、0. All rights reserved.Information and Training Center Knowledge for Automation保存, 一致性检查和编译Date:* File:SSP2_02C.12SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation练习2.1: 利用源文件将FC转换为FB (1)Date:* File:SSP2_02C.13SIMATIC S7 Siemens AG 2000. All rig

7、hts reserved.Information and Training Center Knowledge for Automation练习2.1: 利用源文件将FC转换为FB (2): : :Date:* File:SSP2_02C.14SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation程序重新接线简介信号模板 前连接器失效的通道 I 16.7可用的通道 I 17.0A I 16.7 . . . . AN I16.7“旧” 程序A I

8、 17.0 . . . . AN I17.0“新” 程序Date:* File:SSP2_02C.15SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation用SIMATIC管理器实现重新接线Date:* File:SSP2_02C.16SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation概

9、述:用源程序实现重新接线带符号地址的 STEP 7 程序“Blocks” 文件夹“Source Files” 文件夹带符号地址的 源程序1符号表 (旧)符号表 (新)2“Blocks” 文件夹重新接线的 带符号地址的 STEP 7 程序 3Date:* File:SSP2_02C.17SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation从已有的S7程序产生源程序Date:* File:SSP2_02C.18SIMATIC S7 Siemen

10、s AG 2000. All rights reserved.Information and Training Center Knowledge for Automation生成的源程序Date:* File:SSP2_02C.19SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation符号表:改变绝对地址之前之后Date:* File:SSP2_02C.20SIMATIC S7 Siemens AG 2000. All rights rese

11、rved.Information and Training Center Knowledge for Automation重新接线的结果FC 5 “旧”FC 5 “新”Date:* File:SSP2_02C.21SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation用“符号优先”重新接线Date:* File:SSP2_02C.22SIMATIC S7 Siemens AG 2000. All rights reserved.Informa

12、tion and Training Center Knowledge for Automation练习2.2:用SIMATIC 管理器实现重新接线步骤操作结果1在SIMATIC管理器中,从项目“STOE_32” 下将S7程序REWIRE拷贝到“My Project”项目 下一个名为“REWIRE”的S7程序被存在 项目“My Project”中。在S7程序“REWIRE”中,单击“Blocks”对象对象被选中。2选择菜单命令 Options - Rewire.弹出“重新接线”窗口。3在旧地址中输入I 8.0,在新地址中输入I 9.0, 用“OK”钮确认S7 程序“REWIRE”被修改成新地址。

13、4从S7 程序“REWIRE”打开符号表,把符号 LB1的地址从 I 8.0 换成 I 9.0。 保存符号表并退出符号编辑器。符号LB1被分配一个新地址。5利用交叉参考表检查重新接线是否成功。I 9.0替换程序中原来的 I 8.0。 6Date:* File:SSP2_02C.23SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation修改扫描2xDate:* File:SSP2_02C.24SIMATIC S7 Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation练习2.3:修改扫描为安全起见,采用常闭触点 (NC) 停止设备。当出现断线或接地故障时, 这个开关停止设备运行。 程序中的对信号“1”的扫描必须用对信号“0”的扫描代替。

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 其它文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号