关于装配的实现~~
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。begin P_wait arriving
if this load type=L_a1 then
wait to be ordered on OL_1
if this load type=L_b1 then
wait to be ordered on OL_2
send to P_assemble
end
begin P_assemble arriving
order a load from OL_1 to die
in case order not filled backorder on OL_1
order a load from OL_2 to continue
in case order not filled backorder on OL_2
set load type to L_product
get R_massm
wait for normal 5,1 min
free R_massm
move into Q_stock
end 已解决~~~
页:
[1]