设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14293|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。1 g* h- V7 k3 V- W" ~

2 {' h& u# ~9 D) m7 v6 Bbegin P_wait arriving( N: `, c9 j! a5 l& U- z
  if this load type=L_a1 then  r0 A; u9 s6 V2 p# {& E- N
    wait to be ordered on OL_1
1 _: {. _5 A. n& b/ \7 t  if this load type=L_b1 then
2 i1 Z7 B( z  R+ r% a    wait to be ordered on OL_22 @; z( N. @# a3 l+ @+ h
  send to P_assemble8 O) x6 M* a9 K0 g# r/ Y7 J
end, P* t( }  M4 p3 \6 ~4 D
# u) N4 z1 c0 @8 |/ D
begin P_assemble arriving6 S2 S" M8 y; o  A+ P' L% ]
  order a load from OL_1 to die0 y; {4 [8 V( y
    in case order not filled backorder on OL_1) p0 b& B4 i5 ~7 g
  order a load from OL_2 to continue0 V: p( o3 i. o) @
    in case order not filled backorder on OL_2
$ H+ A8 G; c. Z3 [) G  h  set load type to L_product( X, I6 W. K6 x" ]
  get R_massm$ `, Q& C7 Q4 \2 |' ?- S% u. N
  wait for normal 5,1 min3 b$ t4 L' L! {4 Z6 l( j" e& t
  free R_massm
; T4 G, E; c/ A  move into Q_stock3 U* X8 `) l/ ~# t- _5 u
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-5 14:29 , Processed in 0.011547 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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