设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5832|回复: 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'
/ o9 u' Z4 H5 Q, t& e- f4 ]*/5 B& N0 j- c/ x* N/ T
is
/ V7 W" X6 a4 N+ M1 A8 ]* R5 L        part, GlobalDistObj, assignLObj:object;row,Lan:integer;! t4 X$ e1 U% B, k9 H/ A
do
7 a2 q; {1 H# g        Lan := rootfolder.Internal.Tools.AOLlanguage;' E4 }% {, O) Y1 E! o* [4 r' ?* ]
        if current = @.Destination -- else return
) _! H* d( ^! m8 T  o        then0 V) Z; W. e: h8 ?% H
                @.Destination := void;
# s5 j' V+ P. E2 n  _/ i% C                if @.occupied then3 g1 P7 g6 L* E# Q4 g( _( `4 ]
                        part := @.cont;1 U2 b3 w* M, C  m
                        @.transpOrder := void;4 O, v" f3 Q' }# b$ e! E" B! N  ^
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
+ x/ u* I# e, S4 a$ a                                @,root.eventcontroller.simTime);
' _% Y6 x  \5 V( U                        @.HasOrder := false;/ j! T5 N+ W6 T
                        @.DrivingHome := true;! ?& N/ S2 ^1 j. \* u6 h
                        rgManager.tryToStartTransOrder;2 }" a0 `; j5 W/ `3 A$ e5 r
                        if @.Destination = void
$ t5 R- Q" z! N                        then -- no transport order for vehicle @
1 f; n8 l' G+ n7 Y( L; m                                @.Destination :=
" V' x: b( ~7 ~9 u/ x! e                                rgManager.nearestFreeStation(@,track.~);
" ~: s" t8 Q# Q  h4 _3 P3 S                                newDirection(@);   6 t* S7 U# c6 c. ^1 H/ T
                                if @.Destination /= void then
, l4 I. X, q$ b' _  l                                        @.Destination.NumReservation :=
  @( _& w% p7 L6 t+ C                                        @.Destination.NumReservation + 1;
5 }5 C+ X) e2 J                                end;
; p' M( P+ o1 Y" G. B' J                                @.CurrIcon := "drivingHome";- M& ~/ z$ U3 @2 c
                                @.DrivingHome := true;$ E) y) \" j: e! k! G, o+ S
                        end;
3 t! l1 g; a% Q& l! X, ]/ B                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
' `  x' [8 s3 @+ @; B                        part := @.transpOrder;
4 h6 q2 L% m) q- h- S                        part.move(@);-- load part
% w* U6 Q# l" ^" B' v1 r2 X                        @.CurrIcon := "load";
& m8 R" ~' N+ f                        GlobalDistObj := part.globDestination;
0 N; h- h. @1 c8 s                        assignLObj := rgmanager.rgAssignL;
2 G6 ~& [, b+ }/ J+ B( b                        row := assignLObj.getRowNo(GlobalDistObj);
' M% Y9 o3 n7 h- V! ~                        if Row = -1 then -- since 70
8 r3 C8 G" \: D! n$ b9 K                                if lan=1 then
% e4 Q- b0 g  B% P* C                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),0 K6 x5 N$ a$ S7 N" a$ _
                                                to_str("in der Andockstation: \"",?.~.name,"\""));; L; c' X" R2 I0 H& Q& w
                                else
- w: x7 Q5 u0 H. s0 ~7 a& q                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),; S$ Y9 {  R7 L
                                                to_str("in docking station: \"",?.~.name,"\""));                                8 g5 P& M, h. d: Y. `6 Y. u
                                end;$ @1 M$ ?" E* d) ?2 |0 i" v) H
                        else8 X4 m; Y) J* U4 _: T* s. ?
                                @.Destination := assignLObj[1,row];0 I8 w! O! v9 w# u% b# G6 z
                        end;                        - p0 \/ ?# T+ E/ l1 y3 B' F2 M
                        newDirection(@);
& ]" [# b$ \% y+ t/ s                        @.HasOrder := true;( ?0 ?6 J+ t' c7 J) H
                end;6 a+ ^; s+ \: `, y" k; o( C7 j9 F' @
        end;* I6 M. j, b" E. {% ?) s
end;        -- of the method
# {1 K/ b' b: K' u3 x5 q5 i, i
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 ) s8 Q+ _2 h4 v
- Z* O1 M6 b+ O! B2 O, Z$ A
这是AGV_putin中arrive的method。
( Y3 z- O$ [% y- w6 j
! _4 T4 F$ V( ?7 b+ _6 r) x当到达物料速度越高时,这个报警更多,% p0 t; @4 P) Z+ I5 e; n
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。4 I6 B- p% i& Q, o2 p
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?! P5 f/ Q' N/ t7 I8 y' H# G- Y. g
9 d+ a0 S( ]0 W# z
另外一个小建议,就是move,所有的move都可以这样
4 J6 m. G9 q) L. j' F1 H  @# Jif not move() then debug end
  M. ]8 x8 l; F3 z这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
8 N' A3 @2 a5 U" c" }plant simulation中的free libraries有AGV模板,; s# w" q4 u; T$ X% J9 ~
里面也有案例。
3 u9 T& C4 \# m# I4 ^- ]/ b; O我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
; F( M2 e: g( U! L; l. x/ `! z- G* U$ D1 k0 S7 \
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
7 F3 l% h; i9 w: |" b( e8 {+ h& p1 _* O) y: s/ U
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
5 |" p" K7 ?6 R6 [. b' z/ `# e# A这是AGV_putin中arrive的method。
0 Q# A$ e1 M; }" I+ X$ D" @8 g
5 e9 l: s$ x0 v7 o9 X# f: F- E# F当到达物料速度越高时,这个报警更多,
$ W7 I4 F8 K6 x6 c  \; n6 }7 j
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-25 04:16 , Processed in 0.017562 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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