|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
?! a4 j5 ?. k6 D. ^) p3 D3 ?7 ^; ^; N# G! L# d8 ^
begin P_wait arriving
5 G7 l0 b! ~1 ^ T( } if this load type=L_a1 then
. F; @# C5 \! D* R# ~ wait to be ordered on OL_1
, c) r0 ^; M/ ^ ^8 K, E if this load type=L_b1 then; q' S% B$ y6 [4 N
wait to be ordered on OL_2: d D9 C: b; ]7 W6 p- G) i
send to P_assemble
" L1 j5 F/ B8 E1 Y4 @$ iend
' b9 d$ r/ n: _4 ^% e5 Y& u; W- ]: _% z7 J7 P: ]5 `# D
begin P_assemble arriving! h* r; j E d! F5 T: ?6 w
order a load from OL_1 to die; `6 B2 \$ I7 {/ I5 d2 K
in case order not filled backorder on OL_1' }5 e, F& m! X4 {. x! [/ [
order a load from OL_2 to continue
9 [. v* Z+ [+ Y0 i, M in case order not filled backorder on OL_2+ G: U' y l9 O, n8 G2 y. }
set load type to L_product3 X8 Z- Z7 _4 v# I/ G
get R_massm+ \8 w! C, v Z, t4 k/ K" C
wait for normal 5,1 min
) T7 j. \ c4 |# b$ _& f free R_massm
' ]+ t1 C2 b# Y7 [ move into Q_stock1 h7 ~4 }2 p! K+ C; C+ B( |2 e
end |
|