|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。/ l0 n$ x6 n, u) o
. y/ K" ~9 Q" d8 Vbegin P_wait arriving
+ X: ?5 g4 L: y. q1 x, o if this load type=L_a1 then
' v2 D% U% d" z T$ G) N( S0 A wait to be ordered on OL_1
5 L' E: z& V9 ]6 F$ O if this load type=L_b1 then& I' f2 A2 Z3 ?( E, z7 I
wait to be ordered on OL_2 W/ e& s- S; S8 l* j% n9 t; g
send to P_assemble/ ~. M7 t/ m! C3 u
end0 B7 H0 z4 R% l& f4 U7 |6 s
/ {9 M/ i! b( k! N0 f: I2 ]begin P_assemble arriving
) @4 i8 R( ]7 F3 w' v7 D order a load from OL_1 to die3 E0 L0 g# Z& Q, V6 E8 B+ ]
in case order not filled backorder on OL_1
/ G' V$ Y' G3 `$ O7 q: z" V order a load from OL_2 to continue) F2 Z2 B! s. A9 w# ]. g P
in case order not filled backorder on OL_2
- G" E& F$ t1 V- l0 I set load type to L_product9 Y* p/ A9 ^# P) A7 n+ t
get R_massm; i; C, ~3 \" E4 |/ z
wait for normal 5,1 min
3 U, M* g; |* v) W* I$ c: M' [ free R_massm
; j$ j& }, s- a" e4 `4 G" t move into Q_stock
: b3 B- J* A( d& Dend |
|