设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13373|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。7 p+ x8 |3 @& T6 q' S
! j' V6 S8 A. }. O% o5 V: ]  \
begin P_wait arriving% a9 m2 h' M0 m9 T9 `
  if this load type=L_a1 then# C. p8 r# c* i( D& ~
    wait to be ordered on OL_1
# |* X8 Z2 a7 ~' C) ~( D; N! q  if this load type=L_b1 then) K. \5 k( R/ u6 Z# z  K- A3 G
    wait to be ordered on OL_21 ?* w! Z3 r5 s; }( u5 T  I
  send to P_assemble9 o- R" c) A3 A5 N
end
/ c% z2 W8 H5 q' x
+ Z. x& b! e* T- C8 Ebegin P_assemble arriving& P/ P8 Y% G; l# V$ A; n
  order a load from OL_1 to die
# s7 W2 j, z3 S" ~) Q. ?    in case order not filled backorder on OL_1
6 r2 T4 [& P8 c1 ^+ _; S0 c  order a load from OL_2 to continue
& X( f1 B: i- W6 j$ E    in case order not filled backorder on OL_2
% ^! U+ x, u/ u$ d; k' K  set load type to L_product1 g4 X6 X0 V4 e+ t4 a& g
  get R_massm
4 t. n/ i$ M7 J) j7 i& H  wait for normal 5,1 min- g9 q$ s& k, d5 x& b% U0 M6 d
  free R_massm( k2 ^9 ]' E" e  @( D8 @
  move into Q_stock  u/ W# |6 s: H+ N! l: ~2 l: y
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-29 16:53 , Processed in 0.014116 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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