设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6859|回复: 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'! R) h' K: t4 }" ]! @2 A  g" o% ]; Z
*/1 b9 j/ P3 L) j5 U1 @
is
( a% ^" z3 V8 O8 L3 \        part, GlobalDistObj, assignLObj:object;row,Lan:integer;' A" X# c5 f9 {$ [1 P
do/ U( }2 o( h9 @- x) I- T/ E9 G" t
        Lan := rootfolder.Internal.Tools.AOLlanguage;3 n$ |5 O  [1 C+ ]6 I' j
        if current = @.Destination -- else return* r( h# {) }+ s
        then
" G: w% K9 \' z  p. @. V5 _                @.Destination := void;
6 a# ^9 X8 s3 j6 n                if @.occupied then  u( D* P! {% R$ Q% n! D. B
                        part := @.cont;
5 F' `: g: o; z6 s                        @.transpOrder := void;! O9 q7 w# k/ B: j+ I& Q' n: g+ U( A! M3 _
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
( [9 S% a2 _( ]0 b                                @,root.eventcontroller.simTime);/ ~: ?6 e1 Q& @- D4 R# S8 Q
                        @.HasOrder := false;
( W+ R/ L/ _2 W6 i8 S                        @.DrivingHome := true;
$ g9 {5 q" ]  m, [                        rgManager.tryToStartTransOrder;" b  W; y) a4 S& G( U" X1 q
                        if @.Destination = void" {$ E. F# |$ i$ A# O) Z
                        then -- no transport order for vehicle @
8 y$ V" v7 @6 @* C                                @.Destination :=
5 d+ @5 ]% N  |+ z* U( u  X( G                                rgManager.nearestFreeStation(@,track.~);1 a6 [1 p, |5 x; y  @+ o
                                newDirection(@);   
) ?- c' p. C- W1 D7 R- U                                if @.Destination /= void then; i! f/ e: [# j4 T- E
                                        @.Destination.NumReservation :=
- h/ t7 M% I% S0 G( V3 U% |                                        @.Destination.NumReservation + 1;
( m) r3 r2 [& ]# g  [1 ^                                end;$ D/ |' U) i* r. H/ A6 V9 N
                                @.CurrIcon := "drivingHome";  Z7 J0 b9 ]) _, {; ]# A) s
                                @.DrivingHome := true;* `. y3 j: ]% C
                        end;9 `7 \+ J2 d# ?
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
* r" ~; E& V7 K1 Y  s- v                        part := @.transpOrder;
- x" b4 T) r, b; H4 K. f0 ?. t  j7 c                        part.move(@);-- load part: g( Q; O- U: L/ B
                        @.CurrIcon := "load";0 d" Y% ~! {) _! C, A) Z
                        GlobalDistObj := part.globDestination;  s$ O2 x& e, ^" ]4 C9 B! [$ m: Y
                        assignLObj := rgmanager.rgAssignL;
8 q9 c! b; X; J! }                        row := assignLObj.getRowNo(GlobalDistObj);5 V- S5 K+ e4 {# R5 s) ^
                        if Row = -1 then -- since 70
  i' b& u5 s" f                                if lan=1 then
- W% j$ _4 v) Z6 r. H3 Q                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
6 c! L/ @$ ]! w$ W1 V! ~$ `  ^* Q                                                to_str("in der Andockstation: \"",?.~.name,"\""));5 I  E( R! d" ~/ k9 S! z
                                else( {( }! m6 v1 |  n) q& j7 q
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),8 X7 i2 a, x# I
                                                to_str("in docking station: \"",?.~.name,"\""));                                ; w2 ?- @/ i) m0 j1 H2 a) Q; J
                                end;
& s3 p6 {' _0 Q+ d' [                        else
% t% r* D2 Z) T( L4 D3 m                                @.Destination := assignLObj[1,row];
  n& P" H: P" e+ v: v# @2 T" |                        end;                        + Q8 ^! J3 i& I' R+ U9 ]
                        newDirection(@);
. ~7 u: ^1 L( f( w- Z( q$ T                        @.HasOrder := true;( t0 P7 h6 H* C1 F! T! l0 g
                end;
- d; \7 G" B5 v- a5 \# m. s        end;3 Q% W* ^+ y+ r* D* v
end;        -- of the method6 ?9 A5 a/ N# M: v1 [3 S
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
4 _7 c) A  D. Z- w4 \. |  }# p( z- b$ J, y
这是AGV_putin中arrive的method。6 [) Q5 a3 |( w
; x: c2 U4 ?' i  {5 _
当到达物料速度越高时,这个报警更多,4 o+ Q. Q& [1 ]" p
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
9 L# \5 P5 u  @5 Q7 w! b程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
- G* ]' e0 U* g2 Y, S# h8 j- g6 [8 L. G2 w# p
另外一个小建议,就是move,所有的move都可以这样. d2 h/ `; d- @
if not move() then debug end
! F! L' ~2 i- E这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
* x+ e) F' z6 y* T- |plant simulation中的free libraries有AGV模板,
( y7 q+ R; p, c里面也有案例。& ~, u" y& x# I9 w
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
# D0 T, j( M4 I
1 d  t6 X9 T2 i& u. X, `7 {8 _" P1 F我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
0 J% C# {# M& h( u, Q8 I
- V& }' h3 S3 S那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 6 p: {, l0 [! P7 A$ s  N- H( A
这是AGV_putin中arrive的method。1 B# q" H4 }: _# J) ^8 i
" ?6 c+ u/ t( V: s( o! E
当到达物料速度越高时,这个报警更多,
$ i& U# p/ a1 c" ^, o
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-3 03:04 , Processed in 0.022066 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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