|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
0 ]* @& Y5 H) B8 y* l$ j' V7 _' t6 ]; a; f( |* {0 l! h5 ~
begin P_wait arriving6 l1 D1 ~$ u7 J' j' U
if this load type=L_a1 then
- H3 _) Q+ @ y" d: H2 H- S+ } wait to be ordered on OL_1
* @$ y% x, v6 D) |/ u0 e+ L1 F if this load type=L_b1 then
6 r5 }: y* `' A7 i1 ?+ D9 B2 ? wait to be ordered on OL_2/ o7 E/ Y4 N: U. E0 q
send to P_assemble: D! \ t% s( r% }5 B$ S- n* d# R
end
3 p' ?4 w9 h- a: F8 c: |) U8 S9 p% m0 n: I P! {
begin P_assemble arriving
9 J+ b( a* X' u; y7 ?4 _9 A order a load from OL_1 to die0 c7 f5 A: q$ R/ R5 Z
in case order not filled backorder on OL_1
! q* j# |5 c$ v* N) g0 y9 m0 v order a load from OL_2 to continue1 l5 F- T7 J# E7 ~) w$ m* d k( B& }: q
in case order not filled backorder on OL_2
& q$ x3 t) V$ z! A5 e9 f. | set load type to L_product1 p7 n, A' B) ?1 C( i* Z" n$ U
get R_massm/ F( a4 s' x7 k( Y2 E4 }. P3 H+ q6 {
wait for normal 5,1 min# B$ V$ n" w7 g+ \5 h
free R_massm/ p/ A6 r' i# A9 q# T( M+ Q9 ]$ O
move into Q_stock
0 r0 u& v- K# Z0 Hend |
|