设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13254|回复: 1

[悬赏] 关于装配的实现~~

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
. I$ i+ w. [: O  X6 e' y) R
" C5 E/ f. |$ U' }: ]) w- P. Ebegin P_wait arriving
& z; r9 n' ^* Y! }# h  if this load type=L_a1 then
9 I) l8 `) E( P; x0 R8 I( G    wait to be ordered on OL_1+ u4 y5 m) t* U; @. o  u
  if this load type=L_b1 then5 W+ M- E2 |! C2 ^
    wait to be ordered on OL_2, i& Y) C2 N! Y. R9 h4 d* |9 O# I3 ?* U! N
  send to P_assemble  E2 m& E* m0 h( e* ?* Y& v
end
6 S1 I0 U, P  v7 }) j' M9 |; l, n4 W6 `2 d+ r' t+ Y6 _
begin P_assemble arriving1 e. n* C3 R+ M, e4 n9 m* y
  order a load from OL_1 to die& o* P1 [; ^. t
    in case order not filled backorder on OL_1
1 p6 B" t" C# |6 Y! x+ Y% s. h/ e  order a load from OL_2 to continue
) R/ X; `2 e) j6 }    in case order not filled backorder on OL_2) ]5 a; i3 z9 I4 L( c$ w7 I
  set load type to L_product
6 K- l% R* K: F! O9 `1 X5 F  get R_massm0 U( v( A  J2 ]. I
  wait for normal 5,1 min
# `' S' d* Y% S' k$ Q8 L, p3 H  free R_massm
5 d$ w, J5 G* C, [0 e, m# W0 w  move into Q_stock2 ^/ L& B3 i+ w7 V9 s" U
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2026-4-17 17:56 , Processed in 0.014674 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表