设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12833|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
8 [$ W- V8 _5 Z4 v9 k7 S0 E$ r1 X
7 S9 f+ k1 q* @  q# e1 }0 ~begin P_wait arriving
# P6 n3 W$ N. P6 x& Z1 [# e1 Q  if this load type=L_a1 then
4 E9 j; \4 q1 t4 ]3 p    wait to be ordered on OL_1
" {  b- b$ r( D7 J* X9 T  if this load type=L_b1 then
; E( o, P, [: v# d* S    wait to be ordered on OL_2" O+ b. q4 c' ^* Y* i8 a
  send to P_assemble+ p5 |# l4 \2 y+ |" O: n! L) \
end
' h1 a- z/ g/ @- I) l2 @! x& D; [/ k8 L# m; l( b4 k  p( W7 \
begin P_assemble arriving5 l: [& b% t/ S* \
  order a load from OL_1 to die
) W3 @# P+ w. I1 S& O    in case order not filled backorder on OL_19 J. Q8 z- ]2 @0 @4 n
  order a load from OL_2 to continue, R, \) x4 h' S0 Y7 T) v- e' @% l
    in case order not filled backorder on OL_2
  T% c; _$ y- {3 G9 Y  set load type to L_product0 B' e+ L" n" k8 u( ^6 K5 B
  get R_massm; u: w0 [. O% J. n, X
  wait for normal 5,1 min
. `& t) X4 N% s1 C2 ^/ q0 I( u9 ]: }2 r  free R_massm( y9 {# z  Q2 ^
  move into Q_stock
2 V3 |, G! d  K, Q2 M0 v  [) lend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-24 21:06 , Processed in 0.015024 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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