|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
' B( h2 K" ~: E% o j# z7 d5 l# S5 s
begin P_wait arriving
7 w9 J# g0 M: i5 N: [ if this load type=L_a1 then2 @* w: \. E) B$ f8 ^; M, ]
wait to be ordered on OL_1* c; F1 V- l. B% q l4 I) ~ K
if this load type=L_b1 then
8 V1 J% {% T/ q) d0 [8 k wait to be ordered on OL_2# x4 k5 R3 A9 [$ @
send to P_assemble7 p, }! {) w& ]" f, n- \$ Z
end
$ s" l, S4 x4 y8 b3 ^0 J) L3 y+ a* w9 k) A) t9 I+ r+ U
begin P_assemble arriving( X* V' G2 Z% p# l' m1 w
order a load from OL_1 to die
+ b/ r$ H! @7 n3 I4 A: h2 Z/ R in case order not filled backorder on OL_1$ e0 ^. c) w6 f5 g, d6 f
order a load from OL_2 to continue
; O; K# I! T; Z; x in case order not filled backorder on OL_2# ^; _3 j+ b! U" f1 M7 \' Q( k
set load type to L_product
: M' P: y) L2 u+ [4 F get R_massm
2 w7 r% n! p# h7 K* [ wait for normal 5,1 min
% d, g4 P. d4 g$ W( S! z' u a free R_massm( d- I' v; _. Q
move into Q_stock$ A! j( l* y( M: z
end |
|