|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
2 `9 e% s( ], f3 I. X0 K1 O9 H e0 {8 [: f: B' M
begin P_wait arriving0 \6 M$ d) Q' O: m9 e5 }
if this load type=L_a1 then
( b$ m. I& Q: ]* S2 b0 w3 { wait to be ordered on OL_1
( F/ N% X5 H1 x" y3 k3 q+ f if this load type=L_b1 then3 F6 Q$ N A0 d' D+ D; c
wait to be ordered on OL_2
7 z$ c5 Z+ B: ]8 o3 G3 H, o send to P_assemble+ A$ J1 a: |) h. d" F, N6 b8 C
end
8 `# O! C: |. d0 \9 g+ P( b% A' a# j) s1 \- `' r: a, Z6 |5 @
begin P_assemble arriving! Z+ H' W- G0 M( b" z: M# w. I* F1 X
order a load from OL_1 to die
* R6 h% b0 P5 r8 z$ s; o in case order not filled backorder on OL_1
5 K3 B. i w) v+ \; O0 F4 m0 `4 F order a load from OL_2 to continue
$ y/ f( r* P2 z' t4 v' @ in case order not filled backorder on OL_2
3 q7 k- F# j% w a$ a( v set load type to L_product
# Z t, W& [. n) T6 H c0 X' D1 m get R_massm" @( _ I" j: W6 a5 J+ g
wait for normal 5,1 min8 R# D( P f# c2 `1 Q: N# S9 P
free R_massm
) o1 a0 P& q$ [, w" k) r0 i) p move into Q_stock
6 p- b: B/ l }. Wend |
|