设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14309|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。( U  f. i8 H: H( n$ h
2 f6 r  H3 p/ j$ \, N1 J" N
begin P_wait arriving
9 U5 \- D% ^+ H  [4 R8 t  if this load type=L_a1 then" Q; ?, H9 T. ]# O+ v1 A' a9 `
    wait to be ordered on OL_1" g* g9 T$ f3 Q, D, S
  if this load type=L_b1 then
3 ?6 Z: @! v. `5 n! \/ e3 k    wait to be ordered on OL_2
; y) D! n0 y  \  h! Q, r& a  send to P_assemble+ x8 H& W9 B$ ]% |
end1 [9 ?" Z* S. |$ i# f) i

4 v/ T+ {2 R! |2 e$ dbegin P_assemble arriving5 W4 s) Z( v% ?( u$ \: z5 o1 ]$ e  l
  order a load from OL_1 to die+ M% D2 t- x; A* l
    in case order not filled backorder on OL_1
; E, Z+ S; Z! q: J# I+ r  order a load from OL_2 to continue0 L; F2 y1 l" p/ q0 g9 x
    in case order not filled backorder on OL_2
( W' q" C  g: X6 ]3 U  ]+ Y2 U, _  set load type to L_product
8 P  Y4 |' o! g& J7 K+ \) P  get R_massm  j% Y. Y$ C' ?) J
  wait for normal 5,1 min
9 l& I6 ^5 W& T/ e7 |! Y& F: E  q: u  free R_massm
. n, D/ P- c8 ~) m9 W. x8 {. Q) a: S  move into Q_stock9 D0 f  }. D$ w, q8 E) z9 n9 e/ x
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-6 23:27 , Processed in 0.012007 second(s), 12 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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