西门子PLC培训系列资料8_第1页
西门子PLC培训系列资料8_第2页
西门子PLC培训系列资料8_第3页
西门子PLC培训系列资料8_第4页
西门子PLC培训系列资料8_第5页
已阅读5页,还剩12页未读 继续免费阅读

下载本文档

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

文档简介

1、date:2021-10-23file:ssp1_08c.1simatic s7siemens ag 2000. all rights reserved.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

2、 4.2l3 (q 4.2)s3(i 0.2)s4(i 0.3)oranddate:2021-10-23file:ssp1_08c.3simatic 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.5oa

3、ni0.4ai0.5=q4.0date:2021-10-23file:ssp1_08c.4simatic s7siemens 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

4、:2021-10-23file:ssp1_08c.5simatic s7siemens ag 2000. all rights 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

5、1 yes 1 no 0过程plc程序中的解释动作不动作传感器是 .动作不动作常开触点传感器是 .常闭触点date:2021-10-23file:ssp1_08c.6simatic 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. i

6、1.1. q 4.0q 4.0i 1.0i1.1&q 4.0i1.0i1.1&q 4.0i1.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:2021-10-23file:ssp1_08c.7simatic s7siemens ag 2000. all ri

7、ghts reserved.information and training centerknowledge 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:2021-10-23file:ssp1_08c.8s

8、imatic s7siemens ag 2000. all rights 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

9、.3ladfbdstldate:2021-10-23file:ssp1_08c.9simatic 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:202

10、1-10-23file:ssp1_08c.10simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation练习练习8.2: 8.2: 基本逻辑操作指令基本逻辑操作指令date:2021-10-23file:ssp1_08c.11simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation影响影响rlo的指令的指

11、令ladfbdstla i0.0 a i0.1 not = q4.0=q4.0&i0.0i0.1( ) q4.0noti0.0i0.1notstatus word1581brrlo不存在不存在clrclr不存在不存在setseti1.6( save ) save&i1.6savea i1.6save=q4.1brbr( ) q4.1bra br= q 4.1date:2021-10-23file:ssp1_08c.12simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge f

12、or 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 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.0

13、date:2021-10-23file:ssp1_08c.13simatic 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 2:network xfbdnetwork 1ju new1

14、network 2:network xnew1:an m5.5 an i 2.7= m69.0stldate:2021-10-23file:ssp1_08c.14simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation条件跳转条件跳转 ( (依赖于依赖于 rlo) )a i0.0a i0.1jc new1new1i 0.0i 0.1&i0.0i0.1jmpnew1(jmp)如果rlo=1就跳转a i0.2a i0.3jcn new2jmpni0.2

15、i0.3new2new2i 0.2i 0.3如果rlo=0就跳转(jmpn)&ladfbdstldate:2021-10-23file:ssp1_08c.15simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automationrlo - 边沿检测边沿检测pi1.0i1.1m1.0m8.0ni1.0i1.1m1.1m8.1ladi1.0i1.1p=&m1.0m8.0i1.0i1.1n=&m1.1m8.1fbdai1.0 ai1.1fpm1.0=m8.0a i 1

16、.0ai 1.1fnm1.1=m8.1stli1.0i1.1rlom1.0m8.0m8.1m1.1ob1-循环例如date:2021-10-23file:ssp1_08c.16simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation信号信号 - - 边沿检测边沿检测i1.1=m8.0posm_bitm1.0&i1.0i1.1=m8.1negm_bitm1.1&i1.0fbdai1.0 a ( a i1.1fpm1.0)=m8.0ai1.0a(ai1.1fnm1.1)=m8.1stli1.1m8.0posm_bitm1.0qi1.0i1.1m8.1negm_bitm1.1qi1.0lad例如i1.0i1.1m1.0m8.0m8.1m1.1ob1-周期date:2021-10-23file:ssp1_08c.17simatic s7siemens ag 2000. all rights reserved

温馨提示

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

评论

0/150

提交评论