资源预览内容
第1页 / 共24页
第2页 / 共24页
第3页 / 共24页
第4页 / 共24页
第5页 / 共24页
第6页 / 共24页
第7页 / 共24页
第8页 / 共24页
第9页 / 共24页
第10页 / 共24页
亲,该文档总共24页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
Date:2024/7/20File:SSP2_02C.1SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation源文件编程和用户程序的重新接线“什么是什么是口令口令? ”Date:2024/7/20File:SSP2_02C.2SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation编程工具编程工具PRGG_T2DPRGG_T2DDate:2024/7/20File:SSP2_02C.3SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation利用文本编辑器生成程序利用文本编辑器生成程序Date:2024/7/20File:SSP2_02C.4SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation启动文本编辑器启动文本编辑器Date:2024/7/20File:SSP2_02C.5SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation编辑一个源文件编辑一个源文件 (1)被编辑的源文件被编辑的源文件块样板块样板 块块 文件文件文件文件插入块样板插入块样板 插入块插入块插入文件插入文件插入文件插入文件 产生产生Date:2024/7/20File:SSP2_02C.6SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation编辑一个源文件编辑一个源文件 (2)UDT全局全局 DBUDT型型 DBFB3 FB3的背景的背景 DBFC5OB1分配给分配给调用调用 调用调用 调用调用调用调用分配给分配给 Date:2024/7/20File:SSP2_02C.7SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation代码块的语法代码块的语法Date:2024/7/20File:SSP2_02C.8SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation数据块的语法数据块的语法Date:2024/7/20File:SSP2_02C.9SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation变量声明变量声明Date:2024/7/20File:SSP2_02C.10SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation保护属性保护属性Date:2024/7/20File:SSP2_02C.11SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation保存保存, , 一致性检查和编译一致性检查和编译Date:2024/7/20File:SSP2_02C.12SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation练习练习2.1: 利用源文件将利用源文件将FC转换为转换为FB (1)Date:2024/7/20File:SSP2_02C.13SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation练习练习2.1: 利用源文件将利用源文件将FC转换为转换为FB (2):Date:2024/7/20File:SSP2_02C.14SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation程序重新接线简介信号模板信号模板前连接器前连接器失效的通道I 16.7可用的通道I 17.0A I 16.7.AN I16.7“旧旧” 程序程序A I 17.0.AN I17.0“新新” 程序程序Date:2024/7/20File:SSP2_02C.15SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation用SIMATIC管理器实现重新接线Date:2024/7/20File:SSP2_02C.16SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation概述:用源程序实现重新接线带符号地址的STEP 7 程序“Blocks” 文件夹文件夹“Source Files” 文件夹文件夹带符号地址的源程序1符号表符号表(旧)旧)符号表符号表(新)新)2“Blocks” 文件夹文件夹重新接线的带符号地址的STEP 7 程序3Date:2024/7/20File:SSP2_02C.17SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation从已有的S7程序产生源程序Date:2024/7/20File:SSP2_02C.18SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation生成的源程序Date:2024/7/20File:SSP2_02C.19SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation符号表:改变绝对地址之前之前之后之后Date:2024/7/20File:SSP2_02C.20SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation重新接线的结果FC 5 “旧旧”FC 5 “新新”Date:2024/7/20File:SSP2_02C.21SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation用“符号优先”重新接线Date:2024/7/20File:SSP2_02C.22SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge 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”被修改成新地址。4从S7 程序“REWIRE”打开符号表,把符号LB1的地址从 I 8.0 换成 I 9.0。 保存符号表并退出符号编辑器。符号LB1被分配一个新地址。5利用交叉参考表检查重新接线是否成功。I 9.0替换程序中原来的 I 8.0。 6Date:2024/7/20File:SSP2_02C.23SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation修改扫描2xDate:2024/7/20File:SSP2_02C.24SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation练习2.3:修改扫描为安全起见,采用常闭触点为安全起见,采用常闭触点 (NC) 停止设备。当出现断线或接地故障时,停止设备。当出现断线或接地故障时,这个开关停止设备运行。这个开关停止设备运行。程序中的对信号程序中的对信号“1”的扫描必须用对信号的扫描必须用对信号“0”的扫描代替。的扫描代替。
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号