|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
$ E; U ]; J, \2 P) _
# [& K* [5 i: e7 N2 A: m- N1 ]; Cbegin P_wait arriving* S2 [6 B, q1 _* `5 W" F5 h
if this load type=L_a1 then
: }0 l7 L k+ N( { wait to be ordered on OL_19 [, U) l3 }, I6 t5 t
if this load type=L_b1 then5 I2 }& k9 d% X+ Q
wait to be ordered on OL_2
! a! |+ j0 T- w( w. S' a send to P_assemble
# G( r, l3 D; T' T: uend( s, c0 F/ I* f* C. k3 C8 a
1 ^: ~0 p9 R" \" Z
begin P_assemble arriving2 E- D4 i5 H1 c l0 N# h) u& A
order a load from OL_1 to die
# V y6 ^+ S( i9 n in case order not filled backorder on OL_1/ D- r0 P; s2 ^0 j
order a load from OL_2 to continue
7 n& N, U+ |6 ^. J' S- C, F in case order not filled backorder on OL_2
7 a; ]# N5 E4 F! d6 `; {, `- Y set load type to L_product9 }& j0 W8 \8 R* b- P4 q* n7 M
get R_massm9 r0 W" j8 L; V0 D- ]& j1 U# l$ [* q
wait for normal 5,1 min
2 F: ~1 p0 L5 x# @2 x4 e) z free R_massm% t* H7 n# z5 d8 b
move into Q_stock( [: u) w. I% y$ d9 K! c
end |
|