设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13251|回复: 1

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

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

5 x. Y3 ?1 j; L& [begin P_wait arriving/ l" V8 a0 e3 v6 B5 [
  if this load type=L_a1 then
) t) d+ c- C  I) J    wait to be ordered on OL_1, t7 u% d8 b- u$ e) h5 r
  if this load type=L_b1 then+ \+ N3 C3 L5 a. `) L. w2 O' ~8 S
    wait to be ordered on OL_2
% d, b- {4 f7 j- ?. Z+ |- G  send to P_assemble$ U5 t4 m' H  N9 k# w
end6 n  o$ V2 e4 P& m- Q7 e+ Q0 G8 H

6 s9 v1 g" `) g- J. n1 Dbegin P_assemble arriving
! M2 v0 i8 P: O- s  order a load from OL_1 to die+ r6 ?! z" F& J: D
    in case order not filled backorder on OL_1
9 T% I  H' x8 |5 [' D6 c" v. \  order a load from OL_2 to continue
  d" Q/ ?0 @2 {& L9 Z1 f# p* F, ~3 t; G    in case order not filled backorder on OL_29 J% ~  A" v7 M- M5 y  i8 w
  set load type to L_product6 w  E% t1 I: w8 C" e  Q" N" j- ]( F
  get R_massm
6 @' y3 p8 g4 n! V; i$ h! X  wait for normal 5,1 min5 A. {( p- R0 W8 |$ d3 N
  free R_massm9 Y: a3 B! R& w. q, j# B- i& {6 g
  move into Q_stock7 I) O$ T9 b$ x# c# C0 ^* |! P
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-17 10:42 , Processed in 0.016067 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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