|
在基本传送带上,当临时实体达到某一点后 停止运动20S,然后继续运动(这个过程仿真钟是一直运行的),拟采用发送消息的方式,求解答:
% Y. z2 a, j0 B' y已写代码:switch(messagetype)% l2 `1 T; C. Q+ V, f: o" U
{case enterheatm:( w: w5 d8 t# }$ O" L: F5 V
stopinput(current);
0 A& D% z4 u8 s+ M+ U+ j2 Lsenddelayedmessage(current,20,current,outheatm,0,0);9 ~) M$ M, |# w& ]) D ^% R2 f
break;0 M* _6 H8 f) I; S8 r% L# S( ^' L
case outheatm:
% k' `( [8 T" O( @3 k, L3 K openoutput(current);
7 B* q9 V$ O6 q* P0 F" O0 \ break;# o# t( R8 s! F' V' f
}红色的部分不知道用什么!!消息也不知道对否。 |
|