《第5章S7300400软件基础.ppt》由会员分享,可在线阅读,更多相关《第5章S7300400软件基础.ppt(66页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、Date:12/6/2022File No.:SSP1_03C.1SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation第5章S7300400软件基础 Still waters run deep.流静水深流静水深,人静心深人静心深 Where there is life,there is hope。有生命必有希望。有生命必有希望Date:12/6/2022File No.:SSP1_03C.2SIMATIC S7Siemens AG 2000.Al
2、l rights reserved.Information and Training CenterKnowledge for Automation5.1 S7-300的数据环境的数据环境5.2 逻辑操作指令逻辑操作指令5.3 程序控制指令程序控制指令5.4 传送和比较指令传送和比较指令5.5 运算指令运算指令5.6 转换指令转换指令 5.7 计数器指令计数器指令5.8 计时器指令计时器指令5.9 块操作指令块操作指令Date:12/6/2022File No.:SSP1_03C.3SIMATIC S7Siemens AG 2000.All rights reserved.Information
3、 and Training CenterKnowledge for Automation5.1 S7-300的数据环境的数据环境1 数据类型数据类型 位位 BOOL 例:例:True 或或 False(1 或或0)字节字节 BYTE 例:例:B#16#0FF 字字 WORD 例:例:W#16#0 FFFF 双字双字 DWORD 例:例:DW#16#0FFFF_FFFF 整数整数 INT 例:例:-3276832767 双整数双整数 DINT 例:例:-214783648 214783647 实数实数 REAL REAL 例:例:1.2 或或 34.5E-12 时间时间 S5TIME 例:例:S
4、5T#2H5M (时基时基 10mS)字符字符 CHAR 例:例:A日期日期时间时间 TIME_OF_DAY TIME_OF_DAY 例:例:TOD#12:23:45.12TOD#12:23:45.12 时间时间 TIME 例:例:T#20H_31M_23S (时基时基 1mS)日期日期 DATE 例:例:D#1990-1-1 (时基时基 1天天)Date:12/6/2022File No.:SSP1_03C.4SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for A
5、utomation说明:S5TIME 为为 SIMATIC时间时间 范围范围 S5T#0H_0M_0S_10MS S5T#2H_46M_39S_0MSTIME为为 IEC时间时间 范围范围 T#0 0 0.0 T#23 59 59.999TIME-OF-DAY 为为 日计时日计时 范围范围 TOD#0:0:0.0 TOD#23:59:59.999Date:12/6/2022File No.:SSP1_03C.5SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Au
6、tomation2 过程映象过程映象字节 0字节 1字节 2:CPU 存储器区字节 0字节 1字节 2:PIIPIQ 用户程序 CPU 存储器区:A I2.0=Q4.3:11Date:12/6/2022File No.:SSP1_03C.6SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for AutomationPSCPUSMSMSMSMSMSMSM模块 12 4 5 6 7 8 9 10槽号地址 0.0地址 0.7地址 1.0地址 1.7Date:12/6/2022
7、File No.:SSP1_03C.7SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation3.STEP 7 的可能寻址范围的可能寻址范围设计的地址区设计的地址区 访问区域访问区域 缩写缩写 加在一起的最大区域加在一起的最大区域过程映象过程映象 I/Q 输入/输出位 I/Q 0.0-65,535.7 输入/输出字节 I/QB 0-65,535 输入/输出字 I/QW 0-65,534 输入/输出双字 I/QD 0-65,532存储器标志存储器标志
8、存储器位 M 0.0-255.7 存储器字节 MB 0-255 存储器字 MW 0-254 存储器双字 MD 0-252 I/Q 外部输入外部输入/输出输出 I/Q 字节,外设 PIB/PQB 0-65,535 I/Q 字,外设 PIW/PQW 0-65,534 I/Q 双字,外设 PID/PQD 0-65,532 定时器定时器 定时器(T)T 0-255计数器计数器 计数器(C)C 0-255Date:12/6/2022File No.:SSP1_03C.8SIMATIC S7Siemens AG 2000.All rights reserved.Information and Traini
9、ng CenterKnowledge for Automation设计的地址区设计的地址区 访问区域访问区域 缩写缩写 加在一起的最大区域加在一起的最大区域数据块数据块 数据块(DB)DB 0-65,535数据块数据块 用OPN DB打开 位 DBX 0.0-65,535.7 字节 DBB 0-65,535 字 DBW 0-65,534 双字 DBD 0-65,532 用OPN DI打开 位 DIX 0.0-65,535.7 字节 DIB 0-65,535 字 DIW 0-65,534 双字 DID 0-65,532说明:DB块包含由任意一个块存取的数据块包含由任意一个块存取的数据.DB块用块
10、用“OPN DB”打开打开.DI块用于存取与块用于存取与FB和和SFB块的数据块的数据.DI块用块用“OPN DI”打开打开.S7同时只能识别一个同时只能识别一个DB块和一个块和一个DI块的数据块的数据.Date:12/6/2022File No.:SSP1_03C.9SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation5.2 逻辑操作指令逻辑操作指令1.位逻辑指令位逻辑指令(1)基本逻辑指令:)基本逻辑指令:与与,或或Date:12/6/202
11、2File No.:SSP1_03C.10SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation(2)基本逻辑指令:异或)基本逻辑指令:异或(XOR)Date:12/6/2022File No.:SSP1_03C.11SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation 异或异或(XORXOR)指令练
12、习指令练习:Date:12/6/2022File No.:SSP1_03C.12SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation(3)常开和常闭触点,传感器和符号)常开和常闭触点,传感器和符号Date:12/6/2022File No.:SSP1_03C.13SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Au
13、tomation 常开常闭触点练习常开常闭触点练习Date:12/6/2022File No.:SSP1_03C.14SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation与或非操作练习与或非操作练习Date:12/6/2022File No.:SSP1_03C.15SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for A
14、utomation(4)赋值,置位,复位)赋值,置位,复位Date:12/6/2022File No.:SSP1_03C.16SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation 置位复位操作练习置位复位操作练习Date:12/6/2022File No.:SSP1_03C.17SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledg
15、e for Automation(5 5)触发器的置位)触发器的置位 /复位复位Date:12/6/2022File No.:SSP1_03C.18SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation置位复位触发器练习置位复位触发器练习Date:12/6/2022File No.:SSP1_03C.19SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training Ce
16、nterKnowledge for Automation(6)中间输出操作中间输出操作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:12/6/2022File No.:SSP1_03C.20SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowle
17、dge for Automation中间输出操作练习中间输出操作练习Date:12/6/2022File No.:SSP1_03C.21SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation(7 7)RLO-RLO-边沿检测边沿检测(检测确检测确 I1.0I1.0与与I1.1I1.1的边沿的边沿)PI1.0I1.1M1.0M8.0NI1.0I1.1M1.1M8.1LADI1.0I1.1P=&M1.0M8.0I1.0I1.1N=&M1.1M8.1FB
18、DAI1.0 AI1.1FPM1.0=M8.0 A I 1.0AI 1.1FNM1.1=M8.1 STLI1.0I1.1RLOM1.0M8.0M8.1M1.1OB1-循环例如Date:12/6/2022File No.:SSP1_03C.22SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation(8 8)信号信号-边沿检测边沿检测(I1.0=1 I1.0=1 时时 检测检测 I1.1I1.1的边沿的边沿)I1.1=M8.0POSM_BITM1.0&
19、I1.0I1.1=M8.1NEGM_BITM1.1&I1.0FBDAI1.0 A(A I1.1FPM1.0)=M8.0AI1.0A(AI1.1FNM1.1)=M8.1 STLI1.1M8.0POSM_BITM1.0QI1.0I1.1M8.1NEGM_BITM1.1QI1.0LAD例如I1.0I1.1M1.0M8.0M8.1M1.1OB1-周期Date:12/6/2022File No.:SSP1_03C.23SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Aut
20、omation2 计数器线圈操作计数器线圈操作加计数加计数线圈线圈CU减计数减计数线圈线圈CD I0.0为置数脉冲为置数脉冲 I0.1为加计数脉冲为加计数脉冲 I0.2为减计数脉冲为减计数脉冲CV=0时时 C5=OFFCV 0时 C5=ONQ0.5=C5I1.0=ON时,时,I0.0=ON时时CV=10。I0.1脉冲使计数加脉冲使计数加1 I0.2脉冲使计数减脉冲使计数减1Date:12/6/2022File No.:SSP1_03C.24SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterK
21、nowledge for Automation3 计时器线圈操作计时器线圈操作脉冲计时器(脉冲计时器(SP)I1.0=ON时时扩展脉冲计时器(扩展脉冲计时器(SE)I1.0=ON时时计时器的数据格式:计时器的数据格式:Date:12/6/2022File No.:SSP1_03C.25SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation开通延时计时器(开通延时计时器(SD)I1.0=ON时时保持型开通延时计时器(保持型开通延时计时器(SS)I1.
22、0=ON时时关断延时计时器(关断延时计时器(SF)I1.0=ON时时Date:12/6/2022File No.:SSP1_03C.26SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation5.3 程序控制指令程序控制指令(1)主控继电器功能主控继电器功能Date:12/6/2022File No.:SSP1_03C.27SIMATIC S7Siemens AG 2000.All rights reserved.Information and Tr
23、aining CenterKnowledge for Automation主控继电器(主控继电器(MCR)是梯形逻辑主控开关,控制信号流的通断。)是梯形逻辑主控开关,控制信号流的通断。主控继电器的启动指令(主控继电器的启动指令(MCRA)主控继电器的开通指令(主控继电器的开通指令(MCR)主控继电器的停止指令(主控继电器的停止指令(MCRD)Date:12/6/2022File No.:SSP1_03C.28SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Aut
24、omation主控继电器的例子主控继电器的例子1I0.0=ON 执行执行“MCR”之间的指令。之间的指令。I0.0=OFF 不执行不执行“MCR”之间的指令。之间的指令。其中置位信号不变,其中置位信号不变,赋值信号被复位。赋值信号被复位。Date:12/6/2022File No.:SSP1_03C.29SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation主控继电器的例子主控继电器的例子2Date:12/6/2022File No.:SSP1_0
25、3C.30SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation(2)无条件跳转无条件跳转指令指令Date:12/6/2022File No.:SSP1_03C.31SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation(3)条件跳转条件跳转指令指令Date:12/6/2022File No.:SSP1
26、_03C.32SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation跳转跳转指令练习指令练习 (跳过之处不扫描)Date:12/6/2022File No.:SSP1_03C.33SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation5.4 传送和比较指令传送和比较指令传送指令传送指令 字节,字,双字字
27、节,字,双字传送。传送。比较指令比较指令整数,双整数,实数比较。整数,双整数,实数比较。比较符比较符:EQ_I,NE_I,GT_I,EQ_I,NE_I,GT_I,LT_I,GE_I,LE_I.LT_I,GE_I,LE_I.EQ_D,NE_D,GT_D,EQ_D,NE_D,GT_D,LT_D,GE_D,LE_D.LT_D,GE_D,LE_D.EQ_R,NE_R,GT_R,EQ_R,NE_R,GT_R,LT_R,GE_R,LE_R.LT_R,GE_R,LE_R.Date:12/6/2022File No.:SSP1_03C.34SIMATIC S7Siemens AG 2000.All right
28、s reserved.Information and Training CenterKnowledge for Automation5.5 运算指令运算指令整数运算整数运算运算符:运算符:ADD_I.SUB_I.MUL_I.DIV_I.ADD_DI.SUB_DI.MUL_DI.DIV_DI,MOD_DI.实数运算实数运算运算符:运算符:ADD_R.SUB_R.MUL_R.DIV_R.SIN,COS,TAN,ASIN,ACOS,ATAN,LN,EXPDate:12/6/2022File No.:SSP1_03C.35SIMATIC S7Siemens AG 2000.All rights res
29、erved.Information and Training CenterKnowledge for Automation5.6 转换指令转换指令BCD码与整数转换码与整数转换 BCD_I把通道中把通道中的的BCD码码转换为整数存转换为整数存入入通道通道中。中。I_ BCD把通道中的把通道中的整数转换为整数转换为BCD码码存入存入通道通道中。中。双整数与实数转换双整数与实数转换DI _RROUNDBCD_DI,DI _ BCD,I _ DI,DI _I。Date:12/6/2022File No.:SSP1_03C.36SIMATIC S7Siemens AG 2000.All rights
30、reserved.Information and Training CenterKnowledge for Automation5.7 计数器指令计数器指令双向计数器双向计数器I0.0为加计数脉冲为加计数脉冲I0.1为减计数脉冲为减计数脉冲I0.2为置数脉冲为置数脉冲I0.3为复位脉冲为复位脉冲CV0时,时,C0=ON。向上计数器向上计数器I0.0为加计数脉冲为加计数脉冲I0.1为置数脉冲为置数脉冲I0.2为复位脉冲为复位脉冲CV0时,时,C0=ON。Date:12/6/2022File No.:SSP1_03C.37SIMATIC S7Siemens AG 2000.All rights r
31、eserved.Information and Training CenterKnowledge for Automation向下计数器向下计数器I0.3为减计数脉冲为减计数脉冲I0.4为置数脉冲为置数脉冲I0.5为复位脉冲为复位脉冲CV0时,时,C0=ON。说明:梯形图中梯形图中CV为用十六进制表示的计数器的当前值。为用十六进制表示的计数器的当前值。梯形图中梯形图中CV_ BCD为用为用BCD码表示的计数器的当前值。码表示的计数器的当前值。梯形图中的梯形图中的PV值可以用值可以用BCD码表示的数值由通道送入。码表示的数值由通道送入。Date:12/6/2022File No.:SSP1_03
32、C.38SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation5.8 计时器指令计时器指令脉冲计时器(脉冲计时器(SP)扩展脉冲计时器(扩展脉冲计时器(SE)Date:12/6/2022File No.:SSP1_03C.39SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation开通延时计时器(开通延时
33、计时器(SD)保持型开通延时计时器(保持型开通延时计时器(SS)Date:12/6/2022File No.:SSP1_03C.40SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation关断延时计时器(关断延时计时器(SF)说明:梯形图中梯形图中BI为用十六进制表示的计数器的当前值。为用十六进制表示的计数器的当前值。梯形图中梯形图中 BCD为用为用BCD码表示的计数器的当前值。码表示的计数器的当前值。梯形图中的梯形图中的TV值可以用值可以用BCD码
34、表示的数值由通道送入。码表示的数值由通道送入。Date:12/6/2022File No.:SSP1_03C.41SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation5.9 块操作指令块操作指令1 温度控制(温度控制(S7-PRO1)说明:检测温度在说明:检测温度在PIW256中,显示在中,显示在PQW368中。中。温控温控1的温度保持在的温度保持在82,控制器为控制器为Q 0.0。温控温控2的温度保持在的温度保持在182,控制器为控制器为Q 0
35、.1。设计:设计:OB1为主程序,负责调用控制程序为主程序,负责调用控制程序FC1。DB1和和DB2为通用数据块。为通用数据块。其中其中DB1为温控为温控1的控制参数数据块。的控制参数数据块。DB2为温控为温控2的控制参数数据块。的控制参数数据块。Date:12/6/2022File No.:SSP1_03C.42SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for AutomationDB块:块:DB1DB2Date:12/6/2022File No.:SSP1_0
36、3C.43SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for AutomationFC块:块:FC1Date:12/6/2022File No.:SSP1_03C.44SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for AutomationOB块:块:OB1Date:12/6/2022File No.:SSP1_03C.45SIMATIC
37、 S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation运行仿真:运行仿真:温控温控1控制仿真控制仿真温控温控2控制仿真控制仿真Date:12/6/2022File No.:SSP1_03C.46SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation2 温度控制(温度控制(S7-PRO2)说明:检测温度在说明:检测温度
38、在PIW256中,显示在中,显示在PQW368中。中。温控温控1的温度保持在的温度保持在82,控制器为控制器为Q 0.0。温控温控2的温度保持在的温度保持在182,控制器为控制器为Q 0.1。设计:设计:OB1为主程序,负责调用控制程序为主程序,负责调用控制程序FB1。DB1和和DB2为为FB1型数据块。型数据块。其中其中DB1为温控为温控1的控制参数数据块。的控制参数数据块。DB2为温控为温控2的控制参数数据块。的控制参数数据块。Date:12/6/2022File No.:SSP1_03C.47SIMATIC S7Siemens AG 2000.All rights reserved.In
39、formation and Training CenterKnowledge for AutomationFB块:块:FB1Date:12/6/2022File No.:SSP1_03C.48SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for AutomationDB块:块:DB1DB2Date:12/6/2022File No.:SSP1_03C.49SIMATIC S7Siemens AG 2000.All rights reserved.Information
40、 and Training CenterKnowledge for AutomationOB块:块:OB1Date:12/6/2022File No.:SSP1_03C.50SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation运行仿真:运行仿真:温控温控1控制仿真控制仿真温控温控2控制仿真控制仿真Date:12/6/2022File No.:SSP1_03C.51SIMATIC S7Siemens AG 2000.All rights reser
41、ved.Information and Training CenterKnowledge for Automation3温度控制(温度控制(S7-PRO3)说明:检测温度在说明:检测温度在PIW256中,显示在中,显示在PQW368中。中。温控温控1的温度保持在的温度保持在82,控制器为控制器为Q 0.0。温控温控2的温度保持在的温度保持在182,控制器为控制器为Q 0.2。温控温控3的温度保持在的温度保持在282,控制器为控制器为Q 0.4。设计:设计:OB1为主程序,负责调用控制程序为主程序,负责调用控制程序FB1和和FC1。DB1和和DB2为为FB1型数据块。型数据块。其中其中DB1为温
42、控为温控1的控制参数数据块。的控制参数数据块。DB2为温控为温控2的控制参数数据块。的控制参数数据块。DB3为通用数据块,为温控为通用数据块,为温控3的控制参数。的控制参数。FB1控制温度控制温度1,2。FC1控制温度控制温度3。Date:12/6/2022File No.:SSP1_03C.52SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for AutomationFC块:块:FC1Date:12/6/2022File No.:SSP1_03C.53SIMATIC
43、 S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for AutomationFB块:块:FB1Date:12/6/2022File No.:SSP1_03C.54SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for AutomationDB块:块:DB1DB2Date:12/6/2022File No.:SSP1_03C.55SIMATIC S7Siemen
44、s AG 2000.All rights reserved.Information and Training CenterKnowledge for AutomationDB3Date:12/6/2022File No.:SSP1_03C.56SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for AutomationOB块:块:OB1Date:12/6/2022File No.:SSP1_03C.57SIMATIC S7Siemens AG 2000.All righ
45、ts reserved.Information and Training CenterKnowledge for AutomationOB1续续运行仿真:运行仿真:I0.0,I0.1=ON:PIW25610 Q0.0=OFF.I0.2,I0.3=ON:PIW25620 Q0.2=OFF.I0.3,I0.4=ON:PIW25630 Q0.4=OFF.Date:12/6/2022File No.:SSP1_03C.58SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for
46、Automation4 计时器计数器与数据块(计时器计数器与数据块(S7-PRO10)说明:计时器,计数器的数据在数据块中的存取的实现。说明:计时器,计数器的数据在数据块中的存取的实现。计时器计时器T0与与T1组成一个振荡器。振荡的次数由计数器组成一个振荡器。振荡的次数由计数器 记录。记录。设计:设计:OB1为运行程序,为运行程序,DB1为存取数据块。为存取数据块。DB块:块:DB1Date:12/6/2022File No.:SSP1_03C.59SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training Ce
47、nterKnowledge for AutomationOB块:块:OB1计时器数据格式:计时器数据格式:Date:12/6/2022File No.:SSP1_03C.60SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for AutomationOB1续续Date:12/6/2022File No.:SSP1_03C.61SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training Ce
48、nterKnowledge for Automation运行仿真:运行仿真:Date:12/6/2022File No.:SSP1_03C.62SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation5 5 占空比可调的时间震荡器占空比可调的时间震荡器(S7-PRO26)Date:12/6/2022File No.:SSP1_03C.63SIMATIC S7Siemens AG 2000.All rights reserved.Information
49、 and Training CenterKnowledge for Automation运行仿真:运行仿真:Date:12/6/2022File No.:SSP1_03C.64SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation6 6 循环中断循环中断OB35 OB35(S7-PRO21)在项目中添加在项目中添加OB35OB35 进入进入OB35OB35编写中断程序编写中断程序Date:12/6/2022File No.:SSP1_03C.65S
50、IMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation 在在PLCPLC中设定循环中断有效中设定循环中断有效Date:12/6/2022File No.:SSP1_03C.66SIMATIC S7Siemens AG 2000.All rights reserved.Information and Training CenterKnowledge for Automation 进入进入OB1OB1编写主程序编写主程序 程序下载到程序下载到PLCPLC