|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。3 A v }- C+ h
: A8 d0 e8 z8 Z7 s, l' y
begin P_wait arriving
) x) @8 v3 o! M# _& J( e1 c if this load type=L_a1 then
) X7 B. N! G3 _% j# n$ a- k+ J0 Q wait to be ordered on OL_1
% \! |3 T! H+ U* o9 m# Q+ \9 ? if this load type=L_b1 then
1 W7 n* @3 `4 A+ y6 j( m1 K wait to be ordered on OL_2
8 q* F7 S& P0 ]6 ]% G send to P_assemble0 r+ d8 L: D1 ^/ R% a9 K
end
. Q9 d$ Z p) \( N) _+ @
- @1 ]3 Q9 `) r2 k) l7 B2 j, Z6 cbegin P_assemble arriving' B! I+ k" w E
order a load from OL_1 to die
. j4 ]. C; R" k8 O in case order not filled backorder on OL_1' ]# v$ r5 q) B8 Y" L k
order a load from OL_2 to continue
7 E8 _2 H" K8 U7 m8 n5 i! l in case order not filled backorder on OL_26 ?& D7 a3 {& j- M. S9 k1 V
set load type to L_product$ }1 J$ p) Q& h' p5 T( g
get R_massm7 N2 c2 L" |$ G1 k
wait for normal 5,1 min
( X( z- @8 I ~3 u free R_massm2 C! n! q; t; `% w; A# t! A4 N! f* t
move into Q_stock/ V* e, r. K ] x$ ]
end |
|