设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13804|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
0 ]* @& Y5 H) B8 y* l$ j' V7 _' t6 ]; a; f( |* {0 l! h5 ~
begin P_wait arriving6 l1 D1 ~$ u7 J' j' U
  if this load type=L_a1 then
- H3 _) Q+ @  y" d: H2 H- S+ }    wait to be ordered on OL_1
* @$ y% x, v6 D) |/ u0 e+ L1 F  if this load type=L_b1 then
6 r5 }: y* `' A7 i1 ?+ D9 B2 ?    wait to be ordered on OL_2/ o7 E/ Y4 N: U. E0 q
  send to P_assemble: D! \  t% s( r% }5 B$ S- n* d# R
end
3 p' ?4 w9 h- a: F8 c: |) U8 S9 p% m0 n: I  P! {
begin P_assemble arriving
9 J+ b( a* X' u; y7 ?4 _9 A  order a load from OL_1 to die0 c7 f5 A: q$ R/ R5 Z
    in case order not filled backorder on OL_1
! q* j# |5 c$ v* N) g0 y9 m0 v  order a load from OL_2 to continue1 l5 F- T7 J# E7 ~) w$ m* d  k( B& }: q
    in case order not filled backorder on OL_2
& q$ x3 t) V$ z! A5 e9 f. |  set load type to L_product1 p7 n, A' B) ?1 C( i* Z" n$ U
  get R_massm/ F( a4 s' x7 k( Y2 E4 }. P3 H+ q6 {
  wait for normal 5,1 min# B$ V$ n" w7 g+ \5 h
  free R_massm/ p/ A6 r' i# A9 q# T( M+ Q9 ]$ O
  move into Q_stock
0 r0 u& v- K# Z0 Hend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-8 19:28 , Processed in 0.015419 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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