|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。7 M( R* V. Y) e4 J
3 H) \2 u* b3 J& ]8 w; T7 pbegin P_wait arriving' U' |7 T! _2 P9 ~5 T) G3 V
if this load type=L_a1 then
& E6 l3 @2 U& p9 Y wait to be ordered on OL_1: i3 w. n3 C6 G3 F0 G: X! ~3 e
if this load type=L_b1 then1 c0 B; D; e7 g( P
wait to be ordered on OL_2: S9 m% M( Z/ B( M% }4 d1 E4 ]
send to P_assemble
3 o. K. L1 k6 E& oend
g, h* X2 y& p# S: `- z3 d6 w& |4 |# x
begin P_assemble arriving
% f0 `. n3 k& X# l* x( j5 N order a load from OL_1 to die
& G3 q, H! M& o' _; A4 v5 ^ in case order not filled backorder on OL_1+ Y& B& F' q* w7 \
order a load from OL_2 to continue
% R: z# D. i' b+ O, U" A' ]5 u in case order not filled backorder on OL_2" B. E5 Y+ Z4 }( f
set load type to L_product! W# X& b( o" P
get R_massm
* C# b) u) t I! h wait for normal 5,1 min
$ ]0 y8 b, x4 m5 V free R_massm
5 I1 L$ C( ]( E' | move into Q_stock, K0 W) [- P" ^
end |
|