设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8922|回复: 9

[求助] 用AGV模板发生了以下错误,请解!

  [复制链接]
发表于 2011-11-5 16:38:28 | 显示全部楼层 |阅读模式
问题在哪里?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2011-11-14 10:37:54 | 显示全部楼层
没有解决,再顶一下。
 楼主| 发表于 2011-11-17 11:03:27 | 显示全部楼层
/* called by:        entrance ctrl of the object 'track'
# f6 S  {7 l: p2 k6 q*/
" d7 e* s5 y' `" B8 Tis
6 s/ [% N* \; a0 Z        part, GlobalDistObj, assignLObj:object;row,Lan:integer;& Y8 ]9 ?) B) s3 Z
do0 a! W! F$ {, n/ U
        Lan := rootfolder.Internal.Tools.AOLlanguage;
7 u! S( h% h: I& J$ i        if current = @.Destination -- else return# |4 K* q6 r4 j. L1 a; E
        then
  y. v' J  o/ z% {/ x  L                @.Destination := void;
8 w7 j8 h( p" s- f                if @.occupied then
' x' s( }, _4 s# A" j& P                        part := @.cont;2 q- P* a4 s, \  |
                        @.transpOrder := void;+ W% n; `* P4 Q0 j7 O! z3 [
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1," K8 k8 [. S% f. i. X5 l- K. f
                                @,root.eventcontroller.simTime);
# Q% \6 a  Y$ B2 ]% e  `                        @.HasOrder := false;
+ s: p9 T4 e! M                        @.DrivingHome := true;
' v. ]! b" c0 A7 Y. G8 g: w                        rgManager.tryToStartTransOrder;
1 l8 S. C2 d1 x. t( Y  V                        if @.Destination = void
% W4 x. U# K7 ]" {. J* P7 j0 i                        then -- no transport order for vehicle @
- D- H1 B2 U1 P5 u. k                                @.Destination :=' z* q) P% H4 \# p) m2 U2 u
                                rgManager.nearestFreeStation(@,track.~);2 s! ]& i+ e) B2 i4 L
                                newDirection(@);   % E3 b1 U1 T: I& ]; S; l" j. E
                                if @.Destination /= void then8 y9 B3 }! R  q, r4 Z7 [
                                        @.Destination.NumReservation :=
. D% F+ n2 z  U. ~+ w                                        @.Destination.NumReservation + 1;
, B: l" X6 A0 c, Q. L- r/ P, t' y& J0 A                                end;
8 S3 b8 x) B% ^; |6 _$ e                                @.CurrIcon := "drivingHome";2 V: }% T! G4 _$ B9 y
                                @.DrivingHome := true;
* u: U; n1 S* i* o4 B6 _                        end;
3 {6 w+ e( q" s1 o6 ?                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
# o7 m1 v0 h# L  a                        part := @.transpOrder;
& e) x$ k9 V; u. M                        part.move(@);-- load part( R0 B7 F, ?/ {8 M2 q/ B
                        @.CurrIcon := "load";
8 E5 j. t: I2 \) B" d& o$ o' e$ U7 m% r                        GlobalDistObj := part.globDestination;- G3 W" j/ o" y" v
                        assignLObj := rgmanager.rgAssignL;
- {& V' v& M9 Y, V! J                        row := assignLObj.getRowNo(GlobalDistObj);
/ b' V7 Z, S& E. a& R2 D                        if Row = -1 then -- since 70  t" T) r  i$ @7 R* a+ i
                                if lan=1 then
% d$ g6 A( d6 X) y& g( k' n                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
. F! v( `; r6 W' D                                                to_str("in der Andockstation: \"",?.~.name,"\""));$ ?/ v8 l3 Y5 i( u) n
                                else  ~" P, t9 L, P; _- P$ `* O
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
; v! `6 T0 ~& c# D: j                                                to_str("in docking station: \"",?.~.name,"\""));                                3 U+ L; b8 e/ Q8 X3 a
                                end;
9 L) D2 h1 i) \. a6 f! D# X                        else
3 p8 Q7 h3 p$ u# F6 y* u; a; e                                @.Destination := assignLObj[1,row];) C% P+ Y! x- Z9 ?$ C6 [# n
                        end;                        4 B6 K2 W& z0 s* f. H5 x: ?
                        newDirection(@);
5 W- y* W( j9 E+ F6 n  j! p                        @.HasOrder := true;$ f5 E$ X+ N' @  T5 ]2 K) ?& @& n+ c
                end;6 e0 D* j( i* X! {; c/ W
        end;" R% J8 C2 @/ \2 B
end;        -- of the method/ t+ K9 V( M* u: N* K
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 + L1 G9 k0 |3 J% M  R

( W0 r3 `% i' o  C. A) G; e9 O这是AGV_putin中arrive的method。  X; n0 W" m3 b. ~7 l# e9 n3 L. _, a
- w: J, m3 w1 K; |/ x3 ?# I
当到达物料速度越高时,这个报警更多,
! }. u* b- v- W3 N" a' y* C可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
& g7 y" q, e/ F9 _5 Y/ D5 U程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?  m% Q1 b+ t% B' \9 c9 T/ G
7 i) ~' Z" ~5 z" d! t" f. ~6 x
另外一个小建议,就是move,所有的move都可以这样
: W0 m; ]. L! d# v! x3 hif not move() then debug end6 _7 a% u- \- T
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
* N0 m0 {/ C% ]) q% W- p$ splant simulation中的free libraries有AGV模板,
. r! g  A. g" E1 \+ @里面也有案例。: n6 [6 D% @- D- |. a. W
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
: I6 {2 r7 S3 ^8 Z/ Y
/ q' s. ?- [7 u" r4 O% j6 k我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 4 j! @7 a* J) C: J, t' ^
7 M( }1 x( P" t; J1 |* [/ j
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 9 |( U- r' A4 L0 L8 `* W7 y2 q/ D, V
这是AGV_putin中arrive的method。. h+ y: {- x* f# L! `7 {7 s6 R: }

. ~. v" B: G' |当到达物料速度越高时,这个报警更多,
( A4 s% y; b/ |3 f. f7 n* y
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-4 11:24 , Processed in 0.014871 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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