中国高校课件下载中心 》 教学资源 》 大学文库

西门子北京培训ppt课件:《PLC的硬件安装和维护》SSP2_01C

文档信息
资源类别:文库
文档格式:PPT
文档页数:35
文件大小:675.5KB
团购合买:点击进入团购
内容简介
Information and Training Center Know ledge for Automation 结构化编程
刷新页面文档预览

SIEMENS 结构化编程 OB1 FC FB FB FC SFC SFB 其它 OBs SIMATIC S7 Date nformation and Training Center SSP2 01C. Know ledge for Automation

Date: 2021/2/24 File: SSP2_01C.1 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 结构化编程 操作系统 OB1 FC FB FC FB SFC SFB 其它 OBs

SIEMENS lEc1131标准 口第一部分:主要信息 定义PLc的术语 PLc的主要功能特点 口第二部分:设备要求 电气,机械和功能上的要求 制造商需提供的信息 符合标准的规则(一致性) 第三部分:编程语言 梯形图,功能方框图,语句表,顺序功能图和结构化文本 第四部分:用户指南 系统分析和描述 PLc的选择和应用 安全和保护,安装和维护 第五部分:通讯 模式,通讯块,与sO协议的对应关系 Modu: IEC T1D SIMATIC S7 Date nformation and Training Center SSP2 01C.2 Know ledge for Automation

Date: 2021/2/24 File: SSP2_01C.2 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation IEC 1131 标准 ❑第一部分: 主要信息 定义 PLC 的术语 PLC 的主要功能特点 ❑第二部分: 设备要求 电气, 机械和功能上的要求 制造商需提供的信息 符合标准的规则 (一致性) 第三部分:编程语言 梯形图, 功能方框图,语句表, 顺序功能图和结构化文本 ❑第四部分: 用户指南 系统分析和描述 PLC的选择和应用 安全和保护,安装和维护 ❑第五部分: 通讯 模式,通讯块,与ISO协议的对应关系 Modul: IEC_T1D

