第三章SIMATICSTEP7软件详解_第1页
第三章SIMATICSTEP7软件详解_第2页
第三章SIMATICSTEP7软件详解_第3页
第三章SIMATICSTEP7软件详解_第4页
第三章SIMATICSTEP7软件详解_第5页
已阅读5页,还剩133页未读 继续免费阅读

下载本文档

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

文档简介

1、Date:2022-4-30File:SSP1_04C.1SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationStep 7 软件安装软件安装Date:2022-4-30File:SSP1_04C.2SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation从过程到项目从过程到项目FB21硬件硬件软件软

2、件项目管理项目管理过程OB1SIMATIC 管理器I1.0I1.1Q4.0Date:2022-4-30File:SSP1_04C.3SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationSTEP 7 工具工具Date:2022-4-30File:SSP1_04C.4SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for

3、Automation启动启动 SIMATIC 管理器管理器或Date:2022-4-30File:SSP1_04C.5SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationSIMATIC 管理器菜单和工具栏管理器菜单和工具栏 标题栏 菜单栏 工具栏 状态栏 任务栏Date:2022-4-30File:SSP1_04C.6SIMATIC S7Siemens AG 2000. All rights reserved.Information and T

4、raining CenterKnowledge for AutomationSIMATIC 管理器中的工具条管理器中的工具条Windows 95 符号STEP 7 符号显示可访问的接点S7 存储器卡下载 (到 PLC)定义过滤器选择的过滤器仿真模块 (S7-PLCSIM)Date:2022-4-30File:SSP1_04C.7SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationSTEP 7 项目结构项目结构Date:2022-4-30File

5、:SSP1_04C.8SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationSIMATIC 管理器中离线管理器中离线/ /在线在线Date:2022-4-30File:SSP1_04C.9SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation项目的存储位置项目的存储位置Date:2022-4-30F

6、ile:SSP1_04C.10SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation建立项目建立项目这里选择项目名,用“OK”确认。Date:2022-4-30File:SSP1_04C.11SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation插入插入 S7 程序程序Date:2022-4-30F

7、ile:SSP1_04C.12SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation插入插入S7 块块Date:2022-4-30File:SSP1_04C.13SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationSTEP 7 帮助系统帮助系统Date:2022-4-30File:SSP1_04C

8、.14SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationSTEP 7上下文帮助上下文帮助Date:2022-4-30File:SSP1_04C.15SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation标准库标准库Date:2022-4-30File:SSP1_04C.16SIMATIC S7S

9、iemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationS7-300 的存储器概念的存储器概念注释符号块: 逻辑块 (OB,FC,FB) 数据块 (DB)PG中的Flash EPROM 存储器卡(随后插入CPU)块: 逻辑块 (OB,FC,FB) 数据块 (DB)附加信息系统存储器系统存储器: PII, PIQ M, T, C 保持的 M, T, C 保持的数据块保持存储器保持存储器:当系统断电时,不用电池做后备n. reten. reten.当系统有电时,不用电池做后

10、备RAM块: 逻辑块 (OB,FC,FB) 数据块 (DB)附加信息装载存储器:装载存储器:Flash-EPROM工作存储器工作存储器: OB,FC,FB DBn. reten. reten.Date:2022-4-30File:SSP1_04C.17SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationS7-400的存储器概念的存储器概念注释符号块: 逻辑块 (OB,FC,FB) 数据块 (DB)PG中的Flash EPROM 存储器卡(随后插

11、入CPU)块: 逻辑块 (OB,FC,FB) 数据块 (DB)附加信息.RAM块: 逻辑块 (OB,FC,FB) 数据块 (DB)附加信息装载存储器装载存储器:Flash-EPROM系统存储器系统存储器: PII, PIQ M, T, C工作存储器工作存储器: OB,FC,FB DB通过电池后备Date:2022-4-30File:SSP1_04C.18SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationFlash EPROM存储器卡中块的读出

