大家好,问一下,我把OB35设成10MS的,在里面做了个循环,把120个数据分别和MW28比较,控制120个数字输出点,请问这样会不会有问题?
CPU315
程序如下
Network 1:
m2: L MD 24 //120个数据寻址用的
SLD 3
T LD 0
L MD 34 //120 DO 寻址用的,Q4.0开始
T LD 4
OPN DB 10
L MW 28 //比较的数据
L DBW [LD 0]
S Q [LD 4]
L MW 28
L DBW [LD 0]
>=I
R Q [LD 4]
L MD 24
L L#2
+D
T MD 24
L MD 34
L L#1
+D
T MD 34
L MD 34
L L#152
<=I
JC m2
L L#0
T MD 24
L L#32 //从Q4.0开始
T MD 34
如果运行的时间比较长,10MS完成不了,会不会出现一些问题,或使CPU停机啊?
谢谢谢谢.
用软件模拟的时候停过几回,
STOP caused by time error (OB not loaded, or not possible, or no FRB)
Previous operating mode: RUN
Requested operating mode: STOP (internal)
Internal error, Incoming event
04:03:12.901 PM 03/29/2010
Event 13 of 104: Event ID 16# 3502
OB request error
No relevance for user (Z1): 0000
Cause: Cyclic interrupt clock pulse generator 6
Causing OB: Cyclic interrupt OB (OB 35)
Causing priority class: 12
Requested OB: Timing error OB (OB80)
OB not found, or disabled, or cannot be started in the in the current operating mode
Internal error, Incoming event
04:03:12.901 PM 03/29/2010
是10MS太短的问题吗?