设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14540|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。  z( t8 P6 M: o$ G
: M0 f! M/ z! l( V7 S
begin P_wait arriving, i8 F8 Z  u4 O9 Y; J; w3 K
  if this load type=L_a1 then
2 P) H8 l& c* ]6 g; O, F    wait to be ordered on OL_13 Z% c$ R7 h- h. R$ l
  if this load type=L_b1 then$ m4 ]6 Q$ A: w4 f! o
    wait to be ordered on OL_2
* M, T2 A  Y" x2 T- V! x7 A( z  send to P_assemble
% s( P. \9 {/ b6 r1 r1 Bend) f) c. V: y' [9 Y; @+ K
' h- ]6 S5 x8 W$ y! a, S7 J
begin P_assemble arriving
/ [0 y' n8 m" B6 S7 M9 R: \$ h/ P  order a load from OL_1 to die1 s/ \+ g8 }: l% }* q
    in case order not filled backorder on OL_17 p9 {* ~, M6 m  |* X1 v9 `
  order a load from OL_2 to continue6 W) t+ W& H8 H( F" _5 }& I1 C8 G
    in case order not filled backorder on OL_28 ?( W! T1 m5 v+ G
  set load type to L_product
6 D) c+ k& H4 u! P  get R_massm
2 z7 o. k4 g8 `9 S8 [! E  wait for normal 5,1 min- \! O9 s& z/ u3 G+ t
  free R_massm7 D9 Y4 b# D3 D1 o) L6 R3 Z$ t
  move into Q_stock$ V; e# |) e9 `1 |
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-5 10:18 , Processed in 0.017962 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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