设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9815|回复: 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'
1 d! T4 K& N0 d*/5 b  H' v0 o0 |1 i
is& c5 O& h6 F& f+ _( r; R  Z+ h
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
; L# r% a3 }; ]: Q* x' p  D; B# udo/ I4 u, ]3 V' z6 U7 V  y7 Q
        Lan := rootfolder.Internal.Tools.AOLlanguage;% |/ }4 M7 `2 X6 T
        if current = @.Destination -- else return
! w- x! P- h6 b0 c8 I" I        then  _( Y/ M1 W2 h
                @.Destination := void;& P$ A& e# N+ [
                if @.occupied then
6 }2 C1 W, s1 C5 G+ s: w; J                        part := @.cont;
' \! a4 M9 D6 d: [                        @.transpOrder := void;
7 N( F; `5 P0 F, t9 T  e8 t                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
( s. z; G+ J. g* Y" k6 c                                @,root.eventcontroller.simTime);  N; ^% ^( {9 C' r
                        @.HasOrder := false;
- Z% r+ \" f0 @, _. j3 O                        @.DrivingHome := true;  C" G; f7 p/ G, r
                        rgManager.tryToStartTransOrder;+ j) \8 `# M1 u1 ?' f1 c% h; g0 T
                        if @.Destination = void
( K3 |3 N5 e1 @                        then -- no transport order for vehicle @
1 h3 X- H/ G( `: F) V                                @.Destination :=
9 I. v7 A# R7 w' U. z; r/ O/ K                                rgManager.nearestFreeStation(@,track.~);7 J& G* o8 U7 u) N
                                newDirection(@);   " Q, B. q0 m+ k3 q: k  s* h
                                if @.Destination /= void then; t! ~. w! P( x- H$ a7 m- B9 o
                                        @.Destination.NumReservation :=/ V, l$ F" w  X8 X% j! m
                                        @.Destination.NumReservation + 1;. J/ t, T- ?9 k! T* `: ?% u9 I7 o* u' M
                                end;
8 m. g. ]* c. K" G" T! q                                @.CurrIcon := "drivingHome";* l) }/ f! [2 Y
                                @.DrivingHome := true;
! n8 a/ C# Z8 H7 ]" r  Y                        end;3 @- h# D& L8 m+ A3 D
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
* `. ~( H" {6 t* n- n                        part := @.transpOrder;
# ^8 T0 J. O  c                        part.move(@);-- load part
: x0 l5 g* v; J! H+ d) y9 S                        @.CurrIcon := "load";. o' I& o8 t6 R) q
                        GlobalDistObj := part.globDestination;
2 `% r5 ?2 `4 l# i                        assignLObj := rgmanager.rgAssignL;" ~- P6 S* o0 Q: c% \7 P/ s
                        row := assignLObj.getRowNo(GlobalDistObj);
: \" e% S/ [6 l                        if Row = -1 then -- since 70
: G( E  `  N! G6 @% _                                if lan=1 then5 L7 M7 z+ m2 G
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),0 z  t3 y4 D  [* e3 u
                                                to_str("in der Andockstation: \"",?.~.name,"\""));/ s3 n- ?$ c% b. c6 R
                                else  ]/ P! [! q: `0 A' |
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),' ~* c# i% N. S8 }( M- \4 i
                                                to_str("in docking station: \"",?.~.name,"\""));                               
: t. j  o3 c) b) s                                end;9 t' i# G6 d+ d8 M& F
                        else
6 A% _' I- R/ \                                @.Destination := assignLObj[1,row];9 I* N. Q2 s; b$ @% Q
                        end;                       
& f- r: @( t+ I. K: N/ B+ h                        newDirection(@);- a' ^! Y0 i9 Q- H
                        @.HasOrder := true;
% V# o+ j! I7 f$ `                end;7 |/ z* [- [2 A# L, e
        end;  _7 I+ i# ?' b8 S
end;        -- of the method
/ j+ s" n' `. E7 `. s# ?  r8 l% B
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
6 f/ s/ b8 x" N' t2 z+ _5 l- W  f* J" i
这是AGV_putin中arrive的method。( R8 V/ ^5 |, N* |! z

1 ]9 J" _  i# s, Q$ _: z3 Y当到达物料速度越高时,这个报警更多,/ k" E+ M* }$ S
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
, _- _/ {* L( V6 ?3 F7 ?. K7 s3 H程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
, L. {0 r4 a2 }; }
/ }! g  k, f, d6 b' z  J另外一个小建议,就是move,所有的move都可以这样
( \/ I3 Q$ s8 z% E6 b/ Q* vif not move() then debug end
/ t" G% N% R, g( R. @% o' Y5 ^这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。$ ~+ J' w' y8 f. K
plant simulation中的free libraries有AGV模板,
& s1 i, t1 a2 _4 Z里面也有案例。* N, e" H1 C; N& y( z
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。& W% {! P! A. p4 t

+ `* p& m1 j5 a. v我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
; i9 Q, _' o1 l4 s5 t* Q- _6 o
  Q' @- h( V" x& M+ G0 X( e) R那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
) i: K  T( X6 [( s2 e这是AGV_putin中arrive的method。
4 {1 I' }: u) t$ x6 Z( ]8 z* K& O4 J5 s) r3 |
当到达物料速度越高时,这个报警更多,
+ b! o& d8 s; t4 _
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-27 03:47 , Processed in 0.022709 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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