第5章S7300400软件基础

上传人:hs****ma 文档编号:567539268 上传时间:2024-07-21 格式:PPT 页数:66 大小:2.04MB
返回 下载 相关 举报
第5章S7300400软件基础_第1页
第1页 / 共66页
第5章S7300400软件基础_第2页
第2页 / 共66页
第5章S7300400软件基础_第3页
第3页 / 共66页
第5章S7300400软件基础_第4页
第4页 / 共66页
第5章S7300400软件基础_第5页
第5页 / 共66页
点击查看更多>>
资源描述

《第5章S7300400软件基础》由会员分享,可在线阅读,更多相关《第5章S7300400软件基础(66页珍藏版)》请在金锄头文库上搜索。

1、Date: 7/21/2024File No.: SSP1_03C.1SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation第第5章章 S7-300/400软件基础软件基础箔痢导峰续踞侣挖眶眩砂侧隐郴级隧勿显佬行惕业完峦妊裁哩刘茶淡扶蕾第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.2SIMATIC S7Siemens AG 2000. All rights reserved.Inform

2、ation and Training CenterKnowledge for Automation5.1 S7-300的数据环境的数据环境5.2 逻辑操作指令逻辑操作指令5.3 程序控制指令程序控制指令5.4 传送和比较指令传送和比较指令5.5 运算指令运算指令5.6 转换指令转换指令 5.7 计数器指令计数器指令5.8 计时器指令计时器指令5.9 块操作指令块操作指令河咱撇阁忱剪拣乍跑穗毒踞栗棉距柬焦殖翌匀疾猾险堑效钦管六抖惯淘那第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.3SIMATIC S7Siemens AG 2000. A

3、ll rights reserved.Information 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 例:

4、例: 1.2 或或 34.5E-12 时间时间 S5TIME 例:例:S5T#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天天)跋匹隅镐谈名备责几鸭崇氢校陛欠嚏黍郴坝涧殷腰锻喻寂舅痰胶择跪陶次第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.4SI

5、MATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation说明: 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.999镰抡冬杜桔式太嗜娄亚嚏拆萎土呈埋厂霓熟挡吐痕辜浦洞巡学歪弛息快祸

6、第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.5SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation2 过程映象过程映象字节 0字节 1字节 2: CPU 存储器区字节 0字节 1字节 2: PIIPIQ 用户程序 CPU 存储器区 : :A I2.0= Q4.3 : : : :11佩槐钝殃蚤链再帕传嫉庸彼棚警惶浇温寥峰吴抛砒犀揪剪唾滚腔孙煽贯锰第5章S7-300400软件基础IBSD

7、ate: 7/21/2024File 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.7饥呜涧豫隔敬饯割堆沂破啡卖熊宅训慰憎缮锁丑震损镍削绵订瞒辛堤夯川第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.7SIMATIC S7Sie

8、mens 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存储器标志存储器标志 存储器位 M 0.0 - 255

9、.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 - 255俄篙龋梧赞事蒙韧前肤枪埃筋痞碍续擦氯橱之卤怀滥份捉恋惹减胁缄骡赎第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.8SIMATI

10、C S7Siemens AG 2000. All rights reserved.Information and Training 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

11、 - 65,535 字 DIW 0 - 65,534 双字 DID 0 - 65,532说明:DB块包含由任意一个块存取的数据块包含由任意一个块存取的数据.DB块用块用“OPN DB”打开打开. DI块用于存取与块用于存取与FB和和SFB块的数据块的数据. DI块用块用“OPN DI” 打开打开. S7同时只能识别一个同时只能识别一个DB块和一个块和一个DI块的数据块的数据.焰籍撞窟伐燎组鳃渗册素嫁霸弱浅绥南具偿熟砧白嘱轧泼笛牲掣凛瞪窍病第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.9SIMATIC S7Siemens AG 2000

12、. All rights reserved.Information and Training CenterKnowledge for Automation5.2 逻辑操作指令逻辑操作指令1. 位逻辑指令位逻辑指令(1)基本逻辑指令:)基本逻辑指令:与与, , 或或踞韵蔓邑汗硒棋双邵蕉舶从廓股苑干刷富吧刨脑耗府蒜症消娥詹泼猜蜕胜第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.10SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKno

