设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14013|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。2 c  |6 E- X1 b/ |6 i1 M; R' _
0 f6 @7 ~1 e( Z$ U3 E2 P
begin P_wait arriving5 I" X4 A4 d+ T3 Z$ C0 O6 Y) P
  if this load type=L_a1 then
, e& H' `0 P) v    wait to be ordered on OL_1+ z' @1 @3 c% \" L& }
  if this load type=L_b1 then
0 U2 }$ k( ~5 G, S5 a    wait to be ordered on OL_2
, M" u$ t. n) n2 s  send to P_assemble$ o1 R1 u+ M& v. p4 Q" Y  @
end/ S7 ^, p, @+ D  T- M! z2 _

$ K+ l* h8 C- b9 I1 \begin P_assemble arriving
# _9 a, \; l5 t  O! c* G  order a load from OL_1 to die
: R  n2 H7 a; t& F# X$ F" ?4 ?7 K    in case order not filled backorder on OL_16 B+ f& Z5 _; j, p( Y1 `; Q" e
  order a load from OL_2 to continue
) J6 Y6 _/ A' b; ~4 r    in case order not filled backorder on OL_22 x, u$ y! T$ L: _1 ]
  set load type to L_product
1 s! t( _; C( Y9 j, Z* ~% O  get R_massm
' Q+ L# q) s5 \" H  wait for normal 5,1 min
# r& a( O2 b) S  free R_massm8 a# Q3 n4 Q8 o: c# v8 l
  move into Q_stock
- y8 `9 f! D6 ?$ i2 ]4 H9 Pend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-17 23:36 , Processed in 0.012272 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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