设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12679|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
8 C4 a5 c' [% g% ^# e# V$ h* I
# G0 E" n) ^+ Rbegin P_wait arriving
2 A' L; l2 ~$ `5 r* o  if this load type=L_a1 then
! N; P$ Z% \) x. H0 \    wait to be ordered on OL_1* l2 f) R; v, i/ D7 l
  if this load type=L_b1 then" {7 R( T  y8 Q; R* k7 g3 C
    wait to be ordered on OL_2
# w9 q% i6 `# G  send to P_assemble) m8 K6 \0 F$ {* t  e
end
* M% o  n0 O0 y1 y0 N* ^+ j9 d. K/ W$ k% m! Q/ i- e7 U
begin P_assemble arriving! x2 n( ^# O$ p, d
  order a load from OL_1 to die; L4 J9 P- W1 Y* A
    in case order not filled backorder on OL_1. w) a0 b: g4 g: [
  order a load from OL_2 to continue
$ o  K2 q+ @8 J0 z( s    in case order not filled backorder on OL_2
+ C5 B$ \, N( V- \9 J% D8 w  set load type to L_product
2 e  M. @7 a' L; M# \  get R_massm- ?" a" S' Q8 l
  wait for normal 5,1 min
/ i/ T7 ^3 o: `8 s  free R_massm
, c9 C+ Y9 o9 d  move into Q_stock6 m9 z) v. K  f% |
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-4 14:28 , Processed in 0.013569 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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