|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。( U f. i8 H: H( n$ h
2 f6 r H3 p/ j$ \, N1 J" N
begin P_wait arriving
9 U5 \- D% ^+ H [4 R8 t if this load type=L_a1 then" Q; ?, H9 T. ]# O+ v1 A' a9 `
wait to be ordered on OL_1" g* g9 T$ f3 Q, D, S
if this load type=L_b1 then
3 ?6 Z: @! v. `5 n! \/ e3 k wait to be ordered on OL_2
; y) D! n0 y \ h! Q, r& a send to P_assemble+ x8 H& W9 B$ ]% |
end1 [9 ?" Z* S. |$ i# f) i
4 v/ T+ {2 R! |2 e$ dbegin P_assemble arriving5 W4 s) Z( v% ?( u$ \: z5 o1 ]$ e l
order a load from OL_1 to die+ M% D2 t- x; A* l
in case order not filled backorder on OL_1
; E, Z+ S; Z! q: J# I+ r order a load from OL_2 to continue0 L; F2 y1 l" p/ q0 g9 x
in case order not filled backorder on OL_2
( W' q" C g: X6 ]3 U ]+ Y2 U, _ set load type to L_product
8 P Y4 |' o! g& J7 K+ \) P get R_massm j% Y. Y$ C' ?) J
wait for normal 5,1 min
9 l& I6 ^5 W& T/ e7 |! Y& F: E q: u free R_massm
. n, D/ P- c8 ~) m9 W. x8 {. Q) a: S move into Q_stock9 D0 f }. D$ w, q8 E) z9 n9 e/ x
end |
|