12、和写入存储器卡中块的读出和写入内部装载存储器内部装载存储器 RAM“装入装入” 装载装载 Flash EPROM“装入装入 EPROM”工作存储器工作存储器RAM插入存储器卡后:申请存储器复位并拷贝到工作存储器可执行的部分“装到装到 PG”Date:2022-4-30File:SSP1_04C.19SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation程序块类型程序块类型故障FBFBFBFCSFCSFBFB 带背景数据块阴影: OB组织块组织块循

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

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

15、)系统功能块- 存储在CPU的操作系统中 (SFB)- 用户可以调用此功能 (需要存储器)系统数据块- 用于组态数据和参数的数据块 (SDB) 系统块系统块Date:2022-4-30File:SSP1_04C.22SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation数据块类型和结构数据块类型和结构数据字节 0 数据字节 81918 位CPU314中块的大小是8K字节 数据块提供的最大存储空间依赖于CPU的型号07Date:2022-4-30F

16、ile:SSP1_04C.23SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation调用程序块调用程序块调用程序块调用程序块被调用的块被调用的块(OB, FB, FC)(FB, FC, SFB, SFC)程序执行程序执行调用另一个块的指令块结束Date:2022-4-30File:SSP1_04C.24SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training C

17、enterKnowledge for Automation执行OB1中的程序 (循环执行)事件 (日期时间中断、硬件中断等) 调用其他 OB,FB,FC输出模块A I 0.1A I 0.2= Q8.0块OB 1循环监视时间的开始启动块 (OB 100)上电后执行一次从模块读信号状态,并保存到过程映象区 (PII)把过程映象输出表(PIQ) 写到输出模块CPU 循环循环输入模块循环程序执行循环程序执行Date:2022-4-30File:SSP1_04C.25SIMATIC S7Siemens AG 2000. All rights reserved.Information and Traini

18、ng CenterKnowledge for Automation过程映象过程映象字节 0字节 1字节 2: CPU 存储器区字节 0字节 1字节 2: PIIPIQ 用户程序 CPU 存储器区 : :A I2.0= Q4.3 : : : :11Date:2022-4-30File:SSP1_04C.26SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationS7-300 模块的编址模块的编址PSCPUSMSMSMSMSMSMSM模块 12 4 5

19、 6 7 8 9 10槽号地址 0.0地址 0.7地址 1.0地址 1.7Date:2022-4-30File:SSP1_04C.27SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation多层组态中的多层组态中的 DI/DO DI/DO 编址编址机架 0槽 1 2 3 4 5 6 7 8 9 10 11 机架 396.0 to99.7100.0 to103.7104.0 to107.7108.0 to111.7112.0 to115.7116.0

20、 to119.7120.0 to123.7124.0 to127.7IM(接受) PS机架 264.0 to67.768.0 to70.772.0 to75.776.0 to79.780.0 to83.784.0 to87.788.0 to91.792.0 to95.7IM(接受) PS机架1IM(接受) 32.0 to35.736.0 to39.744.0 to47.748.0 to51.752.0 to55.756.0 to59.760.0 to63.740.0 to43.7PS 0.0 to 3.720.0 to23.724.0 to27.728.0 to31.712.0 to15.71

21、6.0 to19.7 4.0 to 7.7 8.0 to11.7IM(发送) CPUPSDate:2022-4-30File:SSP1_04C.28SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationS7-300模拟量模块的寻址模拟量模块的寻址IM256 to270336 to350352 to366368 to382304 to318320 to334272 to286288 to302 (发送) 槽口号 2 3 4 5 6 7 8 9 10

22、 11 384 to398400 to414432 to446448 to462464 to478480 to494496 to510416 to430机架机架 1R0电源模块IM(接收) 电源模块CPU512 to526528 to542544 to558560 to574576 to590592 to606608 to622624 to638机架机架 2IM(接收) 电源模块机架机架 3640to654656to670672to686688 to702704 to718720 to734736 to750752 to766IM(接收) 电源模块Date:2022-4-30File:SSP1

