西门子PLC培训系列资料3

上传人:ji****72 文档编号:48534414 上传时间:2018-07-17 格式:PPT 页数:26 大小:1.54MB
返回 下载 相关 举报
西门子PLC培训系列资料3_第1页
第1页 / 共26页
西门子PLC培训系列资料3_第2页
第2页 / 共26页
西门子PLC培训系列资料3_第3页
第3页 / 共26页
西门子PLC培训系列资料3_第4页
第4页 / 共26页
西门子PLC培训系列资料3_第5页
第5页 / 共26页
点击查看更多>>
资源描述

《西门子PLC培训系列资料3》由会员分享,可在线阅读,更多相关《西门子PLC培训系列资料3(26页珍藏版)》请在金锄头文库上搜索。

1、Date: * File No.: SSP1_03C.1SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationSTEP 7 编程方法Date: * File No.: SSP1_03C.2SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation程序结构STEP 7为设计程序提供三种方法。基于这些方

2、法,可以选择最适合于你的应用的程序设计方法。线性化模块化结构化线性化编程: 所有的指令都在一个 块 (OB1) 内。模块化编程: 每个设备的控制指令 都在各自的块内。 OB1按顺序调用每个块。结构化编程: 不同的块调用可重复利用的代码。 OB1 (或其他块) 调用这些块 并传递相应的参数。OB1OB1OB1配方 A配方 B混合器排空泵排空Date: * File No.: SSP1_03C.3SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automatio

3、n线性化编程OB1Network 1Network 2Network 3电机控制信息取得操作的小时数Date: * File No.: SSP1_03C.4SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation线性编程实例 - 传送带控制Date: * File No.: SSP1_03C.5SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Cente

4、r Knowledge for Automation模块化编程电机控制信息取得操作小时数OB 1FC 1FC 2FC 3Date: * File No.: SSP1_03C.6SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation主程序 子块程序 处理程序 处理g调用另一个块的指令块结束 OBFC/FB模块化程序的执行Date: * File No.: SSP1_03C.7SIMATIC S7Siemens AG 2000. All right

5、s reserved.Information and Training Center Knowledge for AutomationLT模块化编程实例 - 液位监视Date: * File No.: SSP1_03C.8SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation结构化编程OB 1电机 1FC 1电机 2FC 1电机 3FC 1Date: * File No.: SSP1_03C.9SIMATIC S7Siemens AG 2000

6、. All rights reserved.Information and Training Center Knowledge for Automationab罐选择开关 拨码开关0000成分 A成分 BLTLTLTLTLT结构化编程实例 Date: * File No.: SSP1_03C.10SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation程序块类型故障FBFBFBFCSFCSFBFB 带背景数据块阴影:OB组织块循环定时过程OB =

7、 组织块 FB = 功能块 FC = 功能 SFB = 系统功能块 SFC = 系统功能 操作系统Date: * File No.: SSP1_03C.11SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation块类型 特性组织块 - 操作系统和用户程序的接口(OB) - 各层次的优先级 (1 26) - 局部数据堆栈中的特殊启动信息功能块 (FB) - 带参数 / 数据保持 - 不带参数 / 数据保持 - 不带参数 / 数据不保持 功能 (FC

8、) - 只传递一个返回值(调用时必须分配参数) - 数据不保持 - 可带参数数据块 (DB)- 结构化,局部存储 (背景 DB) - 结构化,全局数据存储 (在整个程序中均有效)用户定义的块Date: * File No.: SSP1_03C.12SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation块类型 特点系统功能- 存储在CPU的操作系统中 (SFC)- 用户可以调用此功能(不需要存储器)系统功能块- 存储在CPU的操作系统中 (SFB

9、)- 用户可以调用此功能 (需要存储器)系统数据块- 用于组态数据和参数的数据块 (SDB) 系统块Date: * File No.: SSP1_03C.13SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation数据块类型和结构数据字节 0 数据字节 81918 位CPU314中块的大小是8K字节 数据块提供的最大存储空间 依赖于CPU的型号07Date: * File No.: SSP1_03C.14SIMATIC S7Siemens AG

10、2000. All rights reserved.Information and Training Center Knowledge for Automation调用程序块调用程序块被调用的块(OB, FB, FC)(FB, FC, SFB, SFC)程序执行程序执行调用另一个块的指令块结束Date: * File No.: SSP1_03C.15SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation执行OB1中的程序 (循环执行) 事件 (

11、日期时间中断、硬件中断等) 调用其他 OB,FB,FC输出 模块A I 0.1 A I 0.2 = Q8.0块OB 1循环监视时间的开始启动块 (OB 100) 上电后执行一次从模块读信号状态,并保存到过程映象区 (PII)把过程映象输出表(PIQ) 写到输出模块CPU 循环输入 模块循环程序执行Date: * File No.: SSP1_03C.16SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation过程映象字节 0 字节 1 字节 2

12、: : :CPU 存储器区字节 0 字节 1 字节 2 : : :PIIPIQ 用户程序CPU 存储器区: A I2.0 = Q4.3:11Date: * File No.: SSP1_03C.17SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationS7-300 模块的编址PSCPUSMSMSMSMSMSMSM模块12 4 5 6 7 8 9 10槽号地址 0.0 地址 0.7 地址 1.0 地址 1.7Date: * File No.: S

13、SP1_03C.18SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for Automation多层组态中的 DI/DO 编址机架0槽 1 2 3 4 5 6 7 8 9 10 11 机架396.0to 99.7100.0to 103.7104.0to 107.7108.0to 111.7112.0to 115.7116.0to 119.7120.0to 123.7124.0to 127.7IM(接受) PS机架264.0to 67.768.0to 70.772.0

14、to 75.776.0to 79.780.0to 83.784.0to 87.788.0to 91.792.0to 95.7IM(接受) PS机架 1IM(接受) 32.0to 35.736.0to 39.744.0to 47.748.0to 51.752.0to 55.756.0to 59.760.0to 63.740.0to 43.7PS0.0to3.720.0to 23.724.0to 27.728.0to 31.712.0to 15.716.0to 19.74.0to7.78.0to 11.7IM (发送) CPUPSDate: * File No.: SSP1_03C.19SIMAT

15、IC S7Siemens AG 2000. All rights reserved.Information and Training Center Knowledge for AutomationS7-300模拟量模块的寻址IM256to 270336to 350352to 366368to 382304to 318320to 334272to 286288to 302(发送) 槽口号 2 3 4 5 6 7 8 9 10 11 384to 398400to 414432to 446448to 462464to 478480to 494496to 510416to 430机架 1R 0电源 模块IM(接收) 电源 模块CPU512to 526528to 542544to 558560to 574576to 590592to 606608to 622624to 638机架 2IM(接收) 电源 模块机架 3640 to 654656 to 670672 to

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 行业资料 > 其它行业文档

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