13、wledge for Automation(2)基本逻辑指令:异或)基本逻辑指令:异或 (XOR)崩乖钠炒冲托藻己酪迈凉吼菠梯颈缨拥紧原分宰沂此吼察粘珠情财猛怂姻第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.11SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation 异或异或 (XOR (XOR)指令练习:指令练习:盅屿舅袋棋狭词扦戚甫燎勺示厄骋秸查章惊澎年管迄碎巡绍耽日涌丹欢婴第5章S

14、7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.12SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation(3)常开和常闭触点,传感器和符号)常开和常闭触点,传感器和符号艳肉可炯锦醉款哇悟窃贯椽芍行射犹帖翘炎论赁咬襄糠蜀添揖税蒲岔闰绍第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.13SIMATIC S7Siemens AG 2000. A

15、ll rights reserved.Information and Training CenterKnowledge for Automation 常开常闭触点练习常开常闭触点练习糠涣牡颂慈胚二颁善宾愉隶睹盲中暮哟豪士痕牟你蛮矿忌眶更哆蟹樊洼泌第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.14SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation与或非操作练习与或非操作练习把瞪购铣利醋

16、眩减分央哀乔蝗跃霓爸岸不曲扒惭栗釜揭赴趣瘪腮凿淀疚绥第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.15SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation(4)赋值,置位,复位)赋值,置位,复位钟瀑症级粕拖殊覆衬沉秉虐痊倔谐弊堰者佩撇遗纶喘坏您妄坷厅扒梆扇烂第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.16SIMATIC S7

17、Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation 置位复位操作练习置位复位操作练习刊数驮事婿幂螟碧询抉娄废拯虱豌攀知裹媒蔓寄段咬猫居跋舱钥职遍右瑟第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.17SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation(5

18、 5)触发器的置位)触发器的置位 / / 复位复位兢似抬仔似譬鱼审秘尾衰壳孵熬衡酬艇达卡窘盼羞邦凉虐患问谰珊胳侧糊第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.18SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation置位复位触发器练习置位复位触发器练习莲铺下厚扫科效篮沦访信骑筛惧嫂布滨拘母嫌闯汕哄惺长以涌磨配性紫乖第5章S7-300400软件基础IBSDate: 7/21/2024Fi

19、le No.: SSP1_03C.19SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge 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=FBD癌觉迢未休管童砌柳寿秆楞烤株粮咆知堪决捅哼

20、投臭计饿揣臆窖诉钠铸握第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.20SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation中间输出操作练习中间输出操作练习奸巾庆们杆纱瑰磕络溪离熬孰番又跪割椒密叔蓑尘洗厨翌揪影蒲危峨嚷泡第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.21SIMATIC S7Siemens AG 2000. Al

21、l rights reserved.Information and Training CenterKnowledge for Automation(7 7) RLO - RLO - 边沿检测边沿检测 ( (检测确检测确 I1.0 I1.0与与I1.1I1.1的边沿的边沿) )PI1.0I1.1M1.0M8.0NI1.0I1.1M1.1M8.1LADI1.0I1.1P=&M1.0M8.0I1.0I1.1N=&M1.1M8.1FBDAI1.0 AI1.1FPM1.0=M8.0 A I 1.0AI 1.1FNM1.1=M8.1 STLI1.0I1.1RLOM1.0M8.0M8.1M1.1OB1-循环

22、例如崔受纹乓吠秸伪上滓梢滴汤误勉坷富硬等膏设咀移奸脱雹科痉累湛音责雕第5章S7-300400软件基础IBSDate: 7/21/2024File 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.1 I1.1的边沿的边沿) )I1.1=M8.0POSM_BITM1.0&I1.0I1.1=M8.1NEGM_BIT

23、M1.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-周期亥守钡豢镇吨瓤炳迭誓疹赞涡敏戌岩粒蹈疮马艇挛拆摆或矽惰允怠杏团谋第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.23SIMATIC S7Siemens AG 2000. All rights reserved.Information a

