设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12604|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。# B+ S' P& q& s7 M, c$ e
& I. W; E7 \2 y' K5 v$ }; ^" g
begin P_wait arriving5 D# r0 O: z% ~% h
  if this load type=L_a1 then& P, B% ^6 J# Q( b; U, ~
    wait to be ordered on OL_14 @1 l: B: c! N! Z+ z! M+ {- d/ W
  if this load type=L_b1 then
2 G3 F+ T3 n" k5 Z, R4 K; O8 y  l( L    wait to be ordered on OL_2
- E% q8 r6 a# P* N  send to P_assemble
# b" N9 z5 d8 V% S, r" l$ \% iend
' K  p5 u7 A$ O
6 e' Q* ]  @3 Z  U3 H7 B3 ~begin P_assemble arriving
" ?9 {8 t$ W) l* V; ?9 W) j  order a load from OL_1 to die( X. s' ?0 A# A. R! Z
    in case order not filled backorder on OL_1
3 z2 F8 T$ ~* m, _  order a load from OL_2 to continue' `& Q0 @, I" g' Y* s/ F
    in case order not filled backorder on OL_2, T; }* Q0 Y& d" _
  set load type to L_product& M) G' f! V2 T, L# p
  get R_massm' I9 F) l- z* `! K5 X( W1 @( @* b
  wait for normal 5,1 min/ y4 P" k+ Y. w3 D* g1 k5 O
  free R_massm
- c3 t0 q# h) ?* X" ^) O% @  move into Q_stock" u/ H9 w+ ?9 U
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-1-28 10:48 , Processed in 0.013085 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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