|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
9 m" ~: T8 a: _! {6 f, r/ |
" u" c- U, J. R P5 }, T& {begin P_wait arriving; `- {0 C5 K4 l/ ]; r# h
if this load type=L_a1 then
4 F2 d* m( c9 C7 J/ t' r* F$ I wait to be ordered on OL_1
( I9 H5 y0 w0 X/ R' o if this load type=L_b1 then
* h8 P. d0 J0 C. I$ [ wait to be ordered on OL_2
; f( H/ y7 `* T6 D5 a send to P_assemble
/ L& Q& m; E% z' `4 fend
4 V* v4 g& ?9 ?6 Y9 B7 f) q5 j. U1 L/ _- u( p2 I" E
begin P_assemble arriving
! Y$ d# M6 G" F8 {2 g1 t order a load from OL_1 to die
7 D- b7 ~6 R2 ]& } {( o7 I in case order not filled backorder on OL_1) a1 Y) L4 q. q6 S$ B5 p
order a load from OL_2 to continue, A' S$ [" D+ n
in case order not filled backorder on OL_2) f- r" S/ w h: _: C
set load type to L_product8 z- w% w$ ` ~! U# U) i
get R_massm
" c4 S( x( p) J$ F( t3 O wait for normal 5,1 min
$ U0 G' D" O1 h g1 Q" m free R_massm
- I0 B% s2 ^, _+ V4 h$ V! z1 _. }: y move into Q_stock
( z* B8 L, }. J1 V. r' dend |
|