设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13625|回复: 1

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

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

' d( w4 l9 L2 u! o) Lbegin P_wait arriving
& g% A% l" N" u) k. Y2 P) ]* ?  if this load type=L_a1 then, p/ |" `! d8 I( v3 J
    wait to be ordered on OL_1) f8 ?# L6 m! p9 d5 i; B
  if this load type=L_b1 then$ J6 Y! ]/ U+ Y% V* `+ c; J
    wait to be ordered on OL_2
, x6 |- N1 A! x4 ]  @3 W  send to P_assemble" I9 F, E- O, t: d; I( V
end
1 C0 k' k* B" F8 y1 L. L6 g+ a, S/ ^. J: O
begin P_assemble arriving
" d( P; ]7 |- C2 W) \* N( I  order a load from OL_1 to die
$ P5 G/ u9 X4 U8 ?    in case order not filled backorder on OL_1$ ^) K4 T9 ^( O
  order a load from OL_2 to continue
+ Y3 O% M, h8 N# R$ @: X9 _4 t    in case order not filled backorder on OL_2
6 Z" J4 s$ x4 V' ^0 k  r  set load type to L_product
. z8 ]* h3 a, T1 P  get R_massm" N$ ~: r) E; w1 {4 Z7 P
  wait for normal 5,1 min1 O- n, i# |$ z7 r, M
  free R_massm3 P9 F9 D/ C: |; \* l% r
  move into Q_stock$ P9 K0 _  i8 k! {' k
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-13 21:24 , Processed in 0.011694 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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