设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7209|回复: 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 G0 j/ ]0 t  J' p5 K*/
8 G/ X6 W' n' b- v1 U$ I7 K- Ris% v/ U* v% [1 b3 k
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;" R8 ^& c  b7 [% K% K
do9 a6 ^9 r. ~2 K: O3 q. t$ ]$ R
        Lan := rootfolder.Internal.Tools.AOLlanguage;. e2 J6 j4 J9 g' p! n
        if current = @.Destination -- else return
' Q. W! R1 w  ~: a5 W        then
0 C# U# L( J3 [                @.Destination := void;! J) A( r& S+ u0 f( o: u) W
                if @.occupied then
) P2 u, r) ?2 b                        part := @.cont;9 H& n. J, H9 B) S1 l4 x8 x* F  G- j# g% q
                        @.transpOrder := void;
  ^( {: z/ N; |9 c6 U                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,8 m. F8 [0 G* a; W% H2 _
                                @,root.eventcontroller.simTime);
3 D* }! f: T4 h/ m1 t, y! L                        @.HasOrder := false;) w! B* _" k# g) B' G2 Y4 D
                        @.DrivingHome := true;" V( W# O! j1 T
                        rgManager.tryToStartTransOrder;" A  Q$ w3 [) B+ R% h0 Y) {
                        if @.Destination = void) X. u  B) C' k$ q) o
                        then -- no transport order for vehicle @% e" P7 i$ j5 D8 z- y
                                @.Destination :=
. R% z8 s0 N3 ?7 e9 P                                rgManager.nearestFreeStation(@,track.~);: G( u% Z# V8 B9 P' b% K6 u4 J
                                newDirection(@);   - `3 |9 W; `- K+ m2 M! V
                                if @.Destination /= void then
+ @; w4 ~1 @. c( T9 n                                        @.Destination.NumReservation :=8 `3 {8 a/ Y* I5 z$ k0 `5 ?
                                        @.Destination.NumReservation + 1;
6 h8 x7 V6 S4 v+ ~5 W! W9 o" P  B                                end;
6 u! C% `3 F- p$ C2 n                                @.CurrIcon := "drivingHome";
- S) X0 i* ~/ o: c( h( @& M                                @.DrivingHome := true;, i9 f8 }/ q8 G# r- L" }
                        end;4 A7 m4 z; o: D/ W0 X) N
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station7 h- X2 L, W5 s* U( w9 U
                        part := @.transpOrder;) t6 ?3 m" y3 u) d1 }
                        part.move(@);-- load part
6 F6 h9 p. a6 ^0 V                        @.CurrIcon := "load";
1 o+ Z, Q; S; M3 A                        GlobalDistObj := part.globDestination;7 ^0 \1 I6 s% }" {, E6 F" f6 ^
                        assignLObj := rgmanager.rgAssignL;
) D- U' m6 z1 K# \0 d8 U. Z0 o) e                        row := assignLObj.getRowNo(GlobalDistObj);4 {) y$ U2 V4 S* d! K+ H  ?$ q/ U
                        if Row = -1 then -- since 70
) r3 `3 a  v1 j8 F                                if lan=1 then
% \* R% @8 [! m3 {1 r                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),% ]: f7 i* m+ K2 q
                                                to_str("in der Andockstation: \"",?.~.name,"\""));% L. L# n8 `* \
                                else
4 E  u: X5 g+ @5 S! T7 F8 y                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),. \) P4 J, R/ D5 z
                                                to_str("in docking station: \"",?.~.name,"\""));                                : I  ~7 F7 ^; @+ K( S
                                end;
  O! B. m5 I: ~8 p  n/ @- S                        else
2 C0 A4 T2 r* O5 b                                @.Destination := assignLObj[1,row];+ C, ~4 `4 s! ]3 s8 \* H% v
                        end;                        $ \9 d4 F# m! u( W
                        newDirection(@);
! O3 `- S! X* g' n$ n/ E                        @.HasOrder := true;8 ^2 G4 ]; }4 _- [
                end;/ V4 i" k; q  ^6 \% x
        end;- \8 f5 I" Y- X& a: z" C
end;        -- of the method
0 D* u! M/ a* O% k$ y3 `! f1 L4 w
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 . s6 R$ R; j# W7 ?. H
# n6 |* P5 z3 r" p
这是AGV_putin中arrive的method。
* K; i- ]9 v5 s7 Q1 Y# [6 f3 D% E  W& Z# G2 y& h% }- v1 V
当到达物料速度越高时,这个报警更多,
9 `4 X' I% e$ ]' J" e可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
+ Z4 X, s" _" @9 Z" M( T  ^程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
( G% m. c( `# N; s  Y7 ]( O
' r+ O$ x0 [  R- U& F6 M另外一个小建议,就是move,所有的move都可以这样$ t# i$ E7 g2 W+ @9 G% b" z
if not move() then debug end! Q1 C1 ?1 l+ m+ J9 |
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
+ v/ I0 V) V- i# s1 n9 g8 xplant simulation中的free libraries有AGV模板,
! a8 W1 n- C2 T里面也有案例。" R' |$ P! P* K1 Z# w2 M
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
, b0 w0 e5 `) N- Z$ _3 D$ q
) u6 B5 v" W8 N* N) @, \5 y- Q- [我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 2 w# R- n( T0 a. ~+ Q1 H0 @# w

, ^  Q, Q! U- Y. n1 m那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
0 U, y' y, ^% [! e9 g这是AGV_putin中arrive的method。% O( |. y( B5 V2 a
! z6 V: X0 n4 v: V$ L
当到达物料速度越高时,这个报警更多,

& f; r% N! I$ T& s; }另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-27 04:35 , Processed in 0.020876 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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