20 检测偶发的错误_第1页
20 检测偶发的错误_第2页
20 检测偶发的错误_第3页
20 检测偶发的错误_第4页
20 检测偶发的错误_第5页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

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

文档简介

1、检测偶发的错误SIMATIC S7Siemens AG 2000. All rights reserved.Date:2018/10/9File:SSP2_8C.1Information and Training Center Knowledge for Automation显示CPU信息SIMATIC S7Siemens AG 2000. All rights reserved.Date:2018/10/9File:SSP2_8C.2Information and Training Center Knowledge for Automation在诊断缓冲器中写入用户信息CPU节点SFC 52

2、 SEND = TRUE发送缓冲器12异步地向用户程序发送 如:PG, OP诊断缓冲器SIMATIC S7Siemens AG 2000. All rights reserved.Date:2018/10/9File:SSP2_8C.3Information and Training Center Knowledge for Automation配置用户自己的文本信息SIMATIC S7Siemens AG 2000. All rights reserved.Date:2018/10/9File:SSP2_8C.4Information and Training Center Knowledg

3、e for Automation调用SFC 52Network 2: User message when limit value exceededCMPR#analog value_ normalizedIN1M 90.1PSFC 52M 0.1=1M 0.1SENDW#16#A901EVENTNRET_VAL#error_sfc52INFO 1#dummy#analog value_ normalizedENIN25.000000e+003SIMATIC S7Siemens AG 2000. All rights reserved.Date:2018/10/9File:SSP2_8C.5EN

4、OINFO 2Information and Training Center Knowledge for AutomationSFC 52 中EVENTN 参数的结构EVENTN0123456789101112131415种类特征号种类保留以备将来扩展C.F利用信息配置功能定义的自由文本A.B的标准文本(见标准和系统功能手册)1.9号特征号可以连续从1 到 255到来的离去的内部错误外部错误的特征,例如:Bit 8= “1” -Bit 8= “0” -Bit 10= “1” -Bit 11= “1” -针对不同定义在一个种类中,SIMATIC S7Siemens AG 2000. All ri

5、ghts reserved.Date:2018/10/9File:SSP2_8C.6Information and Training Center Knowledge for Automation具有诊断功能的模块具有诊断功能模块的参数配置:. 当错误出现时,触发一个诊断中断 OB 82SIMATIC S7Siemens AG 2000. All rights reserved.Date:2018/10/9File:SSP2_8C.7Information and Training Center Knowledge for Automation在SIMATIC管理器中显示硬件诊断信息2xSIM

6、ATIC S7Siemens AG 2000. All rights reserved.Date:2018/10/9File:SSP2_8C.8Information and Training Center Knowledge for Automation练习8.1: 显示诊断信息SIMATIC S7Siemens AG 2000. All rights reserved.Date:2018/10/9File:SSP2_8C.9Information and Training Center Knowledge for Automation练习8.2: 输出用户信息*EN*SENDRET_VAL

7、EVENTNINFO1INFO2SFC 52?TRUE W#16#9101MW 54MD 56MW 52*在LAD方式下在 EN 端必须连接一个触点SIMATIC S7Siemens AG 2000. All rights reserved.Date:2018/10/9File:SSP2_8C.10Information and Training Center Knowledge for Automation练习8.3: 使能诊断中断并仿真硬件错误序号步骤结果12345 利用硬件组态工具在一个模拟量模块上使能诊断中断允许硬件诊断将组态下装到CPU拆除模拟量模块的前连接器“SF”灯点亮指示硬件故

8、障打开硬件诊断工具显示在线的系统配置确定故障原因显示信息“Power supply failure”,表明故障原因为电源故障。SIMATIC S7Siemens AG 2000. All rights reserved.Date:2018/10/9File:SSP2_8C.11Information and Training Center Knowledge for Automation练习8.4: 评价错误处理OB的启动信息OB 122 中评价启动信息的示例LOB122_SW_FLT/Identifier read-only or write-only accessLB#16#42/Iden

9、tifier for read-only access=I/Compare for sameness=M 122.0/Auxiliary memory markerLOB122_MEM_ADDR/Address of module, that triggered the errorL352/Address of analog module (Version A)=I/Evaluation, if error from analog module=M 122.1/Auxiliary memory markerSIMATIC S7Siemens AG 2000. All rights reserved.Date:2018/10/9File:SSP2_8C.12Information and Training Center Knowledge for Automation练习8.5: 评价一个电池错误步骤操作结果321 从CPU上取下后备电池错误处理块 OB 81被调用检查输出Q 5.7是否闪烁它可能不闪烁发

温馨提示

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

评论

0/150

提交评论