s300 报警 SF,运行ok
是否硬件故障?
Diagnostic buffer of module CPU 315-2 PN/DP
Order No./ Description Component Version
6ES7 315-2EH13-0AB0 Hardware 1
- - - Firmware V 2.3.4
Boot Loader Firmware expansion A 6.11.8
Rack: 0
Slot: 2
Event 1 of 10: Event ID 16# 2522
Area length error when reading
Instance DB, double-word access Access address: 0
Requested OB: Programming error OB (OB121)
Priority class: 1
Internal error, Incoming event
08:13:28.418 AM 11/27/1998
Event 2 of 10: Event ID 16# 2522
Area length error when reading
Global DB, bit access, Access address: 0
Requested OB: Programming error OB (OB121)
Priority class: 1
Internal error, Incoming event
08:13:28.417 AM 11/27/1998
问题补充:
如何通过这些信息或其他方法找到软件错误位置?
最佳答案
Area length error when reading
Instance DB, double-word access Access address: 0
Area length error when reading
Global DB, bit access, Access address: 0:
1、从上述信息中看是是读背景数据块、全局DB时发生了DB区域长度的错误。由于系统中有OB121(编程错误)致使CPU未停机,只报警 SF。检查全局DB是否已下载到CPU中,或超出了其定义的长度,或存在位地址引用错误。
2、问题补充:如何通过这些信息或其他方法找到软件错误位置?
、Instance DB, double-word access Access address: 0
、Global DB, bit access, Access address: 0
上述信息描述的很清楚。例如,某个背景数据块又作为全局DB用了,并且有长度的错误。
提问者对于答案的评价:
专家说的有理,但确实不知如何找到程序错误所在!
思路和解决办法都不清晰
请公布邮箱,我把程序发给专家看看
原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc244231.html