23、_04C.29SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation程序结构程序结构STEP 7为设计程序提供三种方法。基于这些方法,可以选择最适合于你的应用的程序设计方法。为设计程序提供三种方法。基于这些方法,可以选择最适合于你的应用的程序设计方法。线性化线性化模块化模块化结构化结构化线性化编程:所有的指令都在一个块 (OB1) 内。模块化编程:每个设备的控制指令都在各自的块内。 OB1按顺序调用每个块。结构化编程:不同的块调用可重复利用的代码

24、。OB1 (或其他块) 调用这些块并传递相应的参数。OB1OB1OB1配方 A配方 B混合器排空泵排空Date:2022-4-30File:SSP1_04C.30SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation线性化编程线性化编程OB1Network 1Network 2Network 3电机控制电机控制信息信息取得操作的小时数取得操作的小时数Date:2022-4-30File:SSP1_04C.31SIMATIC S7Siemens A

25、G 2000. All rights reserved.Information and Training CenterKnowledge for Automation线性编程实例线性编程实例 - - 传送带控制传送带控制Date:2022-4-30File:SSP1_04C.32SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation模块化编程模块化编程电机控制电机控制信息信息取得操作小时数取得操作小时数OB 1FC 1FC 2FC 3Date:2

26、022-4-30File:SSP1_04C.33SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation主程序 子块程序处理程序处理g调用另一个块的指令块结束 OBFC/FB模块化程序的执行模块化程序的执行Date:2022-4-30File:SSP1_04C.34SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for A

27、utomationLT模块化编程实例模块化编程实例 - - 液位监视液位监视Date:2022-4-30File:SSP1_04C.35SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation结构化编程结构化编程OB 1电机电机 1FC 1电机电机 2FC 1电机电机 3FC 1Date:2022-4-30File:SSP1_04C.36SIMATIC S7Siemens AG 2000. All rights reserved.Informati

28、on and Training CenterKnowledge for Automationab罐选择开关拨码开关0000成分 A成分 BLTLTLTLTLT结构化编程实例结构化编程实例 Date:2022-4-30File:SSP1_04C.37SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation硬件组态和参数分配硬件组态和参数分配 实际组态 已存在硬件的实际组态和参数分配。参数分配建立可分配参数模块的特性,例如:启动特性、 保持区等。 设定

29、组态 设定好的硬件组态和参数分配。 组态 在硬件组态的站窗口中分配机架、块可分布式 I/O,可以从硬件目录中选择部件。Date:2022-4-30File:SSP1_04C.38SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation插入一个站插入一个站Date:2022-4-30File:SSP1_04C.39SIMATIC S7Siemens AG 2000. All rights reserved.Information and Traini

30、ng CenterKnowledge for Automation启动硬件组态启动硬件组态Date:2022-4-30File:SSP1_04C.40SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation产生硬件设定组态产生硬件设定组态Date:2022-4-30File:SSP1_04C.41SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Cente

31、rKnowledge for Automation模块地址概况模块地址概况“地址概况”Date:2022-4-30File:SSP1_04C.42SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationCPU 属性属性2xDate:2022-4-30File:SSP1_04C.43SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowled

32、ge for AutomationCPU 属性:概述属性:概述Date:2022-4-30File:SSP1_04C.44SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationCPU 属性:启动属性:启动Date:2022-4-30File:SSP1_04C.45SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for A

33、utomationCPU 属性:保持属性:保持仅当 如果CPU 没有后备电池时有效Date:2022-4-30File:SSP1_04C.46SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationCPU 属性:循环属性:循环/ /时钟存储器时钟存储器时钟存储器位76543210频率 (Hz)0.50.62 11.25 22.5510周期 (s)21.60.20.1Date:2022-4-30File:SSP1_04C.47SI

34、MATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationCPU 属性:保护属性:保护Date:2022-4-30File:SSP1_04C.48SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationCPU 属性:诊断属性:诊断/ /时钟时钟Date:2022-4-30File:SSP1_04C.49SIM

