|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
9 d6 U% w" j) }4 ?
/ g0 C0 r1 |+ b( `begin P_wait arriving( G3 K! f; D8 Z% Y
if this load type=L_a1 then
+ u- L4 y) g0 e4 T( E% Q wait to be ordered on OL_1
1 c; r' g1 U$ y8 ^6 k% L. L if this load type=L_b1 then
7 ~5 p9 |6 w- D4 n8 s wait to be ordered on OL_2
6 ~% L5 p# `0 d9 o: p4 L send to P_assemble
" }3 h; B3 G$ ~, J1 dend' h( G0 y4 k+ M: W- i. @
6 g" z& m. n/ P4 s+ r6 Rbegin P_assemble arriving8 w" w5 d Q+ W- C+ f5 e
order a load from OL_1 to die1 {4 ?7 r, I, g2 y0 k) R* z
in case order not filled backorder on OL_1$ |+ y' _: F7 i2 i# W
order a load from OL_2 to continue. J9 m8 I8 {# g q$ s
in case order not filled backorder on OL_2
& x( ]( ], R$ y set load type to L_product
, v/ v3 l: w/ S) Z4 { get R_massm& g: \8 o5 m. n0 l( |1 U
wait for normal 5,1 min- Y" N" y) @4 r1 n+ w9 _
free R_massm
% l3 x4 Z% E6 n. }3 n1 ]& z move into Q_stock
" X7 b6 Y+ f8 W0 U' F$ z& xend |
|