|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。' s& p; e; C' M* ^; H
! U, r5 g- c! r
begin P_wait arriving
( A, ^! O1 x. N2 a) M9 m if this load type=L_a1 then
5 F2 t0 ^5 l$ w' A# v- \0 M9 ^$ G- c8 A wait to be ordered on OL_14 f$ S+ q& k4 w& o4 u' U
if this load type=L_b1 then
8 n! F) o1 n& {& Y wait to be ordered on OL_2
9 b9 [. F: u3 I4 P send to P_assemble
* l% A* `: A- r/ cend5 ]$ j6 ~( `1 \/ ~
9 A" N7 D/ R. O) H8 A+ g( Mbegin P_assemble arriving
, n. O1 C; M$ b order a load from OL_1 to die
4 P9 A2 o ^ c* F8 o9 v in case order not filled backorder on OL_1
* ^8 T. T" d7 P* o* C order a load from OL_2 to continue
$ c7 x0 n! {( H in case order not filled backorder on OL_24 p, F8 i& L- Q/ @7 J; O
set load type to L_product) E7 O6 Y3 k! {- f0 @+ X- O. O
get R_massm% ?- L" n) d9 T* F* q4 t: o. E' G
wait for normal 5,1 min
8 x* h u) e% T1 `2 X free R_massm
, g5 v" l5 t8 f( x, d0 D move into Q_stock
9 [0 L5 y* [6 Send |
|