|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
, f! X; n6 }6 \0 Q8 c2 x1 h
9 l1 }- y% d$ h3 q1 t! k# E6 D' rbegin P_wait arriving
2 I9 e, ~/ x; y3 D if this load type=L_a1 then# q) f" C6 ?! l4 G) T
wait to be ordered on OL_1
; \* q5 B; A6 i7 W, L if this load type=L_b1 then9 L; n# V/ @/ @+ `0 }
wait to be ordered on OL_2
; g5 P# i" {9 i% o t. @ send to P_assemble, F- f1 i# Z- ^2 s8 m9 T) T$ h
end) A7 c4 Y4 {- n' [1 i
2 p' Y$ D* L% ?+ j. R$ t8 x" Z' {/ wbegin P_assemble arriving. {7 B9 _6 t. E' Y7 L
order a load from OL_1 to die) w. Y. O |$ F o) |* j; H
in case order not filled backorder on OL_1
' c, k$ c% ?4 { order a load from OL_2 to continue; t5 d$ \, z+ K. Y6 n5 @4 i
in case order not filled backorder on OL_2
" s$ z5 `/ M. F2 C% ^ set load type to L_product7 o5 [& Z# W1 w) i# |3 V
get R_massm
9 e& F$ w0 F' d9 y5 X wait for normal 5,1 min
9 w8 y, Z$ G9 d free R_massm4 O9 H2 U$ x8 g% v
move into Q_stock
2 m" J2 \2 F/ L; s5 @# Gend |
|