设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 11732|回复: 1

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

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

. k$ g( V: u: z  R8 L& `begin P_wait arriving' Z7 m  ^/ n& g+ B
  if this load type=L_a1 then
2 z; J' e5 w5 r8 w; v0 U    wait to be ordered on OL_1
3 F% d( N  G9 p* e# @* d  if this load type=L_b1 then5 f, d' e  M6 P/ I; f
    wait to be ordered on OL_2
7 N4 w: m5 E7 C% x1 ]$ h  send to P_assemble& |% O9 [. u. t" e& l8 r% L
end0 V5 \* m1 N1 M- M; x, L5 @
4 {) w1 Y' O/ ^8 F5 i
begin P_assemble arriving: O# \0 R# T1 F5 a; t8 \
  order a load from OL_1 to die
# D$ Z9 I' \1 H8 y  g% q* D! x    in case order not filled backorder on OL_14 E! V/ b: f" w2 }+ i  Q4 z
  order a load from OL_2 to continue7 H; |! O' N- z' F+ f2 s" I
    in case order not filled backorder on OL_2
: y# t3 F* W8 }. r  set load type to L_product
9 e, O8 A8 j% z2 `* Z  get R_massm
# I0 z3 _- e; }5 u3 d, b9 w& Y  ]  wait for normal 5,1 min
& g) K0 l4 v' I; o  free R_massm6 d' X* {3 u9 p  w3 Y( v' M
  move into Q_stock
. ?- r4 y; c- Xend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-10-29 11:13 , Processed in 0.014182 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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