|
|
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
2 J2 F. q/ Z) n( N- L% n: A3 s E+ [5 B0 E$ S1 w
begin P_wait arriving b0 a3 J7 \+ A" m% r; S
if this load type=L_a1 then
! H. s2 R1 W$ l! z# |2 h3 M1 S wait to be ordered on OL_1
9 g# x' [1 M3 ?8 d, \: { if this load type=L_b1 then
1 [" G& ^$ F$ ]% J) J4 O; f wait to be ordered on OL_2
% {; o. H& a$ k4 V& p2 x/ Y send to P_assemble/ S0 }9 h# a) i! H
end
8 r q1 E9 M! w' K
: }; J- G2 ^$ V+ C( x2 T* ibegin P_assemble arriving" A' X3 l$ s/ i) l0 a+ f: |, t/ ^& `( w! y
order a load from OL_1 to die ], f, |) y5 I1 y5 T1 f
in case order not filled backorder on OL_1
! i2 Z. O2 e, b8 I8 B4 Y5 B7 J order a load from OL_2 to continue
) v" i1 l0 J6 [2 ~1 p0 N3 L in case order not filled backorder on OL_2& T6 R1 z, f6 P9 h1 p
set load type to L_product
7 M0 F0 e) o: M+ k, X% b- z get R_massm
% D! H+ H" W2 K h wait for normal 5,1 min
$ u! p# x# B' D; f" K2 Q, v: o free R_massm( W+ d4 g$ @* Z+ y/ x
move into Q_stock3 B, }; ?/ ~: K- h6 x# X) r$ K
end |
|