设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7708|回复: 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'
( r1 R$ \' A* c- }% r$ ~4 [*/! C$ X% m- m9 M6 g
is
; j2 S: d# C: v$ }5 Y3 v, R/ q        part, GlobalDistObj, assignLObj:object;row,Lan:integer;/ e) ~3 @" {- l6 e( t: r
do( }- Z" [0 a* Z0 ]) v* ~$ E
        Lan := rootfolder.Internal.Tools.AOLlanguage;3 P8 d, B2 O( h- ^: F
        if current = @.Destination -- else return2 M! n3 W$ [7 C# X
        then* Y( b7 [: N, T5 h  W
                @.Destination := void;! L; b2 ~8 ^- C3 W7 h
                if @.occupied then
4 _$ ~0 Z; r- C& v& i* W/ g$ X) t                        part := @.cont;
( }" }+ s9 R6 x$ a8 ]* g: w                        @.transpOrder := void;& F/ Y& ]8 Y: d6 q( ^1 S5 Z/ f) r
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,' g% b( `& H+ [9 Q* Y' a
                                @,root.eventcontroller.simTime);5 h3 B  @6 ^6 a# j4 U' W
                        @.HasOrder := false;
) O  c& f9 {! E7 \1 W                        @.DrivingHome := true;
! Z. R& Y9 \4 I                        rgManager.tryToStartTransOrder;
8 E) F  o! J3 O) r                        if @.Destination = void
, o. i4 e0 l' m0 b0 e                        then -- no transport order for vehicle @
3 x2 ^: ]( b* p" z& _                                @.Destination :=
$ f9 X  `7 w1 O0 Z! b' F2 `) ^                                rgManager.nearestFreeStation(@,track.~);) \' [$ R7 |1 q/ V" T
                                newDirection(@);   
7 f$ [  F: N) ^0 l$ c+ V- Y                                if @.Destination /= void then. S3 t" `0 m* J- V
                                        @.Destination.NumReservation :=( e6 N% b, Z1 i
                                        @.Destination.NumReservation + 1;7 f0 S4 R, C. l5 q4 A& z/ l
                                end;
1 d2 t2 k, r& h                                @.CurrIcon := "drivingHome";& `/ G0 n0 @" T0 I: D4 I
                                @.DrivingHome := true;/ a' M( ?" y5 q( W  i
                        end;
% I( f' c0 h" S3 j                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
: W; P- T0 c& j8 i7 j                        part := @.transpOrder;3 L: M0 N8 O0 m3 t
                        part.move(@);-- load part
7 p: T- r0 p4 R' H$ {                        @.CurrIcon := "load";! }1 @. C% X7 ~
                        GlobalDistObj := part.globDestination;) B& @7 a& `1 ^( d
                        assignLObj := rgmanager.rgAssignL;
6 f, k9 z1 w! F' N! v, Q' N. ^                        row := assignLObj.getRowNo(GlobalDistObj);
6 x0 f+ c2 @: y3 k' R" P+ c                        if Row = -1 then -- since 70
7 L2 n( a6 X  h3 n: `- u! _                                if lan=1 then5 M* ?8 p+ d* m5 I. o1 f5 P
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),6 g3 I7 T, o: u; a
                                                to_str("in der Andockstation: \"",?.~.name,"\""));2 o, c; N8 P( K5 {
                                else; q3 w4 {! P! Z. |8 N
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
5 l  f, @0 {0 ~! F- X+ ~                                                to_str("in docking station: \"",?.~.name,"\""));                               
5 l0 K: j: U% {0 j/ F( }/ {) X& ?                                end;5 D+ y2 k0 w3 T; y1 F
                        else* s/ ~" A: ?$ s, A9 T% ?- g3 }% D* H
                                @.Destination := assignLObj[1,row];
4 R& f- S; Q8 q4 M5 ^; F                        end;                          n+ V8 C: S" D* {/ w
                        newDirection(@);
& k$ c' d  T. k9 r                        @.HasOrder := true;
/ J/ }3 Q5 B/ [& w* M" O                end;
  z1 B6 g) R8 J3 t: v& o        end;
, W* }2 N' L) G. k, V; aend;        -- of the method
! C( @. ~5 s/ O& u# l
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 8 C8 R% V6 f+ a
5 }+ b& `' v' N2 d
这是AGV_putin中arrive的method。
' B0 N( C# W( d4 h
; t& B1 Z2 m$ D5 d+ h2 ^当到达物料速度越高时,这个报警更多,3 M- \5 q# m3 A
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
2 O& m* Y8 B$ l程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
% \9 O6 h2 ?/ o3 o; f5 j
$ z0 ~9 w# z/ j6 C' a另外一个小建议,就是move,所有的move都可以这样& }! F" ^+ ]( D) J9 u0 H6 V* e( p
if not move() then debug end) O2 B- O# l7 t8 g
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。; |' G. s9 t' a7 v5 {8 D0 n( \: q
plant simulation中的free libraries有AGV模板,
& Z1 k  d* v) I3 J3 {里面也有案例。+ W# N( ^9 I. Z, v7 J5 _
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
& g9 m. j6 `8 Y7 r+ o0 B$ g2 L3 c/ E" T2 L8 w& H
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 , [$ H  X$ y: F; a" I

( c- |  F4 C2 p) P& x那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
9 z) c; F' C$ k! f3 C7 F这是AGV_putin中arrive的method。# u$ [# M% A' ^  F& X

- B) T% F" u# b- [& {当到达物料速度越高时,这个报警更多,
/ n2 I" O7 F- r& V  l5 [8 B: R
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-25 13:34 , Processed in 0.020068 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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