版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Date:2022-5-9File:Blocks.1SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives块构造和块编辑块构造和块编辑OB 1FBFCFBFBFBFBFCFBFCDate:2022-5-9File:Blocks.2SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives目的学习了本章之后,他将学习了本章之后,他将 .了解不同类型的了解不
2、同类型的S7块块.懂得懂得“构造化编程的原理构造化编程的原理 .了解过程映像的意义了解过程映像的意义(PII, PIQ).可以解释循环程序执行的原理可以解释循环程序执行的原理.了解并可以选择了解并可以选择STEP7编程言语编程言语 - LAD, FBD 和和 STL .可以运用可以运用LAD/STL/FBD编辑器编辑、存盘并下装编辑器编辑、存盘并下装S7逻辑块到逻辑块到CPU.可以用可以用“块监视测试功能进展简单程序调试块监视测试功能进展简单程序调试.可以设置可以设置LAD/STL/FBD编辑器编辑器Date:2022-5-9File:Blocks.3SIMATIC S7Siemens AG
3、2003. All rights reserved.SITRAIN Training for Automation and Drives缺点 OB组织块组织块循环定时过程程序块类型程序块类型操作系统FCSFCFB 带背景数据块图例:OB = 组织块FB = 功能块FC = 功能SFB = 系统功能块SFC = 系统功能 DB= 数据块FBFCFBFBDBDBSFB最大嵌套深度:S7-300:8(16对CPU 318)S7-400:24(2 至 4 个附加级给缺点 OB, 对每一个优先级)Date:2022-5-9File:Blocks.4SIMATIC S7Siemens AG 2003. A
4、ll rights reserved.SITRAIN Training for Automation and Drives程序构造程序构造分块程序分块程序构造化程序构造化程序一切的指令都放在一个一切的指令都放在一个块中块中 (通常是组织块通常是组织块OB 1) 单一功能的指令放在单一的块单一功能的指令放在单一的块中,中,OB1调用这些单独的块调用这些单独的块可反复运用的功能装入单个块中,OB 1 (或其他块) 调用这些块并传送相关数据。OB 1OB 1Recipe ARecipe BMixerOutletOB 1PumpOutlet线性化程序线性化程序Date:2022-5-9File:Blo
5、cks.5SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives过程映象过程映象字节 0字节 1字节 2:CPU存储器区字节 0字节 1字节 2: PIIPIQ 用户程序CPU存储器区 : :A I2.0= Q4.3 : : : :11I 2.0S 1K 1Q 4.3Date:2022-5-9File:Blocks.6SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation
6、 and Drives循环程序执行循环程序执行执行OB1中的程序 (循环执行)事件 (日期时间中断、硬件中断等) 调用其他 OB,FB,FC输出模块A I 0.1A I 0.2= Q4.0块OB 1循环监视时间的开场启动块 (OB 100)上电后执行一次从模块读信号形状,并保管到过程映象区 (PII)把过程映象输出表(PIQ) 写到输出模块CPU 循环循环输入模块Date:2022-5-9File:Blocks.7SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives插入
7、插入S7 S7 块块Date:2022-5-9File:Blocks.8SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and DrivesLAD/STL/FBD编辑器编辑器声明表声明表代码部分代码部分细节窗口细节窗口Date:2022-5-9File:Blocks.9SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and DrivesSTEP7 编程言语编程言语AI 0.0A
8、I 0.1= Q8.0STL&Q8.0=I 0.0I 0.1FBDI 0.0I 0.1Q8.0LADDate:2022-5-9File:Blocks.10SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives选择编程言语选择编程言语Date:2022-5-9File:Blocks.11SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives用用
9、 LAD/FBD 编程编程Date:2022-5-9File:Blocks.12SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives用用 STL 编程编程Date:2022-5-9File:Blocks.13SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives块的保管块的保管带有块称号的当前工程途径Date:2022-5-9File:Blocks
10、.14SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives在在OB1中调用块中调用块Date:2022-5-9File:Blocks.15SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives下载块到下载块到 PLC Date:2022-5-9File:Blocks.16SIMATIC S7Siemens AG 2003. All rights r
11、eserved.SITRAIN Training for Automation and Drives简单程序调试简单程序调试Date:2022-5-9File:Blocks.17SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives下载和保管修正的块下载和保管修正的块翻开在线保管下载翻开离线Date:2022-5-9File:Blocks.18SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training f
12、or Automation and Drives练习练习: 电机点动电机点动 (FC 16)Date:2022-5-9File:Blocks.19SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives练习练习:在在 OB 1中调用中调用 FC 16Date:2022-5-9File:Blocks.20SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Driv
13、es假设他想知道更多假设他想知道更多Date:2022-5-9File:Blocks.21SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives编辑器用户设置:编辑器用户设置:“General标签标签Date:2022-5-9File:Blocks.22SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives编辑器用户设置:编辑器用户设置:“View标
14、签标签Date:2022-5-9File:Blocks.23SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives编辑器用户设置:编辑器用户设置:“STL标签标签Date:2022-5-9File:Blocks.24SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives编辑器用户设置:编辑器用户设置:“LAD/FBD标签标签Date:2022-5-9File:Blocks.25SIMATIC S7Siemens AG 2003. All rights reserved.
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年人寿代理合同(1篇)
- 老年公寓用药管理与护理
- 2026年硬化性肾小管损伤诊疗试题及答案(肾内科版)
- 企业信息化项目erp可行性报告汇编
- 护理继续教育方法
- 医疗健康行业年终总结
- 老年公寓护理康复指导与训练
- 老年护理说课:家庭照护者的支持与赋能
- 生活护理护理课件
- 2026 塑型进阶腊鱼课件
- 屋顶光伏施工技术规范
- 第节深圳市中考英语听说考试概述
- 2026年山东省菏泽一中自主招生物理试卷试题(含答案详解)
- ICMP协议课件教学课件
- 无人机消防救灾
- T-CECA 20011-2021 含铁含锰地下水接触氧化法给水处理技术规程
- 实验动物学日常检测流程规定
- 中小学实验教学基本目录(2023 年版)
- 操作系统(第5版)全套课件
- 兄弟套结机KE-430F中文使用说明书
- 上海市2025上海申康医疗卫生建设工程公共服务中心工作人员招聘1人笔试历年参考题库附带答案详解
评论
0/150
提交评论