设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7958|回复: 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'
/ P- B5 L6 J0 T$ ~3 z1 r*/: m0 v% p: H0 A- W: \6 {- [! e) p, H* G. I
is
2 Z) G5 C: E4 G7 ^# z2 a$ x        part, GlobalDistObj, assignLObj:object;row,Lan:integer;2 Z7 X3 ?. ]# F8 [6 _
do1 g" B$ k. n1 h( O4 N; B0 z
        Lan := rootfolder.Internal.Tools.AOLlanguage;# F) J% b- H  ^/ n8 y
        if current = @.Destination -- else return- h: g5 P2 x( n  P! x! i, L* O
        then! V' v' ]; [/ P+ e! m
                @.Destination := void;
  l  g) Q, `; m4 ?& E                if @.occupied then! L/ Z+ w# U( k! I0 Y- E
                        part := @.cont;
6 R4 l* `' C- ^1 g! e                        @.transpOrder := void;' S# U- q( E5 l- Y9 G5 y9 T5 a( n
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
2 e; C$ |9 C( y# Y8 Y, H, C                                @,root.eventcontroller.simTime);, D8 |' X: ?. B0 V/ M. ~
                        @.HasOrder := false;2 l0 a: p9 {. r" k3 _
                        @.DrivingHome := true;( \  i  S$ o' U# a% H. ]- Z
                        rgManager.tryToStartTransOrder;$ ~* @3 L' v; C8 R+ T0 [* ^7 o4 M
                        if @.Destination = void" N" i) M% m4 |- S6 T
                        then -- no transport order for vehicle @
; P0 e0 |7 v" O) t* M$ ?                                @.Destination :=% M" b; Q' |* ~. T4 D
                                rgManager.nearestFreeStation(@,track.~);: [& C9 H1 ?* d4 q1 @
                                newDirection(@);   ' T% m4 i" z& e' z
                                if @.Destination /= void then$ g+ P: F1 ?. r4 z
                                        @.Destination.NumReservation :=
5 v% s& m7 F! c( J% X* t7 k5 C                                        @.Destination.NumReservation + 1;, b! a3 `0 H3 u" Y6 p! ^9 {
                                end;8 L& l7 I+ o/ a
                                @.CurrIcon := "drivingHome";
- K- e0 @- X6 V$ s5 R; k( T                                @.DrivingHome := true;
- Q1 o6 C+ E6 _/ }  U                        end;
  r3 A* Z" X7 d3 a/ k                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
$ ^7 S$ `2 }- X) ^9 Z6 h& V( h                        part := @.transpOrder;
3 f' ?+ L( X' e                        part.move(@);-- load part
5 }( ?2 E( c; o% r                        @.CurrIcon := "load";
( N. s9 x2 X% Y! T% }3 _; f                        GlobalDistObj := part.globDestination;% J" d4 F" \! i" i
                        assignLObj := rgmanager.rgAssignL;
6 A# I6 \, I" S  F4 r/ O5 Y                        row := assignLObj.getRowNo(GlobalDistObj);+ q+ ]- i/ b8 d; J6 y3 S
                        if Row = -1 then -- since 70* ^% k+ r* h) t4 P: s; c
                                if lan=1 then
6 ]. o% ]6 T7 i: [  x# i' H                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),$ B# y& N0 J0 v  Y$ [# I! l
                                                to_str("in der Andockstation: \"",?.~.name,"\""));$ X% L! T! V( n$ {  I/ a; P+ x
                                else, a: p  |; c; i( u9 _
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),. \! l, S1 s$ _  j' `. i
                                                to_str("in docking station: \"",?.~.name,"\""));                                4 l$ m& f: I9 Z" D$ [
                                end;, u7 N; r" {+ B
                        else$ l  b' b; @* y) I, R1 M( m
                                @.Destination := assignLObj[1,row];
2 k" ~" t, E$ a1 Q5 X0 g                        end;                       
& E! ]" ?. g3 l' ]                        newDirection(@);
9 G/ S2 V8 w! W( v) X, e                        @.HasOrder := true;
* r  F& D: H; U) y  q: y1 L                end;
+ |; U" T- R# `5 }; e* M        end;3 z, s* P' r  Q- c5 p
end;        -- of the method
9 Q4 {0 Z% t3 m% N; C' o' V
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 6 E5 o6 b8 H" }) [- K

8 M* r, Q2 ~/ c/ K这是AGV_putin中arrive的method。& e& p7 R5 B& H3 t0 ~

  N4 K( G! F8 U- t当到达物料速度越高时,这个报警更多,
5 S' o4 G: X) K. S; o7 j" z8 U5 n$ {可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
1 D% A/ j! N8 C. Y3 ?' W: u5 ~程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
! G" `+ y7 g# s! Z: ?2 V3 U0 e* ~! P6 X# e
另外一个小建议,就是move,所有的move都可以这样
( K4 o9 l; Z. b2 H5 v  D/ xif not move() then debug end' T6 E2 y5 x- w
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。3 b2 X3 S, u( B7 g6 |
plant simulation中的free libraries有AGV模板,
1 o  E' `5 U/ a里面也有案例。2 a1 {( k, T" U
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
2 f# s) P& g) A& f5 j) r! W& D5 e
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
. e6 `4 W' r% W
, }* X, A# I, E$ t) ]" K$ m! y那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 $ ?4 O5 f0 G- n" f0 o5 a1 O' j
这是AGV_putin中arrive的method。
1 h7 i7 h0 X( e1 O; m. J) o% I2 N, `/ E% z
当到达物料速度越高时,这个报警更多,
0 R/ O( I( j0 o+ h+ ]2 X
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-7 16:22 , Processed in 0.015552 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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