|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
1 P, f, _ m9 J. ?2 }
7 N# G' y. w# k, p' s9 @begin P_wait arriving
/ t2 x( l" z1 Z if this load type=L_a1 then$ b, w3 c- b4 |- T$ Y+ ~1 m7 B
wait to be ordered on OL_1: U: j1 @; i- _
if this load type=L_b1 then
- z/ K+ v" F) ] k8 }- O3 Z' g wait to be ordered on OL_2
! o! T" J9 @# I& y7 h b send to P_assemble
3 m2 F: {. G* K: Oend
) }6 V8 ^. } _6 D. X
" s2 q; T9 e' P) n) p/ Obegin P_assemble arriving
7 B7 ~/ M. G' }( c! X order a load from OL_1 to die
9 R# ^/ k& [& c3 p7 [ @0 N2 B- H in case order not filled backorder on OL_1
! o6 o4 P7 u+ ?+ |( {2 }6 Z order a load from OL_2 to continue U/ g6 Q1 F5 o B6 @; o
in case order not filled backorder on OL_2
# E! c4 z- j8 S: u set load type to L_product8 M# ~# z2 k# H
get R_massm
5 I, G/ i- L) f: h' j- F4 X wait for normal 5,1 min. U3 b0 G0 W* D# d
free R_massm# x9 _& w. `) m1 z
move into Q_stock
# |' U! N3 v6 b, o( zend |
|