设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14312|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
' B( h2 K" ~: E% o  j# z7 d5 l# S5 s
begin P_wait arriving
7 w9 J# g0 M: i5 N: [  if this load type=L_a1 then2 @* w: \. E) B$ f8 ^; M, ]
    wait to be ordered on OL_1* c; F1 V- l. B% q  l4 I) ~  K
  if this load type=L_b1 then
8 V1 J% {% T/ q) d0 [8 k    wait to be ordered on OL_2# x4 k5 R3 A9 [$ @
  send to P_assemble7 p, }! {) w& ]" f, n- \$ Z
end
$ s" l, S4 x4 y8 b3 ^0 J) L3 y+ a* w9 k) A) t9 I+ r+ U
begin P_assemble arriving( X* V' G2 Z% p# l' m1 w
  order a load from OL_1 to die
+ b/ r$ H! @7 n3 I4 A: h2 Z/ R    in case order not filled backorder on OL_1$ e0 ^. c) w6 f5 g, d6 f
  order a load from OL_2 to continue
; O; K# I! T; Z; x    in case order not filled backorder on OL_2# ^; _3 j+ b! U" f1 M7 \' Q( k
  set load type to L_product
: M' P: y) L2 u+ [4 F  get R_massm
2 w7 r% n! p# h7 K* [  wait for normal 5,1 min
% d, g4 P. d4 g$ W( S! z' u  a  free R_massm( d- I' v; _. Q
  move into Q_stock$ A! j( l* y( M: z
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-7 00:22 , Processed in 0.017567 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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