SIEMENS lEc1131内容-第三部分 口编译为标准代码的规则 口软件模型,通讯模型,编程模型 口可编程逻辑控制语言中的通用元件 数据类型和变 功能和功能块 程序和任务 口指令表(L) (=语句表(STL)) 口结构化文本(ST =结构化控制语言(SCL)) 口梯形图LD) E LAD) 口功能方框图GFBD) 口顺序功能图(SF0)(=S7- GRAPH 口附加的语法规则和编程示例 Modu: IEc T1D SIMATIC S7 Date nformation and Training Center SSP2 01C.3 Know ledge for Automation

Date: 2021/2/24 File: SSP2_01C.3 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation IEC1131 内容 - 第三部分 ❑ 编译为标准代码的规则 ❑ 软件模型, 通讯模型, 编程模型 ❑ 可编程逻辑控制语言中的通用元件 数据类型和变量 功能和功能块 程序和任务 ❑ 指令表 (IL) (= 语句表 (STL)) ❑ 结构化文本 (ST) (= 结构化控制语言 (SCL)) ❑ 梯形图(LD) (= LAD) ❑ 功能方框图(FBD) ❑ 顺序功能图(SFC) (= S7-GRAPH) ❑附加的语法规则和编程示例 Modul: IEC_T1D

SIEMENS SIMATIC管理器下的项目结构 项目 elprog2_la 硬件站 翻 SIMATIC300FBFC S7-300可编程的cPU 日-圈CPu314 s7M7程序(分配给硬件的) FC-Test D Source Files sTL用户程序源文件 用S7块组成的用户程序, E Blocks OBs,FBs,FCs,DBs,等 日回 ALARM 用户程序 Source files sTL源文件 Blocks s7M7程序(未分配给硬件的) SIMATIC S7 Date nformation and Training Center SSP2 01C.4 Know ledge for Automation

Date: 2021/2/24 File: SSP2_01C.4 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation SIMATIC 管理器下的项目结构 项目 S7/M7 程序(未分配给硬件的) 用 S7 块组成的用户程序, OBs, FBs, FCs, DBs, 等 STL 用户程序源文件 S7-300 可编程的 CPU S7/M7 程序(分配给硬件的) 用户程序 硬件站 STL 源文件

SIEMENS STEP7的块 Symbolic Name Size Author Date ommer aSystemdata SDB Exercise 3 Function Block 48AUT9512304.2803STL 口FB80 ource langu Function Block 62AUT95111.12..31.07.STL EFC1 ithout parameter 50AUT95111.12.27.02.sTL ith paramete Function AUT95 11.12..27.02..LAD FFC10 Test EN ENO unction 2903.29.03..LAD 0803.0803 L Data source language Data Block 42AT951 1.1231.07..DB LDB20 FB exe ercise a Data Block 40AUT95111.12.28.03..DB 口DB30 exercise Data block AUT951 11.12.2803.DB 口DB100 Start-up Data block 38AUT95111.12.01 B Organization Block 400 AUT951 1.12.1701..sTL 昼0B100 Organization Block 58 AUT951 11.12... 17.01... STL DB121 Organization Block 50 07.03..1502..STL DVAT2 Start-up mode Variable Tal 01.03..01.03.. STATUS OVATa Variable source Variable T 0 0603.0603.. STATUS C:SFC32 E SRT DINT SFC 0 SIMATIC02.11..30.11..sTL SIMATIC S7 Date nformation and Training Center SSP2 01C.5 Know ledge for Automation

Date: 2021/2/24 File: SSP2_01C.5 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation STEP7的块

SIEMENS 块的组成部分 FPi LAD/STL/FBD-Iprog2_la\prog2\.\FC4.<Offline 口区 ile Edit Insert PLC Debug vie x 变量声明表 Address Decl Initial Value comme Network 1: Plant oN/oFP 代码部分 4.1 SIMATIC S7 Date nformation and Training Center SSP2 01C.6 Know ledge for Automation

Date: 2021/2/24 File: SSP2_01C.6 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 块的组成部分 变量声明表 代码部分

SIEMENS 块的结构 块的首部 (36字节) 块体 变量声明部分 和 程序部分 或 数据 压缩的接口描述 SIMATIC S7 Date nformation and Training Center SSP2 01C.7 Know ledge for Automation

Date: 2021/2/24 File: SSP2_01C.7 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 块的首部 (36字节) 块体 变量声明部分 和 程序部分 或 数据 压缩的接口描述 块的结构

SIEMENS 结构化编程 oB 1 FC 1 电机1 FC 1 电机2 FC 1 电机3 SIMATIC S7 Date nformation and Training Center SSP2 01C.8 Know ledge for Automation

Date: 2021/2/24 File: SSP2_01C.8 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 结构化编程 OB 1 电机 1 FC 1 电机 2 FC 1 电机 3 FC 1

SIEMENS 利用局部数据进行控制 OB1 Fc1(数学功能) 0.5 0.0 in Input1 int sample measure 1 Input2 constant 4.0 in offset Input1 Output_AQW12 result Input2 8.0 temp TEMP1 int intermediate MW10 M50 M5.1 ADD I SUB I 0.5 OH#TEMP1 #INPUT1-IN1 #TEMP1-ⅣN1 oF #Output_A FC1 #INPUT2 -IN2 #INPUT3 Input 1 tput A QW20 6869 Input2 MW16 SIMATIC S7 Date nformation and Training Center SSP2 01C. 9 Know ledge for Automation

Date: 2021/2/24 File: SSP2_01C.9 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 利用局部数据进行控制 FC1 (数学功能) OB1 FC1 Input1 Input2 Input3 Output_A FC1 Input1 Input2 Input3 Output_A MW5 3369 MW10 QW12 MW2 QW20 6869 MW16 I0.5 I0.5 SUB_I IN1 IN2 ( ) M5.1 O ADD_I IN1 IN2 M5.0 O #TEMP1 #INPUT1 #INPUT2 #TEMP1 #INPUT3 #Output_A 0.0 2.0 4.0 6.0 8.0 Input1 Input2 Input3 Output_A TEMP1 in in in out temp int int int int int sample measure 1 constant offset result intermediate

SIEMENS 局部变量 全局变量/数据 局部变量/数据 (在全部程序中有效) (只在一个块中有效) PIl/PIQ 临时变量 静态变量 ·当相关块执行完毕后被清除·当相关块执行完毕后仍然 保留 ·M/T/C 临时存储在 L stack中 ·可在下列块中使用 永久存储在DBs中 · DB areas OBS/FCS/FBs ·只能在FBs中使用 绝对地址 符号地址 访问方式 SIMATIC S7 Date nformation and Training Center Fe: SSP2 01C.10 Know ledge for Automation

Date: 2021/2/24 File: SSP2_01C.10 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 局部变量 临时变量 • 当相关块执行完毕后被清除 • 临时存储在 L stack中 • 可在下列块中使用 OBs / FCs / FBs 静态变量 •当相关块执行完毕后仍然 保留 • 永久存储在DBs中 • 只能在FBs中使用 局部变量 / 数据 (只在一个块中有效) 全局变量/数据 (在全部程序中有效) • PII / PIQ • I/ O • M / T / C • DB areas 绝对地址 符号地址 访问方式

刷新页面下载完整文档
VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
相关文档