设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12292|回复: 1

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

[复制链接]
发表于 2009-6-14 16:41:55 | 显示全部楼层 |阅读模式
22仿真币
现有二类产品,A和B,如何实现1个A和1个B组装成1个C?我用orderlist建了二个OL_1和OL_2,分别用于A和B的等待,到了下一个进程,要取用的时候,一个都取不出来,实在不知为什么了,请大侠帮忙。
% d8 r! A: Q9 m6 c
/ Y8 B" u6 b3 i+ H5 ]5 Kbegin P_wait arriving  r. l2 z5 Z$ h) L9 S# w8 K
  if this load type=L_a1 then
; D% [9 _& [8 E0 u$ S3 [    wait to be ordered on OL_1! V2 b- Z' ]1 [
  if this load type=L_b1 then* G8 u) K& G# O" t9 d: [8 R
    wait to be ordered on OL_2* G" p  M' L; u- H
  send to P_assemble
- D* A; V0 x- D% d* xend- e& q( U! V' k. Z' e. J) ]* h
2 b- N8 @" B8 {  {/ q) P
begin P_assemble arriving/ m8 U7 A. U; l; b0 g- L
  order a load from OL_1 to die
$ d6 B5 b) g8 c! p    in case order not filled backorder on OL_1
; C8 K1 t' M4 G8 z) m) c: K  order a load from OL_2 to continue2 y% y4 _/ b* H! \$ o
    in case order not filled backorder on OL_2
" W# Z4 H7 A9 E" C; s" {( w  set load type to L_product/ @) k  A3 t5 R7 i# C5 Z
  get R_massm
6 x) S  E% [  q. Q  wait for normal 5,1 min
1 Z0 r# R6 ]! J/ B6 t  free R_massm9 p" Z9 d  u, L
  move into Q_stock
3 ]8 ?7 N& L  a6 r' d- e/ I& k5 send
 楼主| 发表于 2009-6-15 12:22:08 | 显示全部楼层
已解决~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-20 19:54 , Processed in 0.015472 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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