设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6036|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
9 m" ~: T8 a: _! {6 f, r/ |
" u" c- U, J. R  P5 }, T& {begin P_wait arriving; `- {0 C5 K4 l/ ]; r# h
  if this load type=L_a1 then
4 F2 d* m( c9 C7 J/ t' r* F$ I    wait to be ordered on OL_1
( I9 H5 y0 w0 X/ R' o  if this load type=L_b1 then
* h8 P. d0 J0 C. I$ [    wait to be ordered on OL_2
; f( H/ y7 `* T6 D5 a  send to P_assemble
/ L& Q& m; E% z' `4 fend
4 V* v4 g& ?9 ?6 Y9 B7 f) q5 j. U1 L/ _- u( p2 I" E
begin P_assemble arriving
! Y$ d# M6 G" F8 {2 g1 t  order a load from OL_1 to die
7 D- b7 ~6 R2 ]& }  {( o7 I    in case order not filled backorder on OL_1) a1 Y) L4 q. q6 S$ B5 p
  order a load from OL_2 to continue, A' S$ [" D+ n
    in case order not filled backorder on OL_2) f- r" S/ w  h: _: C
  set load type to L_product8 z- w% w$ `  ~! U# U) i
  get R_massm
" c4 S( x( p) J$ F( t3 O  wait for normal 5,1 min
$ U0 G' D" O1 h  g1 Q" m  free R_massm
- I0 B% s2 ^, _+ V4 h$ V! z1 _. }: y  move into Q_stock
( z* B8 L, }. J1 V. r' dend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-6-8 01:03 , Processed in 0.010386 second(s), 12 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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