|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。0 {: Z1 [+ A- B' e/ j- w
. r! b: V3 ~8 d
begin P_wait arriving
m( \& u! E, s; v( P* f if this load type=L_a1 then# ?" Y. R" V5 q' J& F2 A3 ?2 B; i
wait to be ordered on OL_1* r1 _+ S- ?' V* o
if this load type=L_b1 then" Y3 A' i0 e# A1 d+ Q5 f& J0 n; c* l
wait to be ordered on OL_24 L, v$ }7 Q0 {
send to P_assemble( t2 d+ c6 b! m5 X
end; W% W' W- ^& i
0 @9 W. X( j) A- B% r2 c( Q% I
begin P_assemble arriving T" d0 s. d: E5 k/ n5 _
order a load from OL_1 to die* e' w) s, o. V: i9 |. Q
in case order not filled backorder on OL_1& w. Z9 h- T B N* u
order a load from OL_2 to continue
8 t. S# w0 r5 \( s" p" C" p in case order not filled backorder on OL_2# ~! G5 j% Z( q
set load type to L_product: N1 d1 W! B# ]. H
get R_massm
* q, Y) ]% P8 v& |* b wait for normal 5,1 min
, y4 a- l, |5 [# { free R_massm- y6 C' k+ h5 D
move into Q_stock
" }) W6 C% y5 U h! ~) S2 Lend |
|