各位老师好,我的程序下载到仿真器SF灯亮,自己试过只要OB1不调用FC4下载就OK,一调用FC4下载就SF灯亮.错诊断其中两段是这样
Event 2 of 10: Event ID 16# 4562
STOP caused by programming error (OB not loaded or not possible, or no FRB)
Breakpoint in user program: Cyclic program (OB1)
Priority class: 1
FC number: 4
Module address: 11694
Previous operating mode: RUN
Requested operating mode: STOP (internal)
Internal error, Incoming event
10:39:34.463 AM 12/04/2018
(Coding: 16# 4562 FF84 8C70 0101 0004 2DAE)
Event 3 of 10: Event ID 16# 2523
Area length error when writing
Q area, bit access, Access address: 274
FC number: 4
Module address: 11694
Requested OB: Programming error OB (OB121)
OB not found, or disabled, or cannot be started in the in the current operating mode
Internal error, Incoming event
10:39:34.463 AM 12/04/2018
(Coding: 16# 2523 FE79 8C02 0112 0004 2DAE)
最佳答案
FC4 l块里面 Q区 bit 长度错误,你找找你的Q区设置错误。
因为你的FC4块内容不晓得,只能自己检查。
提问者对于答案的评价:
是一个Q地址写错了,把程序从后往前删一段下载一次,才发现错的在哪,西门子这个不能直接定位到哪一段哪一行有问题么?
最佳答案作者回复:
可以,你编译的时候会提示报错的,试试。
原创文章,作者:ximenziask,如若转载,请注明出处:https://www.zhaoplc.com/plc351601.html