设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14557|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
  ?! a4 j5 ?. k6 D. ^) p3 D3 ?7 ^; ^; N# G! L# d8 ^
begin P_wait arriving
5 G7 l0 b! ~1 ^  T( }  if this load type=L_a1 then
. F; @# C5 \! D* R# ~    wait to be ordered on OL_1
, c) r0 ^; M/ ^  ^8 K, E  if this load type=L_b1 then; q' S% B$ y6 [4 N
    wait to be ordered on OL_2: d  D9 C: b; ]7 W6 p- G) i
  send to P_assemble
" L1 j5 F/ B8 E1 Y4 @$ iend
' b9 d$ r/ n: _4 ^% e5 Y& u; W- ]: _% z7 J7 P: ]5 `# D
begin P_assemble arriving! h* r; j  E  d! F5 T: ?6 w
  order a load from OL_1 to die; `6 B2 \$ I7 {/ I5 d2 K
    in case order not filled backorder on OL_1' }5 e, F& m! X4 {. x! [/ [
  order a load from OL_2 to continue
9 [. v* Z+ [+ Y0 i, M    in case order not filled backorder on OL_2+ G: U' y  l9 O, n8 G2 y. }
  set load type to L_product3 X8 Z- Z7 _4 v# I/ G
  get R_massm+ \8 w! C, v  Z, t4 k/ K" C
  wait for normal 5,1 min
) T7 j. \  c4 |# b$ _& f  free R_massm
' ]+ t1 C2 b# Y7 [  move into Q_stock1 h7 ~4 }2 p! K+ C; C+ B( |2 e
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-6 14:22 , Processed in 0.032314 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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