|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
. z3 t4 S# o7 j o9 V
7 l* K7 E; g dbegin P_wait arriving
$ K& l. c) `7 ^# m if this load type=L_a1 then
' P! [6 [5 I. \% r! M/ G% r5 H, K; H wait to be ordered on OL_1
& L8 ]$ D+ H& P+ }6 K- g& l" H if this load type=L_b1 then8 {9 ]6 k l/ Y' C& F
wait to be ordered on OL_2' U& D) R3 G' L7 D1 `0 L
send to P_assemble
; n9 V+ K' S' b. C7 Pend
2 I0 w$ L3 D/ Q% W9 w7 M! [- e$ i9 w% Y% ]& A+ y5 E) ^7 z
begin P_assemble arriving
" E6 [: P5 Z. P- p- s3 L. d4 M order a load from OL_1 to die9 r( Y4 i; ]% C) p# O3 B' i) b
in case order not filled backorder on OL_1+ D" Z% L/ l+ J* f3 }
order a load from OL_2 to continue
8 ?0 j8 v# g; [" x* B in case order not filled backorder on OL_26 n& e3 @" h3 E" D, W
set load type to L_product- Q" s) M. c3 r
get R_massm! Z/ X8 c* G: t+ U: F- b3 n
wait for normal 5,1 min
+ \ V. B3 f1 y9 m$ M! b% m- H free R_massm
+ n- u: I7 I7 G: d, s! a% b move into Q_stock
( x7 W2 _3 Y7 h+ ~" R# }* _end |
|