|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
9 _4 I4 y3 W5 c0 D0 v& q
* m- X% q( m) }# o1 \) Gbegin P_wait arriving
$ `' p! S6 N' m4 Z j; o4 U if this load type=L_a1 then2 P# j% r4 L2 I8 d' y% Q1 b
wait to be ordered on OL_1
8 G o; k- I$ j7 q if this load type=L_b1 then4 l% O# ?) s! I) Y" h1 n
wait to be ordered on OL_2
9 K+ x, J$ _4 R. m' a. p2 ?6 F- u# {8 J send to P_assemble& R4 S) M( F5 l2 c
end' x" _# X9 Y: O$ f: G6 S) m
d" _8 W2 j0 S: ?begin P_assemble arriving
! e. z# W$ i$ j4 a7 ^; [+ U5 ` order a load from OL_1 to die8 y6 L6 B+ C' `) [3 G; D7 J
in case order not filled backorder on OL_17 y/ y" K' l4 ]4 C# I& D
order a load from OL_2 to continue" o* H' G0 j; J4 P
in case order not filled backorder on OL_2
$ @% E$ u" w* W5 C' ` set load type to L_product
- f3 Y- `3 E) ^5 X7 n9 Q0 W get R_massm0 [0 F% @1 K6 \4 D! z
wait for normal 5,1 min
: ?; A6 @# f& @ free R_massm% g) r" N7 ~$ ]- p4 l" f1 Z" G x) a
move into Q_stock: q! t" Z" U: J9 ^8 {" J6 O
end |
|