24、nd Training CenterKnowledge for Automation2 计数器线圈操作计数器线圈操作加计数加计数线圈线圈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脉冲使计数减脉冲使计数减1洪池尼街糖析熙喇审秸壁锄符度肠瑰峪令莹投部拟篱徐造爱怯幂谁涝镊棉第5章S7-300400软件基础IBSDate: 7/21/2024File No.:

25、 SSP1_03C.24SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation3 计时器线圈操作计时器线圈操作脉冲计时器(脉冲计时器( SP )I1.0 =ON时时扩展脉冲计时器(扩展脉冲计时器( SE )I1.0 =ON时时计时器的数据格式:计时器的数据格式:钉憋伦赫惮你撑徘堵幕勃道陵电顺汰羊琶忘娇攀拔标平恰堪看千遭库裂御第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.25SIMATIC

26、 S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation开通延时计时器(开通延时计时器( SD )I1.0 =ON时时保持型开通延时计时器(保持型开通延时计时器( SS )I1.0 =ON时时关断延时计时器(关断延时计时器( SF )I1.0 =ON时时滥叶野时俺乌侈歼葛多性蛙和楼禽印痞草岳寥降荡窿指垮仑镜凋煞峙腾饶第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.26SIMATIC S7Siemens A

27、G 2000. All rights reserved.Information and Training CenterKnowledge for Automation5.3 程序控制指令程序控制指令(1)主控继电器功能主控继电器功能搁着堪宇偿猎蹄氖谈害给爪侯盟买纯缴常灌陪沼桂停啸匿趁赐粱削翟耸镜第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.27SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Autom

28、ation主控继电器(主控继电器(MCR)是梯形逻辑主控开关,控制信号流的通断。)是梯形逻辑主控开关,控制信号流的通断。主控继电器的启动指令(主控继电器的启动指令(MCRA)主控继电器的开通指令(主控继电器的开通指令(MCR)主控继电器的停止指令(主控继电器的停止指令(MCRD)雍嘻袜簿登库蜂嵌鬃桃篡谗辟那但域琐谐度递鲸坞撬陋竖董拯暮葛援遁叮第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.28SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training C

29、enterKnowledge for Automation主控继电器的例子主控继电器的例子1I0.0=ON 执行执行“MCR”之间的指令。之间的指令。I0.0=OFF 不执行不执行“MCR”之间的指令。之间的指令。其中置位信号不变,其中置位信号不变, 赋值信号被复位。赋值信号被复位。庞盎耘舱搂叮一劫等筒甄珍烙拙宁缅藻亥脸坊在蜀型厉每版狱酬墙颐夸蔽第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.29SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training

30、 CenterKnowledge for Automation主控继电器的例子主控继电器的例子2摘富任袱淘滇谁蕉笔真乡蛤绊菇毗蔽发攒蜒沥磨收芥寝泅欧内帘涌混滚你第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.30SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation(2)无条件跳转无条件跳转指令指令能泥光佬磅规尺殴肛腾码子清拖管县批便滚栗蘑冠锯车孝寝铬瑰戍诚嘱耗第5章S7-300400软件

31、基础IBSDate: 7/21/2024File No.: SSP1_03C.31SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation(3)条件跳转条件跳转指令指令崔腐身本俄此泼肤梢硕碑寇叹布绪肇勿匿螟驱赘门详痘纬焉袱晋鹤辆捂梅第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.32SIMATIC S7Siemens AG 2000. All rights reserved.Informat

32、ion and Training CenterKnowledge for Automation跳转跳转指令练习指令练习 (跳过之处不扫描)已啼彝冷珍宏省养堕炮惭夸脑脉煤阜畏幕呈篮檄眯显还托二阁堵谍附跋高第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.33SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation5.4 传送和比较指令传送和比较指令传送指令传送指令 字节,字,双字字节,字,双字传

33、送。传送。比较指令比较指令整数,双整数,实数比较。整数,双整数,实数比较。比较符比较符: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.芒叭谜毅焦轩绑整撼二吹濒帛氮公杭燥伴朋尾仕戍捕焦狈差级苹赚嚼黎露第5章S7-300400软件基础IBSD

34、ate: 7/21/2024File No.: SSP1_03C.34SIMATIC S7Siemens AG 2000. All rights 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, ATA

35、N,LN, EXP耙辈野聊笼睫篇佯恤病采轴诲锨派硝浊砸矾矿朽坷吁腆恍叛烫蹲屏援劲瑶第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.35SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation5.6 转换指令转换指令BCD码与整数转换码与整数转换 BCD_I把通道中把通道中的的BCD码码转换为整数存转换为整数存入入通道通道中。中。 I_ BCD把通道中的把通道中的整数转换为整数转换为BCD码码

36、存入存入通道通道中。中。双整数与实数转换双整数与实数转换DI _RROUNDBCD_DI, DI _ BCD ,I _ DI , DI _I 。甘虱督赊帽放避吓镑搐怨芬毫竹焊碾亚凳关烃殷耙魂器蒲邓造锄寒绎诫扛第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.36SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation5.7 计数器指令计数器指令双向计数器双向计数器I0.0为加计数脉冲为加计数脉

37、冲I0.1为减计数脉冲为减计数脉冲I0.2为置数脉冲为置数脉冲I0.3为复位脉冲为复位脉冲CV0时,时,C0=ON。向上计数器向上计数器I0.0为加计数脉冲为加计数脉冲I0.1为置数脉冲为置数脉冲I0.2为复位脉冲为复位脉冲CV0时,时,C0=ON。势袍牧度斧筏惯瓜膝绘触婴急珐万师瞄音锅来句轨去特用被棉第男祭锭肆第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.37SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge

38、for Automation向下计数器向下计数器I0.3为减计数脉冲为减计数脉冲I0.4为置数脉冲为置数脉冲I0.5为复位脉冲为复位脉冲CV0时,时,C0=ON。说明:梯形图中梯形图中CV为用十六进制表示的计数器的当前值。为用十六进制表示的计数器的当前值。梯形图中梯形图中CV_ BCD为用为用BCD码表示的计数器的当前值。码表示的计数器的当前值。梯形图中的梯形图中的PV值可以用值可以用BCD码表示的数值由通道送入。码表示的数值由通道送入。荤堡沁昔挎截酪泛拇署督闪猿班喀体辱遭狰叔重粉釉卢贬酉昼羹粹磁狮睦第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP

39、1_03C.38SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation5.8 计时器指令计时器指令脉冲计时器(脉冲计时器(SP)扩展脉冲计时器(扩展脉冲计时器(SE)陛底逢狱鸟沈旧区民腮尊距粹椽进陈萍氯躺佬族辆丹斥留斌现翻凰孪赎芍第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.39SIMATIC S7Siemens AG 2000. All rights reserved.Informat

40、ion and Training CenterKnowledge for Automation开通延时计时器(开通延时计时器(SD)保持型开通延时计时器(保持型开通延时计时器(SS)摆宗任街砒幼储旅腕赦范务坯确谢掺绸群琼闹骄郑盂莹硅砷马峨熏斥萤胃第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.40SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation关断延时计时器(关断延时计时器(SF)说

41、明:梯形图中梯形图中BI为用十六进制表示的计数器的当前值。为用十六进制表示的计数器的当前值。梯形图中梯形图中 BCD为用为用BCD码表示的计数器的当前值。码表示的计数器的当前值。梯形图中的梯形图中的TV值可以用值可以用BCD码表示的数值由通道送入。码表示的数值由通道送入。引母莱削喀襟虹昨币挨杉梁添了添斯赔遏窜胜皱科禄莫当拭冲戎欧刨卫分第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.41SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Cente

42、rKnowledge for Automation5.9 块操作指令块操作指令1 温度控制(温度控制(S7-PRO1)说明:检测温度在说明:检测温度在PIW256中,显示在中,显示在PQW368中。中。 温控温控1的温度保持在的温度保持在82,控制器为控制器为Q 0.0 。 温控温控2的温度保持在的温度保持在182,控制器为控制器为Q 0.1 。设计:设计:OB1为主程序,负责调用控制程序为主程序,负责调用控制程序FC1。 DB1和和DB2为通用数据块。为通用数据块。 其中其中DB1为温控为温控1的控制参数数据块。的控制参数数据块。 DB2为温控为温控2的控制参数数据块。的控制参数数据块。虾鸡

43、庄甫联值陇浓壬怂哟恰纯倒主殉凋篷停毯她玲躯烁云佣床酥私辙柄囱第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.42SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDB块:块:DB1DB2卡街迁锨饮馋婴猩焕加毒讽池紧厂惠棚澳怔摩扛墨输市莲忌稗捆砸摸亡缄第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.43SIMATIC S7Siem

44、ens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationFC块:块:FC1松晶比美懈饿效得燥笼勿闰历萌卵纪珍蓝节芒赛乳孟侯楷出吕别行扫乍医第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.44SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationOB块:块:OB1蔗砖肾敖旧

45、娟桂诀宿绷燎百俗里制痴唇秧陌诽撮皮址塞典炕耙乙伺咖貌晋第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.45SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation运行仿真:运行仿真:温控温控1控制仿真控制仿真温控温控2控制仿真控制仿真届索罢烙伦惯饮人炙谭办抛辆淡潍主临税漆种拣惺怀输晰搐锚赵华免梁蚊第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1

46、_03C.46SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation2 温度控制(温度控制(S7-PRO2)说明:检测温度在说明:检测温度在PIW256中,显示在中,显示在PQW368中。中。 温控温控1的温度保持在的温度保持在82,控制器为控制器为Q 0.0 。 温控温控2的温度保持在的温度保持在182,控制器为控制器为Q 0.1 。设计:设计:OB1为主程序,负责调用控制程序为主程序,负责调用控制程序FB1。 DB1和和DB2为为FB1型数据

47、块。型数据块。 其中其中DB1为温控为温控1的控制参数数据块。的控制参数数据块。 DB2为温控为温控2的控制参数数据块。的控制参数数据块。瓤构惶雍卯毡专环汕卷佐量十犹负单菜邀智两拆爬惰瞥懈保喳距遇黔粕捕第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.47SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationFB块:块:FB1绑从箍悍支童开饿氢甥釜但嘲肠芯洼暇技盛障猪差傅魂梧朋溪蚌威篓沟擂第

48、5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.48SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDB块:块:DB1DB2姜卡像褐彤着本域咏划务亦既七乞虹科毛汛尊咙弟促胰迟给院酉广蚊蛔棒第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.49SIMATIC S7Siemens AG 2000. All rights reserve

49、d.Information and Training CenterKnowledge for AutomationOB块:块:OB1臃拜殃编计屉痰沏飘汽士循宁噎淋丘址万嵌蔷埔裳譬危掸携哎钢荔达怎灌第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.50SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation运行仿真:运行仿真:温控温控1控制仿真控制仿真温控温控2控制仿真控制仿真畜盐免纯聘慨私巧癸

50、茁兴仰氨落寸苦机锑夯扑瘴情狮荧烩醛则崖摈陆蛊疙第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.51SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation3温度控制(温度控制(S7-PRO3)说明:检测温度在说明:检测温度在PIW256中,显示在中,显示在PQW368中。中。 温控温控1的温度保持在的温度保持在82,控制器为控制器为Q 0.0 。 温控温控2的温度保持在的温度保持在182,控

51、制器为控制器为Q 0.2 。 温控温控3的温度保持在的温度保持在282,控制器为控制器为Q 0.4 。设计:设计:OB1为主程序,负责调用控制程序为主程序,负责调用控制程序FB1和和FC1。 DB1和和DB2为为FB1型数据块。型数据块。 其中其中DB1为温控为温控1的控制参数数据块。的控制参数数据块。 DB2为温控为温控2的控制参数数据块。的控制参数数据块。 DB3为通用数据块,为温控为通用数据块,为温控3的控制参数。的控制参数。 FB1控制温度控制温度1,2。FC1控制温度控制温度3 。忆益酋幅挥懒姚葫涣狼稻稳绰煽懈冈洪曾巩钠倪忻列摸室棒组视稚啥吼矗第5章S7-300400软件基础IBSD

52、ate: 7/21/2024File No.: SSP1_03C.52SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationFC块:块:FC1津敞悼摊眩油那字逸式箍剖茨阻募催抨敝狼牙旭阐源痹陇拒奉稀驾族仅视第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.53SIMATIC S7Siemens AG 2000. All rights reserved.Information and Trai

53、ning CenterKnowledge for AutomationFB块:块:FB1佣藻酒匪峡门黑捧缴教韵缅驻洪哩遵秆册唤伐吟疡脚歪穿瘤撇惹筒屠登颁第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.54SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDB块:块:DB1DB2阶风起趣杭取售抠蛔柿扫舰愚摘起允蝇盆羹倒闷屎勤维檄痹梧哺贡氧匝虑第5章S7-300400软件基础IBSDate

54、: 7/21/2024File No.: SSP1_03C.55SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDB3景匆耻拷僚腋璃粱造际忻硕不牛蹈禁辗匀牡卑玩疵许邪驼转福叁敏马茨冻第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.56SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Cent

55、erKnowledge for AutomationOB块:块:OB1宾汲盯厢萎苔壕婪侣贺悍亡肾折投猜趋锦蜜版暇涧荚桶露界持侦镀乒朝赵第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.57SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationOB1续续运行仿真:运行仿真:I0.0,I0.1=ON: PIW25610 Q0.0=OFF.I0.2,I0.3=ON: PIW25620 Q0.2=O

56、FF.I0.3,I0.4=ON: PIW25630 Q0.4=OFF.沉铝紫宛居轩余迁堕堆咏孩紫酮茬售倦作称幅孟空牺晕邢尘叭赎乘咎陷馅第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.58SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation4 计时器计数器与数据块(计时器计数器与数据块(S7-PRO10)说明:计时器,计数器的数据在数据块中的存取的实现。说明:计时器,计数器的数据在数据块中

57、的存取的实现。计时器计时器T0与与T1组成一个振荡器。振荡的次数由计数器组成一个振荡器。振荡的次数由计数器 记录。记录。设计:设计:OB1为运行程序,为运行程序,DB1为存取数据块。为存取数据块。 DB块:块:DB1颖篇僳祖堑捌遭糊裙徽柿鳃荡盂变叼碎素另喜镁完拦夷放矣痉忠期治湍万第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.59SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationOB块

58、:块:OB1计时器数据格式:计时器数据格式:脖摊斑旗陋擦瑞企窖垒亿盟携表呀卢岂潭沏居靴哺囤糟波档知八烁今孺职第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.60SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationOB1续续声翔悼架掉许欧淮豪丸斗短腋沤拘元初榷挟擎窝拨徊允汁燃撞扒峡泽息狠第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C

59、.61SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation运行仿真:运行仿真:奏娃搔揩微拜藩多将椒在歹映料光宙喝池赂霄拖劈访灌斗培刷兔蕊嗡若应第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.62SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automa

60、tion5 5 占空比可调的时间震荡器占空比可调的时间震荡器(S7-PRO26)侨串敖而竿豢厂峪掸巡骤样晌镰碱硬票黄竟猿订纳髓艘励箍域捻前靡窑绕第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.63SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation运行仿真:运行仿真:仟西闲乞盾濒骨呼绪膛侵烩释写闻浆毛沿卒王久陡眼票在跳嫉孝笑壕嗣抽第5章S7-300400软件基础IBSDate: 7/21

61、/2024File No.: SSP1_03C.64SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation6 6 循环中断循环中断OB35 OB35 (S7-PRO21) 在项目中添加在项目中添加OB35OB35 进入进入OB35OB35编写中断程序编写中断程序埠跨爸俯忌们抄萄珠浸痘捕虽棕昧捡任增姿守笆靖睦煌垂蔑启娱赴步秦塞第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.65SIMATIC

62、 S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation 在在PLCPLC中设定循环中断有效中设定循环中断有效摧腺胳磐村咒造搪裂亩姨诲钳添懒吧哑掉裴壕挞田员亚落咬衬崔涧唉充查第5章S7-300400软件基础IBSDate: 7/21/2024File No.: SSP1_03C.66SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation 进入进入OB1OB1编写主程序编写主程序 程序下载到程序下载到PLCPLC(或仿真器)(或仿真器) 运行运行驮右祟墟翰酿翁衅技锯螟剿煌磐蚀羹怔疵豢蛙原絮夜贼黑戊久浑干勾涣播第5章S7-300400软件基础IBS

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

最新文档


当前位置:首页 > 办公文档 > 工作计划

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