设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 11108|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
1 L* R3 m1 G5 q7 |
% B. E6 W# V2 Z) `( Obegin P_wait arriving) D8 T4 B1 @) p  t+ Z
  if this load type=L_a1 then% \6 C: d: @- K) W9 p2 P2 m
    wait to be ordered on OL_1  l3 l: s  ?1 Q4 V9 L* X5 L
  if this load type=L_b1 then
4 G0 d0 O  R6 z; q/ [2 ^' T! Z    wait to be ordered on OL_2* `/ h2 a( a/ L* x) k4 ]+ j
  send to P_assemble
& b0 ?/ ^( L0 ^9 H. h$ _end
: C5 d- J5 _; ]4 s' H
1 n2 G% Y- m( `, A0 X( Hbegin P_assemble arriving$ e/ O0 I' S- C. s, p
  order a load from OL_1 to die% v# {4 G2 V' T- R/ B
    in case order not filled backorder on OL_1* }+ d6 d) Y, H5 P4 v
  order a load from OL_2 to continue
: U2 o# c3 h# ?* O: D. n    in case order not filled backorder on OL_2( {. b6 w, t8 r9 G0 f$ m
  set load type to L_product
/ f4 ^$ J* I* `% s5 k* i: y: x  get R_massm
+ g' d' n* @8 q8 f  wait for normal 5,1 min' Y/ t! Y2 C4 K/ {
  free R_massm
  ~2 ~: C) s# |& w8 T) Q7 M% J3 @  move into Q_stock3 H% d0 G9 X) ~: C  ~
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-9-14 05:11 , Processed in 0.016320 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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