设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14781|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。6 w7 |, f0 ^7 p. k

' w) g3 N" j4 I0 @6 A, n! m5 {' l1 B( Ubegin P_wait arriving
7 z) s+ r$ U$ ]  y0 {  if this load type=L_a1 then7 T8 |3 k6 D/ ~" a
    wait to be ordered on OL_10 O' ^  t( j5 p+ J0 w9 b' [
  if this load type=L_b1 then
1 b( ^* W6 D6 S+ K( j    wait to be ordered on OL_2+ u& J) W- J! I) b4 I  M
  send to P_assemble
5 P8 \! Q! K( Y3 Pend
! M6 |0 s" }+ b: d0 j& r; P+ T" K
begin P_assemble arriving
- v& A( w& S5 c; t, _  order a load from OL_1 to die0 a# k& ?! x! t; Z5 n
    in case order not filled backorder on OL_1
7 G- ]. L$ {" S" h$ Q  order a load from OL_2 to continue
1 E1 H' i. [9 b7 h: O    in case order not filled backorder on OL_2
' b9 w6 u% r7 b8 i0 F  set load type to L_product
  ~5 Q6 ?( V* l% h% R, m8 M  get R_massm
) I& f$ U: r# j8 U3 r; a8 e9 |  wait for normal 5,1 min+ x) w9 C9 f) b9 h9 f4 K3 `* E: K
  free R_massm
. r( m. i" N9 i: v9 C/ ~7 Z8 s, S1 }  move into Q_stock
" R+ P8 I$ \$ y* C3 Wend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-22 23:58 , Processed in 0.012775 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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