35、ATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation保存硬件设定组态与下载到模块保存硬件设定组态与下载到模块下载(只有CPU在 STOP 模式)Date:2022-4-30File:SSP1_04C.50SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation上载硬件实际组态到编程器上载硬件实际组态到编程

36、器Date:2022-4-30File:SSP1_04C.51SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationSIMATIC 管理器中显示硬件诊断管理器中显示硬件诊断2xDate:2022-4-30File:SSP1_04C.52SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation组态的可能

37、问题组态的可能问题组态不能编译在S7-300中,组态中有空位置情况情况结果结果 / 补救补救因为参数分配错误,CPU 进入Stop 模式模拟量模块分配到不正确的槽位置由于不正确的参数分配,模拟量模块组态错误模拟量模块不正确的测量范围重新装载组态存储器复位后,分配不相同的参数建立硬件站或“上载站”不能打开硬件组态离线打开站模块参数不能修改组态不能下载不正确的 CPU (例如:是CPU 315-2DP 不是 CPU 314)Date:2022-4-30File:SSP1_04C.53SIMATIC S7Siemens AG 2000. All rights reserved.Information

38、 and Training CenterKnowledge for Automation可变寻址可变寻址2xDate:2022-4-30File:SSP1_04C.54SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation访问符号表访问符号表一次右击Date:2022-4-30File:SSP1_04C.55SIMATIC S7Siemens AG 2000. All rights reserved.Information and Trainin

39、g CenterKnowledge for Automation符号符号Date:2022-4-30File:SSP1_04C.56SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation绝对寻址和符号寻址绝对寻址和符号寻址AI 0.0=Q4.0AI 0.4=Q8.5CallFC18A“PLANT_ON”=“ON_INDIC”A“M_FORW”=“MOTOR_FORW”Call“COUNT”Symbol AddressData Type Comme

40、nt MOTOR_FORWCOUNTPLANT_ONON_INDICM_FORWQ8.5FC18I 0.0Q4.0I 0.4BOOLFC18BOOLBOOLBOOLMotor forwards Count bottlesSwitch on plantIndicator: Plant is “On”M.-con. switch: Motor forwards(最多 24 个字符)(最多 80 个字符)Date:2022-4-30File:SSP1_04C.57SIMATIC S7Siemens AG 2000. All rights reserved.Information and Traini

41、ng CenterKnowledge for Automation局部数据块局部数据块:块的声明表 程序编辑器- 块参数- 局部 /临时数据跳转标号块的代码区程序编辑器 符号寻址符号寻址 - - 概述概述何处使用符号?它们存放在何处? 如何建立它们?全局数据全局数据:符号表符号编辑器- 输入- 输出- 位存储器、定时器、计数器- 外设 I/O数据块组成数据块组成DB的声明表程序编辑器块名称块名称:符号表符号编辑器- FB- FC- DB- VAT- UDTDate:2022-4-30File:SSP1_04C.58SIMATIC S7Siemens AG 2000. All rights re

42、served.Information and Training CenterKnowledge for Automation打开符号表打开符号表Date:2022-4-30File:SSP1_04C.59SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation编辑:查找与替换编辑:查找与替换 Date:2022-4-30File:SSP1_04C.60SIMATIC S7Siemens AG 2000. All rights reserved.In

43、formation and Training CenterKnowledge for Automation查看:过滤器查看:过滤器 Date:2022-4-30File:SSP1_04C.61SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation查看:排序查看:排序Date:2022-4-30File:SSP1_04C.62SIMATIC S7Siemens AG 2000. All rights reserved.Information and

44、 Training CenterKnowledge for Automation符号表:导出符号表:导出要把表存到何处 ?把表存成何种格式?Date:2022-4-30File:SSP1_04C.63SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation符号表:导入符号表:导入这里选择目录路径输入文件名选择格式Date:2022-4-30File:SSP1_04C.64SIMATIC S7Siemens AG 2000. All rights r

45、eserved.Information and Training CenterKnowledge for Automation编辑符号编辑符号 ( (在在 LAD/STL/FBD LAD/STL/FBD 编辑器中编辑器中) )Date:2022-4-30File:SSP1_04C.65SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation符号信息符号信息 ( (在在 LAD/STL/FBD LAD/STL/FBD 编辑器中编辑器中) )Date:

