设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13291|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
. z3 t4 S# o7 j  o9 V
7 l* K7 E; g  dbegin P_wait arriving
$ K& l. c) `7 ^# m  if this load type=L_a1 then
' P! [6 [5 I. \% r! M/ G% r5 H, K; H    wait to be ordered on OL_1
& L8 ]$ D+ H& P+ }6 K- g& l" H  if this load type=L_b1 then8 {9 ]6 k  l/ Y' C& F
    wait to be ordered on OL_2' U& D) R3 G' L7 D1 `0 L
  send to P_assemble
; n9 V+ K' S' b. C7 Pend
2 I0 w$ L3 D/ Q% W9 w7 M! [- e$ i9 w% Y% ]& A+ y5 E) ^7 z
begin P_assemble arriving
" E6 [: P5 Z. P- p- s3 L. d4 M  order a load from OL_1 to die9 r( Y4 i; ]% C) p# O3 B' i) b
    in case order not filled backorder on OL_1+ D" Z% L/ l+ J* f3 }
  order a load from OL_2 to continue
8 ?0 j8 v# g; [" x* B    in case order not filled backorder on OL_26 n& e3 @" h3 E" D, W
  set load type to L_product- Q" s) M. c3 r
  get R_massm! Z/ X8 c* G: t+ U: F- b3 n
  wait for normal 5,1 min
+ \  V. B3 f1 y9 m$ M! b% m- H  free R_massm
+ n- u: I7 I7 G: d, s! a% b  move into Q_stock
( x7 W2 _3 Y7 h+ ~" R# }* _end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-21 17:20 , Processed in 0.017928 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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