问题具体情况:
H3 A$ u# W0 B" C% J& c; m4 G; U* w3 q" @
一共有三种产品分别存放在三个货架上,三个货架均连接在一个暂存区上,模型中有一张动态生成的全局表,通过读取表中的数值,打开某一个端口;我试着建立了中间端口,然后在暂存区的进入触发器中写下了如下代码:7 `+ k( n1 N4 L' A% W) L! p
+ g+ A7 E" e% e1 [& S7 m$ @0 U; A
if(gettabelnum("全局表",getoutput(current)+1,6) == 1)
3 v6 w* F6 _: [" V, ]" D{
) q7 D$ {/ V6 Y- t7 Aopeninput(centerobject(current,1));centerobject(current,1);
- ^$ x% N) A; K}
; j% W1 L" _1 ~else if (gettabelnum("全局表",getoutput(current)+1,6) == 2)
" L& `' R( t8 S i% L5 D{' T/ [7 s% W' J2 ~4 V. } t
openinput(centerobject(current,2));centerobject(current,2);
6 N. R N$ u' p$ P M& t}
- S3 E2 y' L8 t/ G! ?1 f; Telse if (gettabelnum("全局表",getoutput(current)+1,6) == 3). Z( C% o H' r+ U
{2 A& G& I* v, Y5 R' V
openinput(centerobject(current,23));centerobject(current,3);
8 \% ]% _5 L) z' @}
; o- ^$ c$ L# G9 }% ?' u5 [$ ^, U( z+ o0 z
问题 模型在运行很短时间后就停下了,不知道问题到底出在哪里,求前辈们指点一下。 |