|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
! t3 P+ ]# f! F0 F; x, P% M D. ^5 m/ R. v- R/ \
begin P_wait arriving
8 @& X. {( `% p9 ~6 x8 c0 t if this load type=L_a1 then
8 I9 S7 b) Q8 z8 H' z& I9 M* ~- d wait to be ordered on OL_1
+ r$ o( G; h$ q8 f Q/ K: m if this load type=L_b1 then, D+ J( T4 |6 b& E; Y* w
wait to be ordered on OL_2
. s! |+ v, w( x8 L4 H: y" B, F send to P_assemble
& |( c0 y3 @+ qend0 Z, ?' O; d$ T9 G$ x0 s+ h
: ?4 O: o: Y7 b6 `5 c, n Rbegin P_assemble arriving
6 z$ [8 x* W/ u, U; f; m- V4 k order a load from OL_1 to die5 `2 I8 p7 r. @( o' y
in case order not filled backorder on OL_11 H8 f6 k1 Q2 @& S6 y3 i6 P7 e+ v' B
order a load from OL_2 to continue- D& v z* s: c# Y7 o3 k' J
in case order not filled backorder on OL_2; }( o% v4 ~7 v+ X% o" s0 v5 l
set load type to L_product
! d' r/ ]9 p2 e* L* d9 z get R_massm- H2 T2 v; ?. D# @
wait for normal 5,1 min4 G9 |9 ?( s( \) G: G
free R_massm j8 Z/ @$ ~4 \
move into Q_stock
. |' ?. N1 e' t% _ y: iend |
|