设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12276|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。3 N# ?& @, ^7 \. ?
' m& i* W# R* H  v* R6 e+ M, H$ e0 {
begin P_wait arriving
7 E9 O1 ]$ ?9 u  if this load type=L_a1 then
/ D! b) j* {5 _& t    wait to be ordered on OL_1
' c3 k% I. j0 t4 K- ?' R3 Y  if this load type=L_b1 then2 s0 Y  j, f* a; Y2 E- j. `; f
    wait to be ordered on OL_2+ |( |6 X( H" F, {) B8 G
  send to P_assemble
7 m' \6 i3 M/ |. K+ k# j8 Z. |end
1 N5 U8 [( {5 Y7 W" G: V+ d9 {- a
! V) W  Z+ V' C' N/ Mbegin P_assemble arriving! r1 \# m/ I, f
  order a load from OL_1 to die
) g7 }! x8 T# d; r9 ^/ y0 [4 w    in case order not filled backorder on OL_1
; u7 O' \. t9 C  order a load from OL_2 to continue- ?5 ~; B, N9 ?/ R# N2 C
    in case order not filled backorder on OL_2
3 s$ y6 \$ }7 b! g1 O* K  Y  set load type to L_product. z- h% l* n% }5 M1 U/ t2 i
  get R_massm
' h4 }; S) h) p) I+ w" j8 t/ H  wait for normal 5,1 min
+ `" z8 @" `& L) c* o- y, I  free R_massm% g. k2 _3 [1 r3 ]- a5 e  ]
  move into Q_stock
3 X, n% l" }4 C+ Y! Aend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-19 14:53 , Processed in 3.241792 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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