设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12996|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
  L4 R0 d1 T* ?9 W
6 Z# [: w8 m5 U. c# q. w) |begin P_wait arriving% K8 i# F, B3 p$ n& y) B
  if this load type=L_a1 then6 h- C" Z4 R7 R
    wait to be ordered on OL_1- n5 v0 T) t$ V7 Y! Q' _
  if this load type=L_b1 then* P& ~  v5 x/ s
    wait to be ordered on OL_2
5 u' ]2 |1 Y, b  ?& R  send to P_assemble
  L  P, B9 L5 n. Hend
0 f8 {. x. d8 T5 A( U+ r
8 q: A% B- }7 `  ?" h9 R1 H8 s3 gbegin P_assemble arriving/ [. I. F/ m& N2 H& A% l7 i4 p% s
  order a load from OL_1 to die/ k: U* f8 J- M& m, \8 y' L' r. i
    in case order not filled backorder on OL_1  _8 G8 K# j; k8 p# a- x7 b
  order a load from OL_2 to continue
; B0 m  n6 H. k+ p# Y    in case order not filled backorder on OL_2
$ J1 V, f* v( O7 D& V9 \  set load type to L_product* @1 k6 b* L3 v' w8 _
  get R_massm
8 v0 I+ \7 j3 z" j* P. u2 Q* Z$ g; L  wait for normal 5,1 min
+ {) r( X/ e! |; {" l9 C7 d* p1 y  free R_massm
8 x# c3 H% T/ j9 k  move into Q_stock
* h% o' o! n. o% I8 O0 o( U0 H) Bend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-18 20:23 , Processed in 0.015627 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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