设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14143|回复: 1

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

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

# f5 `2 D/ \) w0 ?1 V+ hbegin P_wait arriving; _& L8 R9 J  n6 `& a; y
  if this load type=L_a1 then
2 ^& i0 w( F# s8 j: K6 F7 R1 P, f    wait to be ordered on OL_1  u, r+ [) A1 P( }4 l5 R
  if this load type=L_b1 then
$ F& g( J: Q7 U/ i' |    wait to be ordered on OL_2
/ c1 Z( C' J6 _& K2 R  send to P_assemble* U% E8 h. \9 Q' m" u; C6 Y
end
0 @( [4 U- ~5 R! m3 L' n
4 P) L/ H+ C1 {' ?8 Ubegin P_assemble arriving
9 N5 k, y7 W$ f7 f9 P' S  order a load from OL_1 to die
0 w; h5 T9 a) j6 _. w    in case order not filled backorder on OL_1* v* k5 W! U1 ?, \& p5 ?
  order a load from OL_2 to continue
! b/ g( E  s# g3 i! M2 J    in case order not filled backorder on OL_27 ]9 b5 r/ G# z( X! ?/ r
  set load type to L_product( U, i# A0 Y7 x, k6 f; E0 M9 |- O( I
  get R_massm7 C0 O* p, X  X6 C* n$ |
  wait for normal 5,1 min
1 Y) z7 u! Y2 c  free R_massm6 v. T- p) r+ O8 @5 {. {
  move into Q_stock
. i) W) U/ F, n' i: gend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-27 07:54 , Processed in 0.013160 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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