46、2022-4-30File:SSP1_04C.66SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation符号选择符号选择 ( (在在 LAD/STL/FBD LAD/STL/FBD 编辑器中编辑器中) )Date:2022-4-30File:SSP1_04C.67SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for A

47、utomation符号优先符号优先Symbol TableOld Entry:Plant ON = Q8.0New Entry:Plant ON = Q4.0优先:优先: 绝对地址绝对地址优先:优先:符号符号Date:2022-4-30File:SSP1_04C.68SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation程序的反编译程序的反编译缺少符号表缺少符号表替换表示法替换表示法 符号表符号表对全局数据(如对全局数据(如 I 1.0)使用地址

48、而不用符号使用地址而不用符号 DB的符号部分的符号部分DB的单元(如的单元(如 DW1)使用地址,而不用符号使用地址,而不用符号 FB 的符号部分的符号部分 对块的局部和暂时数据使用地址而不用符号(如对块的局部和暂时数据使用地址而不用符号(如 LB 17) 对参数使用替代的记号,而不用符号,如对参数使用替代的记号,而不用符号,如 PAR 1 FB注释部分注释部分对跳转表使用替代的记号,而不用符号。如对跳转表使用替代的记号,而不用符号。如 M 001Date:2022-4-30File:SSP1_04C.69SIMATIC S7Siemens AG 2000. All rights reserv

49、ed.Information and Training CenterKnowledge for Automation位指令位指令I0.0I0.1Q 8.0Q 8.1SRSQRI1.2I1.3M0.0Q 9.3I 1.0( MCR=1=Q 4.2O I0.2O I0.3= Q 4.2I0.0I0.1Q 4.0Q 4.1LAD=Q 4.0&I 0.0I 0.1=Q 4.1FBDA I0.0A I0.1= Q 4.0= Q 4.1STLI0.2I0.3Q 4.2L3 (Q 4.2)S3(I 0.2)S4(I 0.3)ORANDDate:2022-4-30File:SSP1_04C.71SIM

50、ATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation基本逻辑指令:异或基本逻辑指令:异或 (XOR)XI0.4XI0.5=Q4.0I 0.4I 0.5XOR=Q4.0I0.4I0.5I0.4I0.5Q 4.0LAD =1=Q 4.0&I 0.4I 0.5&I 0.4I 0.5FBDSTLAI0.4ANI0.5OANI0.4AI0.5=Q4.0Date:2022-4-30File:SSP1_04C.72SIMATIC S7Siemens

51、 AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation逻辑操作结果,首次检查,举例逻辑操作结果,首次检查,举例A I 1.0AN I 1.1A M 4.0= Q 4.0= Q 4.1A I 2.0例例 1信号状态0000检查结果逻辑操作结果首次检查信号状态检查结果逻辑操作结果首次检查1例例 2111信号状态检查结果逻辑操作结果首次检查1例例 3010Date:2022-4-30File:SSP1_04C.73SIMATIC S7Siemens AG 2000. All right

52、s reserved.Information and Training CenterKnowledge for Automation常开和常闭触点,传感器和符号常开和常闭触点,传感器和符号输入端的信号状态检查信号状态“1”符号 /指令检查结果检查信号状态“0”符号 /指令检查结果有输入端有电压吗?无有无101Yes 1LAD: 常开触点0&FBD:A I x.ySTL:AN I x.ySTL:&FBD:LAD: 常闭触点 No 0 Yes 1 No 0 No 0 Yes 1 Yes 1 No 0过程PLC程序中的解释动作不动作传感器是 .动作不动作常开触点传感器是 .常闭触点D

53、ate:2022-4-30File:SSP1_04C.74SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation练习练习8.1:常开点与常闭点常开点与常闭点任务:当任务:当 S1 动作和动作和S2 不动作时,在所有三个例子中灯应该点亮不动作时,在所有三个例子中灯应该点亮!I1.0I1.1Q 4.0I1.0I1.1Q 4.0. I1.0. I1.1. Q 4.0Q 4.0I 1.0I1.1&Q 4.0I1.0I1.1&Q 4.0I1

54、.0I1.1&. I1.0. I1.1. Q 4.0. I1.0. I1.1. Q 4.0软件软件I1.0S1I1.1S2I1.0S1I1.1S2I1.0S1I1.1S2Q 4.0可编程控制器LightLightLightQ 4.0可编程控制器Q 4.0可编程控制器FDBSTLLAD硬件硬件I 1.0I 1.1Q 4.0I 1.0I 1.1I 1.0I 1.1I 1.0I 1.1Date:2022-4-30File:SSP1_04C.75SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Cen

55、terKnowledge for Automation赋值,置位,复位赋值,置位,复位(S)Q 4.1I 1.2I 1.3I 1.2&SQ 4.1I 1.3A I 1.2A I 1.3S Q 4.1置位(R)Q 4.1I 1.4I 1.4=1RQ 4.1I 1.5O I 1.4O I 1.5R Q 4.1复位I 1.5( )Q 4.0I 1.0I 1.1I 1.0&=Q 4.0I 1.1A I 1.0A I 1.1= Q 4.0赋值LADFBDSTLDate:2022-4-30File:SSP1_04C.76SIMATIC S7Siemens AG 2000. All righ

56、ts reserved.Information and Training CenterKnowledge for Automation触发器的置位触发器的置位 / / 复位复位SRRQSI1.2I1.3M0.0=Q5.3复位优先SRSQRI1.2I1.3M0.0Q 5.3A I 1.2S M 0.0A I 1.3R M 0.0A M 0.0= Q 5.3RSSQRI1.3I1.2M0.0=Q5.3置位优先RSRQSI1.3I1.2M0.0Q 5.3A I 1.3R M 0.0A I 1.2S M 0.0A M 0.0= Q 5.3LADFBDSTLDate:2022-4-30File:SSP1

57、_04C.77SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation连接器连接器LADI 1.0I 1.1( )M0.0I 2.0I 2.1( )M 1.1NOT( )Q 4.0AI1.0AI1.1=M 0.0AM 0.0AI2.0AI2.1NOT=M 1.1AM 1.1=Q 4.0STLI 1.0I 1.1&I 2.0I 2.1M0.0M1.1Q 4.0=FBDDate:2022-4-30File:SSP1_04C.78SIMATIC

58、S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation影响影响RLO的指令的指令LADFBDSTLA I0.0 A I0.1 NOT = Q4.0=Q4.0&I0.0I0.1( ) Q4.0NOTI0.0I0.1Status word1581BRRLO不存在不存在CLR不存在不存在SETI1.6( SAVE ) SAVE&I1.6A I1.6SAVE=Q4.1BRBR( ) Q4.1A BR= Q 4.1Date:2022-4-30File:SS

59、P1_04C.79SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation主控继电器功能主控继电器功能MCR&=M5.5M69.0I 2.7MCRD&=A0.7Q4.5M0.6=FBDMCRA/ 激活A I0.0/ 允许 MCRMCR(/ 打开 MCRA I0.7/ NO 触点= Q4.5/ 输出线圈= M0.6/输出线圈A I0.4/ NO 触点S Q8.0/ 置位输出 )MCR/ 关闭 MCRAN M5.5/ 紧急触点AN I

60、2.7/ 紧急触点= M69.0/ 输出线圈MCRD/ 取消STLLAD( MCRA )I0.7( )Q4.5 ( )M0.6 I0.4( S )Q8.0( )M69.0 I 2.7M5.5( MCR )I0.0Date:2022-4-30File:SSP1_04C.80SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation无条件跳转无条件跳转 ( (不依赖于不依赖于 RLO) )( JMP )NEW1Network 1Network 2:Network xNEW1( )M69.0I 2.7M5.5LADNEW1JMP.NEW1&M5.5I 2.7=M69.0Network 1Network

温馨提示

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

评论

0/150

提交评论