设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13820|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
7 i4 `! w9 v# w, k
4 G0 ?, v9 t$ f/ ]$ Ebegin P_wait arriving) I) N3 s% a, B
  if this load type=L_a1 then
0 u& b% h; ^* Y    wait to be ordered on OL_1
" p' ]1 y8 N/ z  if this load type=L_b1 then0 {/ n  I: r- b( S! S* G+ x
    wait to be ordered on OL_2
* x, D3 ~' k# b( ^" ?  send to P_assemble
2 U4 o( T4 x5 b# ~& c  p4 |: M) kend
5 d; z% I( x, M) U6 e' k
( q4 c0 P6 Y2 J4 b' r3 N8 _begin P_assemble arriving
  {; X+ a- Q; H' k; X" X' i# T2 p  order a load from OL_1 to die/ S1 @* `# J/ e: h3 R" Q+ s& Q1 M
    in case order not filled backorder on OL_1
& J, S  u" P" G! K4 N8 T8 s' u+ z  order a load from OL_2 to continue
. q2 M% ?/ P6 n4 f    in case order not filled backorder on OL_2: I, \! j1 v' P: b: \& l0 _9 Y
  set load type to L_product0 ]  c+ z& p* O2 A, t+ U
  get R_massm
1 E/ z! B  d- W) Q8 ~  \  wait for normal 5,1 min$ a: A, u6 M8 U* ~8 q
  free R_massm
% ]1 I: ~2 `3 B% f" |' R- a) Y  move into Q_stock
% Y+ Z$ M/ y2 t0 D  Hend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-10 01:19 , Processed in 0.014718 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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