设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 10435|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
8 @& a! r8 Y3 G6 s: y1 E- [+ f& f# [$ t# {8 k4 `
begin P_wait arriving
2 L5 M, _5 S, F3 n8 B4 Y  if this load type=L_a1 then/ X9 O# R" f9 p% m/ W0 w8 P2 E
    wait to be ordered on OL_1, P2 ]+ M! D0 b- J* `
  if this load type=L_b1 then
9 c: o, H7 T- H    wait to be ordered on OL_2
, s6 M4 U! y' R) d) t4 F  send to P_assemble
" h9 `" Y2 I! B) e! S) Z$ T' X8 w# aend
  r! [) z' D2 I. c' `  x) l+ u/ H; E4 {. d
begin P_assemble arriving
# @+ H. [1 G( r/ E- r  order a load from OL_1 to die
+ s& S5 [# X7 s# e7 h    in case order not filled backorder on OL_1
  I/ u! ^' S3 c4 n+ F% G: A- t; ]1 N  order a load from OL_2 to continue/ \5 J9 \( |. d- n' E
    in case order not filled backorder on OL_2' r) H9 R2 G$ {
  set load type to L_product
, n; V9 {/ ^" O6 P1 I. Q  get R_massm
- p7 Q/ _, H) X  ~/ D$ N6 n  wait for normal 5,1 min$ Q9 Q. l4 j& F' {- l% S
  free R_massm9 O6 p# s2 s' e1 r$ G
  move into Q_stock$ Y) Q9 S# H: y6 T4 s# J) K9 b
end
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-7-19 08:39 , Processed in 0.011603 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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