设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13540|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。+ c2 z6 Q1 @. R5 T3 H: [8 m0 C
' p* k4 a. q! Q$ o0 z
begin P_wait arriving
8 |* m- Z9 d: n( A  if this load type=L_a1 then/ ^4 c; k/ L9 ~0 T0 O6 E* @) m9 Q+ ^
    wait to be ordered on OL_1
9 [$ ?. I$ y7 I0 Q3 u  if this load type=L_b1 then9 u5 b) X$ f5 T% ^8 K, w
    wait to be ordered on OL_2+ H" ]; y; z% A! Z6 n
  send to P_assemble4 q: m/ g% ?; [: x6 }5 {
end' G* Q" C/ w3 Z6 w

2 A. r+ i! f# jbegin P_assemble arriving
* z/ g1 j. Z' ]" {  order a load from OL_1 to die
; r1 `6 V$ C: b" D3 }    in case order not filled backorder on OL_1( D* A4 U/ E8 {1 B+ v4 ^: Z, S
  order a load from OL_2 to continue
2 V/ M1 r  `) c# i& c( i0 a    in case order not filled backorder on OL_2
  y0 k' `& I- R  set load type to L_product# b0 {$ H% n0 m8 ^8 I
  get R_massm
# l7 U  G# {. G  wait for normal 5,1 min* [/ p+ v3 `6 U4 J. t4 r' \& X
  free R_massm6 H! I  H8 |, _, C
  move into Q_stock! z( k7 I, l5 Q/ Y' A
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-25 17:44 , Processed in 0.019551 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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