设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12995|回复: 1

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

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

( M: n+ X2 y# M& kbegin P_wait arriving
. `" P8 \# o( s& b. a, E) r  if this load type=L_a1 then
1 t9 N9 H8 `/ x# ^* P    wait to be ordered on OL_17 |- `( j, K6 k/ F+ |' R6 Z& r
  if this load type=L_b1 then
- D- ?& J# f- p2 A+ y/ g    wait to be ordered on OL_2$ n9 z; w8 C0 j1 A
  send to P_assemble
. S. F. k% O7 c$ |$ K9 U3 H: M" I2 t& dend
9 S# }( W  P1 a6 H: o4 I1 h3 b  @  o) S% [
begin P_assemble arriving
2 t2 C) q% F3 w# B  order a load from OL_1 to die
% {1 |+ w* n. l% k    in case order not filled backorder on OL_1
, p, G6 |5 k) {  l# d  order a load from OL_2 to continue0 B3 a& B) ]& k( w2 q+ z) M; @
    in case order not filled backorder on OL_2
+ D  H$ H# V( ?; U  set load type to L_product
, ~( @( B7 ?$ {7 h# j$ C  get R_massm
( m3 u; J" N7 }4 p: |5 |  wait for normal 5,1 min3 U: W. R$ c: i2 u6 A/ f+ i
  free R_massm
  \+ C. W$ Z/ }+ r) M7 A) @. L  move into Q_stock6 M; q8 N/ B1 h( A# ?
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-18 18:57 , Processed in 0.014348 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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