设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12229|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
9 d6 U% w" j) }4 ?
/ g0 C0 r1 |+ b( `begin P_wait arriving( G3 K! f; D8 Z% Y
  if this load type=L_a1 then
+ u- L4 y) g0 e4 T( E% Q    wait to be ordered on OL_1
1 c; r' g1 U$ y8 ^6 k% L. L  if this load type=L_b1 then
7 ~5 p9 |6 w- D4 n8 s    wait to be ordered on OL_2
6 ~% L5 p# `0 d9 o: p4 L  send to P_assemble
" }3 h; B3 G$ ~, J1 dend' h( G0 y4 k+ M: W- i. @

6 g" z& m. n/ P4 s+ r6 Rbegin P_assemble arriving8 w" w5 d  Q+ W- C+ f5 e
  order a load from OL_1 to die1 {4 ?7 r, I, g2 y0 k) R* z
    in case order not filled backorder on OL_1$ |+ y' _: F7 i2 i# W
  order a load from OL_2 to continue. J9 m8 I8 {# g  q$ s
    in case order not filled backorder on OL_2
& x( ]( ], R$ y  set load type to L_product
, v/ v3 l: w/ S) Z4 {  get R_massm& g: \8 o5 m. n0 l( |1 U
  wait for normal 5,1 min- Y" N" y) @4 r1 n+ w9 _
  free R_massm
% l3 x4 Z% E6 n. }3 n1 ]& z  move into Q_stock
" X7 b6 Y+ f8 W0 U' F$ z& xend
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-15 10:09 , Processed in 0.019279 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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