设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13554|回复: 1

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

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

6 ]8 q/ X+ X2 h6 k9 hbegin P_wait arriving! D1 h+ z9 @, \" ]% i1 X0 A
  if this load type=L_a1 then+ v- \" v- D, Y. C4 @
    wait to be ordered on OL_12 W3 g/ x' f+ |
  if this load type=L_b1 then
2 D% ]' r( c( b$ o( T  ]2 Z9 Q3 H    wait to be ordered on OL_25 V3 W! |! V1 `6 Y
  send to P_assemble* F- T  k# {; i& U' L: S  {. L
end
. T6 t- D, q) Y. O
1 |% B: b, y, f0 W; `) F  Fbegin P_assemble arriving5 C! V. N8 }0 J
  order a load from OL_1 to die) H$ X7 H' e( t  @0 ^5 S7 U
    in case order not filled backorder on OL_1
+ W  t1 v/ x) [4 G9 `- J; u  order a load from OL_2 to continue2 A4 A! Z& F/ i! O
    in case order not filled backorder on OL_2" ~5 \6 v9 a' H3 r, ?/ B+ [
  set load type to L_product
% H" e: R; b. J* ~: f  get R_massm- W  r; m4 N9 H, ?/ I
  wait for normal 5,1 min  F1 y$ w' Z0 k& r1 v8 Y7 r& R$ }6 l) `
  free R_massm# V& L" S: n" ]- X7 a, M
  move into Q_stock
5 b( Q- T+ \" M5 a& W8 wend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-30 05:18 , Processed in 0.014089 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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