设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 10390|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
/ ]. H% T1 K8 v. W
9 m! d, U  t- C- {; Wbegin P_wait arriving4 Y$ B/ |% [$ e. e& l" D
  if this load type=L_a1 then
$ r1 Z) R6 w, I3 Q% Q- c9 ]    wait to be ordered on OL_1  V- Z+ j/ c" Y; c9 r$ B' D, [
  if this load type=L_b1 then% z0 z5 p, R, T4 C
    wait to be ordered on OL_26 p# i8 n$ F5 s5 e7 P2 e
  send to P_assemble* b$ v2 Y* B9 I( Y# \
end
$ L( n' q: R7 C
1 G. `8 [+ E5 Y( f6 \2 z2 l8 _begin P_assemble arriving
3 V/ q2 @, m4 r( h. E7 J  order a load from OL_1 to die
) Y% r5 M) {6 ]1 T( W    in case order not filled backorder on OL_1% g5 o1 i2 v, c( m5 X
  order a load from OL_2 to continue  W6 {8 n5 v# y8 L
    in case order not filled backorder on OL_2
$ G/ g: d9 q! S# U9 v3 V  set load type to L_product" \, S$ {% d) [7 s( y
  get R_massm) Y* ^* n" f) Q7 r5 T/ P
  wait for normal 5,1 min
2 J3 C. [/ f7 ]/ a2 L9 T  free R_massm2 N  ]3 l" R0 e. z; F. V* a+ S& ~
  move into Q_stock" m! {3 n5 W  ~% j4 T
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-7-16 04:06 , Processed in 0.015518 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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