设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 10298|回复: 1

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

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

% Y' _0 S' C" F: B; b# g% Dbegin P_wait arriving9 o& D4 O; u! ^' [
  if this load type=L_a1 then5 x4 Q/ \& P, V
    wait to be ordered on OL_1
8 q2 H2 P; Q4 t2 J7 a/ T1 `# ?4 @; c  if this load type=L_b1 then
5 p0 U* x7 @8 u% m2 m7 `4 M* o    wait to be ordered on OL_2
: u+ T* C7 f4 Y) \  I: Y) ]  send to P_assemble
+ I6 e& }  P0 @4 B* O/ G4 ]end
; b/ }- `7 U2 G+ S
# t; \3 j. A& ~7 m  V* v+ ibegin P_assemble arriving. K7 v+ z( A. S, F& D) B
  order a load from OL_1 to die2 _; \# p6 N9 X
    in case order not filled backorder on OL_1
2 M$ v" C5 h. S+ M  W( T4 C  order a load from OL_2 to continue/ m2 w0 R3 W" t7 a  ^0 g
    in case order not filled backorder on OL_2
5 U5 e& C4 h. Y& w- ]  set load type to L_product* Z' x3 A" I- k9 r* T
  get R_massm
- t4 R  O, h" w6 N, q/ M( y  wait for normal 5,1 min  x8 N0 M% i% s- V! O6 H% u! U9 P, Q
  free R_massm( L0 T, n; ]& O- F" Q1 v
  move into Q_stock
! I5 E% M* m" @end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-7-6 22:31 , Processed in 0.013010 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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