|
在基本传送带上,当临时实体达到某一点后 停止运动20S,然后继续运动(这个过程仿真钟是一直运行的),拟采用发送消息的方式,求解答:: u$ B0 c* c% x8 I: B* R
已写代码:switch(messagetype)/ S1 o) _9 q2 e) X3 t/ h$ C
{case enterheatm:, Q& ?# _( y. w! P
stopinput(current);% C5 o1 z& T; P' {/ ]2 ]+ w
senddelayedmessage(current,20,current,outheatm,0,0);
9 V' C1 @9 d/ w break;* P) U$ j$ Y) r; n3 s
case outheatm:+ m' P8 t8 F. }
openoutput(current);
7 a0 I6 _. O5 T6 U2 X; _! p break;
- y& p6 q+ m5 f1 }) Y ] }红色的部分不知道用什么!!消息也不知道对否。 |
|