设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14288|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。/ |$ M5 B8 |/ J$ e) p0 k
) j) }" ?" C  C3 F" A3 i
begin P_wait arriving* D/ i; q: Y" @/ I1 x
  if this load type=L_a1 then! f6 `" N$ j0 _% X' X9 I+ q/ V6 @
    wait to be ordered on OL_1
, j: |1 I! ?5 T& P) w$ T  if this load type=L_b1 then( D* j2 M& X' M
    wait to be ordered on OL_2
7 g. F4 V$ K7 N% m, {0 x# H) ~  send to P_assemble8 [7 s' f) i. h! Y( L$ a
end7 ?: [' W0 ]* d4 V- I

$ h* Z  o" j1 H" qbegin P_assemble arriving
8 B2 V5 i% l5 n. V0 W  order a load from OL_1 to die
5 Q6 x$ W7 e- `9 n6 q    in case order not filled backorder on OL_1
# \, x% k1 Z3 u# m  order a load from OL_2 to continue# o, I# b+ A( [/ J( v# {
    in case order not filled backorder on OL_28 l6 a6 X: G$ _
  set load type to L_product0 U6 W) [7 ]8 a- Q, f7 g
  get R_massm) r- ^2 Z) A8 O
  wait for normal 5,1 min4 s; b# y+ c0 ]- A9 z2 P$ E
  free R_massm' ^. Q4 Z: y1 Z6 T9 o+ S4 D
  move into Q_stock. g  A( c$ G; U. Q3 ^9 I
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-5 07:51 , Processed in 0.015643 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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