设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13699|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
% b. O% F6 ^* e. E
8 ]+ D- \/ M! a: V+ E0 Rbegin P_wait arriving  R) i7 G0 V* n5 z  K5 \
  if this load type=L_a1 then
5 E: H* |( R$ A" {. O% u2 ]# r    wait to be ordered on OL_1
; J: m% W( V+ w  if this load type=L_b1 then
! Q& k/ Y# A8 S1 i    wait to be ordered on OL_27 e, a3 I" z9 ?7 b/ O+ g) p
  send to P_assemble. D' w3 _  z2 ^7 v. b
end
- M8 Q/ W0 |: R: e
6 ^) C- D0 {6 Ybegin P_assemble arriving) T$ d" p8 ]: Y7 U0 N$ a/ ?$ h9 F# t9 J
  order a load from OL_1 to die
4 [9 E# w* E. }6 w1 t9 F$ h5 d& R    in case order not filled backorder on OL_1
; ]0 U, V* F7 H8 P% q- S  order a load from OL_2 to continue
5 K; R1 U; ~; c    in case order not filled backorder on OL_2
, C5 D! R8 Q, k4 J' o7 c/ s  set load type to L_product
+ ?/ `/ ]8 O; T' R; y! m! [  get R_massm( Z5 G/ V: `( X" x5 S+ G1 p4 D
  wait for normal 5,1 min% g% M& u+ \5 P+ I9 X( Z
  free R_massm
: o, |3 [: T/ z1 U" E- _  move into Q_stock
1 Y' K$ w. x2 d5 w) s. e0 i5 J/ [3 {" Gend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-22 21:49 , Processed in 0.012582 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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