设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6260|回复: 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'
8 R' @, D, U% a6 Q& ?. Q6 h*/, s7 r- K3 S& T! P/ L) x: W% R6 x
is' A/ `8 y, B  |' i! }0 n' ^
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
& \6 j/ @; G3 n9 Wdo( Z6 z4 t  N0 E: |% f+ }
        Lan := rootfolder.Internal.Tools.AOLlanguage;
$ H5 A3 n4 x. W; J: d* w        if current = @.Destination -- else return0 y% o& }0 y8 ^: @/ @4 ^
        then
5 i% O' n! K% M0 T1 g$ F6 @; [9 s                @.Destination := void;
2 u& h  y% a) D' N. w& o1 ?                if @.occupied then
2 y/ q. K/ q7 }. z* w: g8 i                        part := @.cont;
; d4 r/ s* n- k* F7 Q( r                        @.transpOrder := void;. e$ z1 {- N- u; E! M
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
' |3 r8 Z0 q8 M5 x2 \                                @,root.eventcontroller.simTime);9 W: R: @# K& c. c1 ?+ x
                        @.HasOrder := false;, A0 W6 H2 b" U9 ?8 q: O
                        @.DrivingHome := true;3 m  X2 E; d! B0 p
                        rgManager.tryToStartTransOrder;( x# S4 K5 T1 c
                        if @.Destination = void
9 T4 V/ v# g( Z6 }# T- w                        then -- no transport order for vehicle @( H4 I3 J; V6 o. v& n
                                @.Destination :=3 N' r- q2 p% K! Z" g
                                rgManager.nearestFreeStation(@,track.~);( u+ C8 o+ h$ |  S: n
                                newDirection(@);   . G" o9 i2 r2 G' C2 }" [
                                if @.Destination /= void then) u; e( K; B% j& q- Q
                                        @.Destination.NumReservation :=
! A+ |2 P6 g) W  o+ x' d4 ^/ I                                        @.Destination.NumReservation + 1;
& \+ U6 ~* e; {9 ^3 @                                end;
0 b0 K  Q0 ~: X* u/ y: v                                @.CurrIcon := "drivingHome";
5 l% B5 w& D/ ~                                @.DrivingHome := true;; D1 h1 u  n2 K% `( z
                        end;5 c' n1 b$ s2 H5 _
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station  h( k7 H0 N+ R1 A+ p
                        part := @.transpOrder;2 i1 v& V/ b6 k9 z5 @
                        part.move(@);-- load part" e8 o$ m' v; _1 Z* {3 {% |
                        @.CurrIcon := "load";. P" Z) v% F0 G
                        GlobalDistObj := part.globDestination;
" d2 `8 P) S( X/ U                        assignLObj := rgmanager.rgAssignL;
3 ~* R! `; R" |, O. R  P- j, {                        row := assignLObj.getRowNo(GlobalDistObj);
, e' G1 B6 ]$ O* C* i6 a                        if Row = -1 then -- since 70, [5 M4 X5 X; _' D6 Z5 c' d
                                if lan=1 then
, s8 E+ J/ A4 E: S& j8 Z# w                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
8 g# K8 n2 r- d* M7 G8 A/ i$ T                                                to_str("in der Andockstation: \"",?.~.name,"\""));- g- t; N5 ]$ l7 O! t; K" v
                                else
" c  O9 B9 f' a                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),9 M  R0 D6 }2 i9 X& W
                                                to_str("in docking station: \"",?.~.name,"\""));                               
0 ~% g% j* S  o) A$ x4 j6 A                                end;
4 c$ o5 {4 ~# |6 j7 i2 M! y                        else
+ x4 I/ Q$ G: |/ e# F) Q2 r                                @.Destination := assignLObj[1,row];
& Q  F0 d# r0 R8 `                        end;                       
- N$ ~1 j/ r& }, |/ |1 ]                        newDirection(@);& u* F7 N) S( x, z6 D) l
                        @.HasOrder := true;6 A. z# A5 ?, y6 H/ M
                end;7 _+ {0 J, @5 a: r2 g' O
        end;9 t! y0 K/ a$ d2 `! n
end;        -- of the method
$ p" h9 I& I# Z! K0 b" l
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
* ]8 T) ^- a& A6 ~+ @3 ?  z
5 D! D( X+ x; J3 M这是AGV_putin中arrive的method。' `. X, N0 |4 K3 Q: e  S) N

* k, G7 G: J  W5 k当到达物料速度越高时,这个报警更多,+ `5 ^# \# l4 [- y2 p/ n! v
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。3 L- l- _, Z9 T& L
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
+ f% v! W0 c7 b4 ?7 s7 x0 F' y2 Y: b4 }8 k
另外一个小建议,就是move,所有的move都可以这样
- ~4 H- f$ ?# w+ D) vif not move() then debug end
7 U& a6 x; H7 W9 Y- m这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。$ _% E. Q' H% ~. O! [$ Q) F2 Z; P% w
plant simulation中的free libraries有AGV模板,
4 h! u3 S0 o1 \& T4 ]5 {里面也有案例。: N3 [: s2 z, R
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
; Z8 r1 p; B1 N% a, B. W7 A! t
: Z3 @" r1 E, O+ q2 U+ K! t9 [我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
0 @& e( C" w4 H1 v7 w, i* ]7 [, _" n1 q' K. s' ?' C
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
& ?8 f' t' O1 z4 W7 o) S- q这是AGV_putin中arrive的method。% v+ N# b3 b: P& c

8 h4 x- Z9 X& ~7 o当到达物料速度越高时,这个报警更多,

. i- o5 M1 N! m2 A" u4 }; Y% j另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-1-27 16:03 , Processed in 0.024877 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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