设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13728|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
9 R9 Q% ^9 u( p3 Z: S; B" e+ p( E
' F6 s$ H9 Z) F! _# t7 t! a1 B- zbegin P_wait arriving
. z, e" q% n/ w+ y) U. ?) p  if this load type=L_a1 then
- [) F7 \: M. o# I( {7 m    wait to be ordered on OL_17 O  K, J" e5 f) c4 z0 Q3 g
  if this load type=L_b1 then3 G+ d# ^$ A  {7 o, Q. b
    wait to be ordered on OL_2
5 t# T( v+ K* h9 G) F6 f  q  send to P_assemble
9 P: T7 ~- w8 Z, gend
% U+ I; c. t9 n" Y+ g$ V
# T9 n0 `  X. L: qbegin P_assemble arriving7 g* d9 s5 h! \9 \0 {8 \( Y+ s
  order a load from OL_1 to die! G  V1 S3 m/ Y" c4 ^+ I0 d
    in case order not filled backorder on OL_18 E. ?6 _, W% p  t" F, T
  order a load from OL_2 to continue
- T/ N0 k+ M6 D$ r. @    in case order not filled backorder on OL_2
9 P1 P# w/ G/ b4 b1 a  set load type to L_product
9 Y( b9 R8 m/ {& i/ U) `1 z$ x8 \, Y4 D  get R_massm5 U3 Y+ k! @5 n7 U2 ]: W, q6 r
  wait for normal 5,1 min
  }6 \, Z) a. r9 U: l5 F: M  free R_massm0 e9 E, d1 q' Y/ J6 ?
  move into Q_stock
2 ~3 I) [7 I4 Yend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-27 22:01 , Processed in 0.014047 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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