|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
/ ]. H% T1 K8 v. W
9 m! d, U t- C- {; Wbegin P_wait arriving4 Y$ B/ |% [$ e. e& l" D
if this load type=L_a1 then
$ r1 Z) R6 w, I3 Q% Q- c9 ] wait to be ordered on OL_1 V- Z+ j/ c" Y; c9 r$ B' D, [
if this load type=L_b1 then% z0 z5 p, R, T4 C
wait to be ordered on OL_26 p# i8 n$ F5 s5 e7 P2 e
send to P_assemble* b$ v2 Y* B9 I( Y# \
end
$ L( n' q: R7 C
1 G. `8 [+ E5 Y( f6 \2 z2 l8 _begin P_assemble arriving
3 V/ q2 @, m4 r( h. E7 J order a load from OL_1 to die
) Y% r5 M) {6 ]1 T( W in case order not filled backorder on OL_1% g5 o1 i2 v, c( m5 X
order a load from OL_2 to continue W6 {8 n5 v# y8 L
in case order not filled backorder on OL_2
$ G/ g: d9 q! S# U9 v3 V set load type to L_product" \, S$ {% d) [7 s( y
get R_massm) Y* ^* n" f) Q7 r5 T/ P
wait for normal 5,1 min
2 J3 C. [/ f7 ]/ a2 L9 T free R_massm2 N ]3 l" R0 e. z; F. V* a+ S& ~
move into Q_stock" m! {3 n5 W ~% j4 T
end |
|