|
在基本传送带上,当临时实体达到某一点后 停止运动20S,然后继续运动(这个过程仿真钟是一直运行的),拟采用发送消息的方式,求解答:- e6 t4 [: n8 X, K
已写代码:switch(messagetype)" Z4 \! ]1 w* Y7 e# ~# B. g
{case enterheatm:/ e2 E6 @$ q; U! s$ M9 B3 H1 D6 B
stopinput(current);
/ {% y+ m8 k' Y' fsenddelayedmessage(current,20,current,outheatm,0,0);3 r" n/ w* t3 S8 l Y' ?, A
break;0 h8 r6 M5 U* H; f
case outheatm:: }2 j$ A( X/ S ]
openoutput(current); % g7 B; I5 ]) L3 G, V) k7 j+ i6 S5 M
break;& U5 h" ?! G' t7 B
}红色的部分不知道用什么!!消息也不知道对否。 |
|