设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9248|回复: 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 q9 }" T5 x" y- w1 K
*/3 z. y- O9 `/ `( L! r: p
is( O7 n  D5 P, I& |' i3 Y
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;7 J8 X/ C: I' C, F+ o- y5 {1 A
do
" F# R; t1 G! Q  V* J0 o8 [        Lan := rootfolder.Internal.Tools.AOLlanguage;% }; A1 k- y" v) r( b7 C5 y2 m
        if current = @.Destination -- else return
. t2 i& v8 G  d* a8 n& Z        then
6 O  _4 c1 z1 L: Z! Z* X* D                @.Destination := void;2 x4 T) f6 W9 m
                if @.occupied then1 b$ ]0 [/ w# o8 g
                        part := @.cont;9 ?( U( \8 x: F, V
                        @.transpOrder := void;8 z" ^4 `+ Z" U: ?% G% O
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,1 l  k6 x. U. l6 C) b
                                @,root.eventcontroller.simTime);
/ M' l  k8 [# k, p* q/ ^, E9 K  }                        @.HasOrder := false;, F* C  W1 P0 t+ E; L. ?- ^
                        @.DrivingHome := true;
6 }2 R: r! f- g& k9 w4 T                        rgManager.tryToStartTransOrder;$ v8 q: h# p' f$ X2 x' A. _
                        if @.Destination = void
1 ~; Q9 N$ g9 x& c  z                        then -- no transport order for vehicle @
7 n! z9 m& f8 j& ~( i# I                                @.Destination :=
/ R+ _1 m% g' A                                rgManager.nearestFreeStation(@,track.~);2 n* g6 v+ s- f5 c; p  G
                                newDirection(@);   9 [1 K" ^* R* [- }" Z9 V
                                if @.Destination /= void then$ m. [* Y  m& R' g9 e2 d
                                        @.Destination.NumReservation :=/ N  I7 |$ M) ?4 m) c) e
                                        @.Destination.NumReservation + 1;
5 E$ `6 ^. F! `( R                                end;* t- F+ a- {  ?/ b: v8 N
                                @.CurrIcon := "drivingHome";% k6 n6 Y9 i; u2 K. g. ^8 ~
                                @.DrivingHome := true;
4 ^+ |: U2 O* o$ D5 M; V& \$ p                        end;
1 l' m6 }# _- j! X) r9 \  g                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
- ^) D) V* @; a$ E0 P, ^/ W                        part := @.transpOrder;
8 W* E- ~; O4 V1 T                        part.move(@);-- load part) Z# W4 s: `- h9 b* _: Q
                        @.CurrIcon := "load";  t7 }0 F  \" r& p0 @
                        GlobalDistObj := part.globDestination;+ F4 v, K  `0 V+ S: C
                        assignLObj := rgmanager.rgAssignL;% a5 P" B* K' {
                        row := assignLObj.getRowNo(GlobalDistObj);( I! V: u  }: s
                        if Row = -1 then -- since 707 o& }$ I) p. b! Q, G1 O
                                if lan=1 then6 p; u! ^) n) E& u3 S. @
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),4 n# k$ a/ G) n
                                                to_str("in der Andockstation: \"",?.~.name,"\""));
7 b) W  R" n8 ~& f1 T! j" o8 b                                else8 \3 Z9 b" P6 Y7 ^
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),/ J" F6 w0 i! x
                                                to_str("in docking station: \"",?.~.name,"\""));                               
  m; V  N, S) E                                end;
, w6 e4 i* D& a, V                        else
5 v$ z, [  P/ {6 m; ]1 W2 a9 \4 `                                @.Destination := assignLObj[1,row];
* i! s( [" |6 ]' |6 ~                        end;                          i( |# m4 P. R- G3 o
                        newDirection(@);
& D% Q5 l) d2 X! N                        @.HasOrder := true;
  L0 ?9 y; `4 c, R% W                end;
, X' x2 z. O* R9 W1 O        end;
1 x( R( p7 ^/ s6 F0 _. Hend;        -- of the method
3 k  c+ _! p; X9 ~: J& O4 ~! h
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
" D1 U* }& Z! u  L! ^
& i% k* A2 F' o5 W这是AGV_putin中arrive的method。  O0 i; t/ U$ v" r
6 x1 [! @, ~! W" k5 @9 F0 ]
当到达物料速度越高时,这个报警更多,1 g, X6 Y6 u9 A, e7 O8 u5 z
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
0 ~7 C, h$ s6 d1 O; d程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?6 ]0 s, I2 j) [) l, f

; ]" u3 G0 [  r. \5 }  M另外一个小建议,就是move,所有的move都可以这样( ?0 s( J. A! k$ h1 q, n5 s. s
if not move() then debug end1 b* p9 J6 z" u$ b
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
5 m' e- D. W$ O2 eplant simulation中的free libraries有AGV模板,
/ a; P. W) ?" {! X! n% g6 D- ]里面也有案例。
- K% n- `9 C' Q2 \我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。) Y$ {- V& n5 E5 c& g& I' H

4 y4 @0 I. D0 _我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
! U3 o2 Q( X6 Y4 f5 u3 g" Y; x3 k9 N; I/ d& r
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 . q# x9 H! N" T$ Z1 x
这是AGV_putin中arrive的method。% r3 R$ x1 A# f* G& i5 b% y2 e, k

. l4 j0 x& g9 n: Z1 G3 l+ X% {当到达物料速度越高时,这个报警更多,
) A1 S; \. [  L" `
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-21 02:57 , Processed in 0.016604 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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