设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9090|回复: 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'4 I6 H6 y) ^4 T  @0 Z- k
*/4 j, t0 Z% b7 E% s, s* ~
is; k& L0 |* C5 f* ~
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
! ^/ ^" v( T# |1 P! Q3 w9 U& l' [do* I- T2 L9 W8 p1 }& Z
        Lan := rootfolder.Internal.Tools.AOLlanguage;
' o- p* `. g7 ~9 O# y% A( r0 O+ X        if current = @.Destination -- else return" G7 J4 u. y; C% z: w5 p) a
        then  L' Z  B( l( t# u+ O) K  x5 v
                @.Destination := void;
. D2 i9 T* L/ k+ |                if @.occupied then
( w' L. j9 l3 p$ c8 B8 J9 j                        part := @.cont;
* x" ]6 ?' V! o* }  }                        @.transpOrder := void;4 l' F7 z7 O# W3 F1 z
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
2 J- `& n- G$ m9 b: n: |$ s( m8 t' m                                @,root.eventcontroller.simTime);$ d! s* o+ a0 K0 K) c! r
                        @.HasOrder := false;9 m; _0 g, \# O" z5 |. K- C2 ]
                        @.DrivingHome := true;( I) u* x) \5 D
                        rgManager.tryToStartTransOrder;% A) K. L* `% ]# R
                        if @.Destination = void; I- p7 I7 z2 C3 }4 h% Y/ D
                        then -- no transport order for vehicle @
( S! m+ r" n8 M& p  l" P3 W. H                                @.Destination :=' E" G+ ^' V, o
                                rgManager.nearestFreeStation(@,track.~);
4 R( D2 M9 M5 ^; X0 P                                newDirection(@);   
, v+ q) M7 l, H& z                                if @.Destination /= void then
) `, ?9 \6 }* Q6 X) _6 |% O- T% Q6 f                                        @.Destination.NumReservation :=
; ?, z" A: O5 Y                                        @.Destination.NumReservation + 1;. [7 x( {* z7 Z: a5 _! o" B6 W/ }( `
                                end;4 g3 E6 R! |+ @  G) Q/ f: z
                                @.CurrIcon := "drivingHome";1 E% |3 Q' G( J. U! G
                                @.DrivingHome := true;  O3 p5 ^& ]6 M. t" {! o
                        end;
2 ^' I: P3 ]$ r* e+ S1 t2 o& c# @                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
- I* S* I1 h3 {3 U( c' d. }                        part := @.transpOrder;
/ A3 z- H6 J# G, d. |                        part.move(@);-- load part
, }6 l3 R& A3 i( W5 ^/ p) x8 Q                        @.CurrIcon := "load";
: b5 y& W/ n  G1 o6 _* H" y                        GlobalDistObj := part.globDestination;$ D! K( L8 q( d, z6 |% A3 G
                        assignLObj := rgmanager.rgAssignL;
( l, a; _, G( r; e3 i/ O                        row := assignLObj.getRowNo(GlobalDistObj);. H/ k- G: d( S9 s9 T  T4 v7 \& Q2 N
                        if Row = -1 then -- since 70/ L2 T% n& o7 \; n8 O
                                if lan=1 then5 o3 L* T5 h. u) ~5 g" E( r
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
9 m8 i9 l, `, z3 }5 K9 |+ C                                                to_str("in der Andockstation: \"",?.~.name,"\""));, E! A  x8 j0 j/ Q- y8 |7 x- Z
                                else5 N+ U. K" B0 n- T7 g2 L% T+ {- v2 L
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
& \3 _$ G/ ?% g                                                to_str("in docking station: \"",?.~.name,"\""));                                - F( O3 r1 o+ S( x1 d! m
                                end;9 s. K- K' t6 A2 P5 Y: w
                        else. g# E( L! y) q0 C1 C6 W
                                @.Destination := assignLObj[1,row];: ]  M2 E7 h" y9 f6 K" J
                        end;                        " L5 H' n# W. b0 v0 {
                        newDirection(@);
' H8 }6 e8 y" m5 B                        @.HasOrder := true;" c- i+ a! _4 v0 h
                end;9 ?: S& [+ M; V, \2 H0 X
        end;0 m) [  V! n1 `2 @
end;        -- of the method
0 I. u! h1 u6 A% b" X0 C/ i+ b
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
% P" g1 G9 _$ g  _- D# ?
4 c: J0 e$ h0 z- C这是AGV_putin中arrive的method。8 ~- b1 O) D1 d3 A

+ i/ p' ]5 H( F/ R. K$ e9 Q当到达物料速度越高时,这个报警更多,
# t* o2 J  l* N6 R% |5 P可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
5 [; Q2 B& _$ q6 c$ Q程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?" @  m/ `+ ~/ [* C! ]7 ]
% a8 {7 u. R, e/ C) f
另外一个小建议,就是move,所有的move都可以这样3 c) @2 S& u3 M
if not move() then debug end
2 `% \" }9 Z9 t/ Y& Z7 `5 k这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
/ |, f" r0 b# V4 ^6 Xplant simulation中的free libraries有AGV模板,
/ W7 E  V; H) e里面也有案例。
; ^" Q# {! N( F我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。+ O. y& X6 x) Z2 I$ Q4 m

/ [0 X: y! N* z. i/ `& a3 G我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
' s1 D9 E9 |# P  T% S% Y# @
4 ]- s3 o8 G0 R' Z那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
5 d$ E+ R) o5 @0 O9 ?8 g' w' O2 J这是AGV_putin中arrive的method。" p6 @( d) a" h0 n1 [$ L
+ a9 Z( [2 _$ ]! r, h5 d
当到达物料速度越高时,这个报警更多,

+ s" U9 l, K5 n: z8 {+ s( O, B0 F另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-13 04:59 , Processed in 0.016582 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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