|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
8 [$ W- V8 _5 Z4 v9 k7 S0 E$ r1 X
7 S9 f+ k1 q* @ q# e1 }0 ~begin P_wait arriving
# P6 n3 W$ N. P6 x& Z1 [# e1 Q if this load type=L_a1 then
4 E9 j; \4 q1 t4 ]3 p wait to be ordered on OL_1
" { b- b$ r( D7 J* X9 T if this load type=L_b1 then
; E( o, P, [: v# d* S wait to be ordered on OL_2" O+ b. q4 c' ^* Y* i8 a
send to P_assemble+ p5 |# l4 \2 y+ |" O: n! L) \
end
' h1 a- z/ g/ @- I) l2 @! x& D; [/ k8 L# m; l( b4 k p( W7 \
begin P_assemble arriving5 l: [& b% t/ S* \
order a load from OL_1 to die
) W3 @# P+ w. I1 S& O in case order not filled backorder on OL_19 J. Q8 z- ]2 @0 @4 n
order a load from OL_2 to continue, R, \) x4 h' S0 Y7 T) v- e' @% l
in case order not filled backorder on OL_2
T% c; _$ y- {3 G9 Y set load type to L_product0 B' e+ L" n" k8 u( ^6 K5 B
get R_massm; u: w0 [. O% J. n, X
wait for normal 5,1 min
. `& t) X4 N% s1 C2 ^/ q0 I( u9 ]: }2 r free R_massm( y9 {# z Q2 ^
move into Q_stock
2 V3 |, G! d K, Q2 M0 v [) lend |
|