|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
# v& A; U s' y, e! p, I
" s6 M9 O7 J& t( M' @begin P_wait arriving
) M3 g. F: c/ O if this load type=L_a1 then/ B( Z) p6 r& N" A8 X3 H7 G
wait to be ordered on OL_1
4 w% O6 g7 X1 @' `9 c: L# ?2 W if this load type=L_b1 then" `8 K7 R0 M+ U
wait to be ordered on OL_2
% d& P, X$ R" O1 f5 U# \ send to P_assemble$ O y) S! Q& L* W
end% p2 W% e1 Y1 d5 ^5 U) {& m2 c- B
7 j+ H G0 G* @begin P_assemble arriving# e; e( q, @6 l7 h0 X
order a load from OL_1 to die
& ^/ t, z8 A; `/ ~: u0 v& r in case order not filled backorder on OL_1
0 [& C1 R; m- p order a load from OL_2 to continue: |( @; D; N1 G
in case order not filled backorder on OL_2
1 w& Z: }% T3 ?( J7 \* L1 `( d set load type to L_product3 ^3 V, d( y, b7 \6 h
get R_massm
# y* }5 q' ^* p! G4 D, \ wait for normal 5,1 min
' `1 U. m0 b3 X4 h- m: t8 O free R_massm
" V- l% |( n2 Q" j9 \ move into Q_stock4 s: Q8 r9 t- ]. ]
end |
|