设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12227|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
2 `9 e% s( ], f3 I. X0 K1 O9 H  e0 {8 [: f: B' M
begin P_wait arriving0 \6 M$ d) Q' O: m9 e5 }
  if this load type=L_a1 then
( b$ m. I& Q: ]* S2 b0 w3 {    wait to be ordered on OL_1
( F/ N% X5 H1 x" y3 k3 q+ f  if this load type=L_b1 then3 F6 Q$ N  A0 d' D+ D; c
    wait to be ordered on OL_2
7 z$ c5 Z+ B: ]8 o3 G3 H, o  send to P_assemble+ A$ J1 a: |) h. d" F, N6 b8 C
end
8 `# O! C: |. d0 \9 g+ P( b% A' a# j) s1 \- `' r: a, Z6 |5 @
begin P_assemble arriving! Z+ H' W- G0 M( b" z: M# w. I* F1 X
  order a load from OL_1 to die
* R6 h% b0 P5 r8 z$ s; o    in case order not filled backorder on OL_1
5 K3 B. i  w) v+ \; O0 F4 m0 `4 F  order a load from OL_2 to continue
$ y/ f( r* P2 z' t4 v' @    in case order not filled backorder on OL_2
3 q7 k- F# j% w  a$ a( v  set load type to L_product
# Z  t, W& [. n) T6 H  c0 X' D1 m  get R_massm" @( _  I" j: W6 a5 J+ g
  wait for normal 5,1 min8 R# D( P  f# c2 `1 Q: N# S9 P
  free R_massm
) o1 a0 P& q$ [, w" k) r0 i) p  move into Q_stock
6 p- b: B/ l  }. Wend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-15 09:45 , Processed in 0.018870 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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