设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13528|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
9 _4 I4 y3 W5 c0 D0 v& q
* m- X% q( m) }# o1 \) Gbegin P_wait arriving
$ `' p! S6 N' m4 Z  j; o4 U  if this load type=L_a1 then2 P# j% r4 L2 I8 d' y% Q1 b
    wait to be ordered on OL_1
8 G  o; k- I$ j7 q  if this load type=L_b1 then4 l% O# ?) s! I) Y" h1 n
    wait to be ordered on OL_2
9 K+ x, J$ _4 R. m' a. p2 ?6 F- u# {8 J  send to P_assemble& R4 S) M( F5 l2 c
end' x" _# X9 Y: O$ f: G6 S) m

  d" _8 W2 j0 S: ?begin P_assemble arriving
! e. z# W$ i$ j4 a7 ^; [+ U5 `  order a load from OL_1 to die8 y6 L6 B+ C' `) [3 G; D7 J
    in case order not filled backorder on OL_17 y/ y" K' l4 ]4 C# I& D
  order a load from OL_2 to continue" o* H' G0 j; J4 P
    in case order not filled backorder on OL_2
$ @% E$ u" w* W5 C' `  set load type to L_product
- f3 Y- `3 E) ^5 X7 n9 Q0 W  get R_massm0 [0 F% @1 K6 \4 D! z
  wait for normal 5,1 min
: ?; A6 @# f& @  free R_massm% g) r" N7 ~$ ]- p4 l" f1 Z" G  x) a
  move into Q_stock: q! t" Z" U: J9 ^8 {" J6 O
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-23 02:57 , Processed in 0.015867 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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