设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12517|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
, @- g! o; @2 ~+ z6 S5 f7 j
: s" K: E1 M5 m6 {# s  L1 F8 xbegin P_wait arriving$ Z" B/ i/ J( B- v
  if this load type=L_a1 then8 |# c+ q4 b1 T5 ^. M: B5 N9 u
    wait to be ordered on OL_1
& _3 A3 o  l2 [, Y& G  if this load type=L_b1 then- A- T( N1 Z1 @2 ^& ]
    wait to be ordered on OL_2. x; H" J* Y! c
  send to P_assemble3 A0 }' N7 C+ I" X' T
end* E9 M, M  [; a6 `# t, ~0 Z

9 n# W% n. Y2 t7 l$ Dbegin P_assemble arriving1 z) \/ T9 W, ?+ _
  order a load from OL_1 to die
$ ^! C# a9 L7 T3 T( N6 |7 B    in case order not filled backorder on OL_1
) A3 `9 r9 a# f7 H. Z3 j  order a load from OL_2 to continue
; x' O2 E. U! q    in case order not filled backorder on OL_2
3 i* n2 Y) Q) `0 K- L  set load type to L_product( n8 e$ M$ Q" N6 e: N+ Z
  get R_massm
$ f! v$ E8 K6 c; W4 R  wait for normal 5,1 min4 e; v2 S2 E: ^/ l3 l
  free R_massm, m7 `& b0 }. o% ~8 F. k
  move into Q_stock: Z% D* _& b( y& a  R
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-1-18 14:17 , Processed in 0.015764 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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