设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9683|回复: 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'
/ y: h; H: O1 p, l# \8 Q*/) `, l' p2 g& }
is
$ t2 N& a8 h+ O7 s1 H        part, GlobalDistObj, assignLObj:object;row,Lan:integer;6 H! e+ f9 I/ ~# q6 a& z$ C6 c# y
do# w7 t5 G; {* P; R7 r4 P5 c9 w
        Lan := rootfolder.Internal.Tools.AOLlanguage;! a2 O. S$ g; T4 q3 q
        if current = @.Destination -- else return. L' v- V" D0 E# S' D6 B/ \. d  D/ [
        then1 i# H: e3 [6 I& z
                @.Destination := void;
1 \# a2 g& ]5 z& b/ W                if @.occupied then
' x4 A* v4 }7 z0 C* [                        part := @.cont;5 D5 ], g1 S; o+ N
                        @.transpOrder := void;0 [8 m) }( q1 w
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,: \& W: ]3 u9 b" ^# [1 l+ s8 R/ h
                                @,root.eventcontroller.simTime);
2 {* R- g7 o6 P4 ~. R6 q                        @.HasOrder := false;4 F/ m$ O- `6 E# E6 P
                        @.DrivingHome := true;
7 m) A* [& {8 T; R                        rgManager.tryToStartTransOrder;' p' x! b% [' M2 I4 t
                        if @.Destination = void
) S, O  J- `7 u" Y* \( v- @                        then -- no transport order for vehicle @
8 I4 {; V2 h' J6 f/ V                                @.Destination :=
6 h3 h/ o) O% ?, ~2 P, c; D                                rgManager.nearestFreeStation(@,track.~);* K% x; n+ V% j- X$ H3 N
                                newDirection(@);   . G4 }* c! v$ l! y
                                if @.Destination /= void then
( a1 m) d$ G; T% R" c! y' v  ^                                        @.Destination.NumReservation :=* s/ B1 B  }1 N
                                        @.Destination.NumReservation + 1;
  o% O4 L5 c% k/ ~7 U                                end;
( }0 O- f4 L" u                                @.CurrIcon := "drivingHome";
' g1 }2 B% f! V; i5 V1 A- B  a: r                                @.DrivingHome := true;; j8 Z1 e" ?% P8 `
                        end;
* v, b& ^, ]0 a3 u. q                else -- the vehicle @ is empty, both vehicle and part are in the same dock station9 c! }! e" R. Y! `( j+ O9 k" w+ {
                        part := @.transpOrder;
4 V! {4 G$ h" w0 {                        part.move(@);-- load part$ y& v) _4 @. K% i, P3 ]
                        @.CurrIcon := "load";2 q1 ?" B* j6 f  n
                        GlobalDistObj := part.globDestination;
6 e. o4 y7 r: C. w* ~* u/ l- [6 d                        assignLObj := rgmanager.rgAssignL;
6 H$ S) R4 ?4 m, ]% r                        row := assignLObj.getRowNo(GlobalDistObj);
% `/ {* B  |9 b  s2 C& M+ q                        if Row = -1 then -- since 70
. q0 r+ ?0 x9 z! b" a: V                                if lan=1 then
& i+ i5 g& B. h                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),  g; |: [. K, D+ K! H# I9 b" e$ r
                                                to_str("in der Andockstation: \"",?.~.name,"\""));# l: O5 J' q, ?- _
                                else
: G3 H5 M+ ^3 ^' o2 d                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
% x) K7 G, Q! {8 |6 q% [/ S3 Q                                                to_str("in docking station: \"",?.~.name,"\""));                               
3 N$ r1 W$ D! U5 E  d6 }                                end;/ [  d" R) P1 {& _4 x1 r# F4 ]2 ^
                        else
2 t- g# p- p& Y                                @.Destination := assignLObj[1,row];
$ ?9 s& Z) ~1 [5 R. b8 s6 E                        end;                       
) D: v- c  t+ z' x& I                        newDirection(@);
4 \/ x/ I& |( |$ E2 J( K! R                        @.HasOrder := true;
# W4 F0 ]$ Z$ o& ~. e                end;; @# y# M" ]6 S4 g+ E  ?8 k+ a( U
        end;0 u- A/ ~4 j6 M' K/ A% l
end;        -- of the method
3 t) Q2 _/ `5 m
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
' f2 K. w& s4 v' Q! I4 p! X
) i3 M4 J3 S. M6 ~% |1 [$ |0 U6 h这是AGV_putin中arrive的method。
! a, U2 v+ ?) F% w2 S9 @# I
3 b& {. v- }. s8 _' r当到达物料速度越高时,这个报警更多,
* U" a4 B# o6 |2 {& l可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。; E0 h) Y9 G% x  U+ _6 Z
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?5 _7 J" _& R, }  R3 ~
8 m4 g& m* J) r$ o
另外一个小建议,就是move,所有的move都可以这样( m& M9 Z8 J" z8 s9 U0 ~8 ?; L$ ^4 t
if not move() then debug end
- t/ R, S7 P  v/ j这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。! ]0 S+ X. K% Q
plant simulation中的free libraries有AGV模板,/ q9 p9 Z9 J: t* v9 Q4 c8 e
里面也有案例。
0 ^7 J3 E! ~4 ]( L! m我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。8 n$ T, G5 Z6 D+ N4 A
  T8 G. X4 H+ G. u  H( {* C
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
; ]$ T' d: \3 \/ l2 ^
3 n  i) H" v! p, O那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
6 {. K& u' H8 j  ?这是AGV_putin中arrive的method。8 c& i/ F( o* y! d- j7 [+ {2 A
8 O# `8 x" s. [+ K" n- X9 e7 b" ^" S  C
当到达物料速度越高时,这个报警更多,

: N$ {3 \. [1 S# L另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-17 03:01 , Processed in 2.298075 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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