设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5844|回复: 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'
2 r1 |7 O* A: s4 W" z; O& w*/
) }  d5 h7 E' \is* m) Q* e) X3 \/ U6 ^! [& J
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
, m7 L; ?  T" o" T( fdo5 G1 q0 [. C7 Z- s* i
        Lan := rootfolder.Internal.Tools.AOLlanguage;
) C1 h( M6 F" w6 M; v        if current = @.Destination -- else return
' _; V/ k+ c. ?# m        then
, o0 I$ I& o) `# g" D2 T                @.Destination := void;
" P  z5 H7 E$ @0 o* K" R                if @.occupied then
  ^+ x+ Y* F5 a! ?                        part := @.cont;) l6 R1 s; p1 O, l7 v: t- O
                        @.transpOrder := void;
3 _+ Z) x) {4 t3 F                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,0 p1 }1 t+ F& |& b: z
                                @,root.eventcontroller.simTime);# C1 Q9 L1 {8 n4 h5 N0 E6 e: m
                        @.HasOrder := false;- }+ k4 b: e$ M1 M+ ^
                        @.DrivingHome := true;0 H, a1 m/ h5 @5 m% g
                        rgManager.tryToStartTransOrder;0 {: s; w& f& \+ [" \' D% X
                        if @.Destination = void7 ]+ F! [7 t, x  x  F4 b2 i2 n2 D* k
                        then -- no transport order for vehicle @
8 {; C3 Q& G( V: l4 F                                @.Destination :=4 v) w2 F* W4 B3 e$ ~; C, |7 V. E
                                rgManager.nearestFreeStation(@,track.~);
8 s7 T% z$ e$ H( O                                newDirection(@);   
3 Y$ t" K& ^. u" @                                if @.Destination /= void then
5 ^8 j% Y* o. J. L, j                                        @.Destination.NumReservation :=
, `, [4 R& v; g  l" p                                        @.Destination.NumReservation + 1;
, d: U1 T9 g6 ]3 A                                end;5 M5 T$ Y5 ?6 s: n3 j7 f
                                @.CurrIcon := "drivingHome";) f$ F! F) M$ A+ q& x
                                @.DrivingHome := true;% S7 W1 U3 ]4 `( {. y/ G8 v
                        end;
% t8 B1 Q4 S; M% a: c& ?                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
: ?: A3 r9 |& C7 n8 K0 x  t                        part := @.transpOrder;
0 a% k4 n% x, S6 m9 M' N, |                        part.move(@);-- load part  T  m: h# @/ s2 U4 U
                        @.CurrIcon := "load";
7 k/ ^' k& A# _. ^. f, z                        GlobalDistObj := part.globDestination;) Z( y! d# Y4 o2 L+ j0 @; [( @7 N
                        assignLObj := rgmanager.rgAssignL;5 R% G9 X6 _2 H2 D) S
                        row := assignLObj.getRowNo(GlobalDistObj);; }- w6 k% f  N: ?( L- N
                        if Row = -1 then -- since 701 A) ^0 B, P# d" a
                                if lan=1 then
* {$ }$ a+ d+ g4 p$ W                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
+ O& V' a# A) m! N7 h# p5 G                                                to_str("in der Andockstation: \"",?.~.name,"\""));6 f$ Q8 c8 [5 c* e) N/ Z% C- o
                                else
( f  L& c' M7 n& H) O1 u                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
: e5 F6 W( ]5 g, r" b+ T                                                to_str("in docking station: \"",?.~.name,"\""));                                0 z7 c. P; T4 y0 p
                                end;0 K. r4 `2 ]) C1 o
                        else7 [" d5 W7 N! V+ U
                                @.Destination := assignLObj[1,row];
( j) K# F, M  Z" p8 D( P: L                        end;                       
2 e3 b7 w% F' P4 r2 k, g& U0 w$ |                        newDirection(@);" S! Z; B. |: z
                        @.HasOrder := true;
5 s' p6 [) r5 r) s+ s8 r  P                end;
$ R+ i, k3 H) X' h        end;% y2 H4 Y5 z6 J/ L/ x% R8 f  I) g: v
end;        -- of the method6 w5 J% {) o( u) B) N3 p% S
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
7 |' j! ]$ c4 G* U  `5 {' {  h5 p! U+ {" O
这是AGV_putin中arrive的method。# _4 |0 F: l: J! H

% u) M* @+ H; y6 B7 e" P当到达物料速度越高时,这个报警更多,! ]! N% F. Y5 Y* {# t
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
1 M( J+ z; v: j$ P1 d1 b程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
# |6 s0 D' W; U. z; _& T' x, ]' ^1 @! B+ ~8 |  s: C, H$ y# k
另外一个小建议,就是move,所有的move都可以这样7 R4 K: `: s  [; m
if not move() then debug end
3 a4 j' i5 z2 _3 n! Z- p  w; R这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
- o: ]! k; t) N, S& u8 F; zplant simulation中的free libraries有AGV模板,
7 y9 F/ x1 j: G里面也有案例。
3 \" O' K) [! o我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
6 Y/ G# O+ o: d  p% \8 P9 \
: U! P' {7 K. p我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 ' v3 M4 c+ C! T/ F7 R
; B1 M0 o5 q& e9 m
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 6 M2 w! ^0 d! r- z0 m. i
这是AGV_putin中arrive的method。- B! v+ R) G+ l+ p
* M/ N! [5 l' E8 A$ M2 q
当到达物料速度越高时,这个报警更多,

! V; k  Y- N5 n4 b$ @  I* @另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-26 03:55 , Processed in 0.016107 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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