设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14594|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
2 J2 F. q/ Z) n( N- L% n: A3 s  E+ [5 B0 E$ S1 w
begin P_wait arriving  b0 a3 J7 \+ A" m% r; S
  if this load type=L_a1 then
! H. s2 R1 W$ l! z# |2 h3 M1 S    wait to be ordered on OL_1
9 g# x' [1 M3 ?8 d, \: {  if this load type=L_b1 then
1 [" G& ^$ F$ ]% J) J4 O; f    wait to be ordered on OL_2
% {; o. H& a$ k4 V& p2 x/ Y  send to P_assemble/ S0 }9 h# a) i! H
end
8 r  q1 E9 M! w' K
: }; J- G2 ^$ V+ C( x2 T* ibegin P_assemble arriving" A' X3 l$ s/ i) l0 a+ f: |, t/ ^& `( w! y
  order a load from OL_1 to die  ], f, |) y5 I1 y5 T1 f
    in case order not filled backorder on OL_1
! i2 Z. O2 e, b8 I8 B4 Y5 B7 J  order a load from OL_2 to continue
) v" i1 l0 J6 [2 ~1 p0 N3 L    in case order not filled backorder on OL_2& T6 R1 z, f6 P9 h1 p
  set load type to L_product
7 M0 F0 e) o: M+ k, X% b- z  get R_massm
% D! H+ H" W2 K  h  wait for normal 5,1 min
$ u! p# x# B' D; f" K2 Q, v: o  free R_massm( W+ d4 g$ @* Z+ y/ x
  move into Q_stock3 B, }; ?/ ~: K- h6 x# X) r$ K
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-10 12:55 , Processed in 0.020586 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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