设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8563|回复: 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'
" ~4 ~  p) k* J1 D( U/ H*/
$ E& O5 g1 e0 u% Q6 N# L; xis4 ]! v% p1 v7 \. X( c9 b
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;0 J6 {- D+ n% F0 Q& K  p) |$ q0 Q; e
do4 b$ N& ~/ A* ^! [1 o$ ~
        Lan := rootfolder.Internal.Tools.AOLlanguage;+ @& V" \6 u7 u
        if current = @.Destination -- else return2 @# I! ^9 d! P5 U  s7 Q1 R- W) h5 Y
        then+ W' G1 X6 b& `
                @.Destination := void;; g% O: S2 c; C2 O* p; B8 l
                if @.occupied then  _! |- V1 ?/ V; ]: G
                        part := @.cont;& }. s, y+ r/ y: _9 ^9 U: ~+ V
                        @.transpOrder := void;7 }; y- C8 q* n2 |
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
) @" P" G2 m" b                                @,root.eventcontroller.simTime);: L# {, `/ b3 a, x6 K2 ^" L; D* _3 W
                        @.HasOrder := false;
% f& b' B6 h' i! Z" V) Y                        @.DrivingHome := true;! x8 j$ z/ x: @% y% |6 K2 w) r. i$ t
                        rgManager.tryToStartTransOrder;# g5 [' r; O* j7 w* U0 r+ ~
                        if @.Destination = void) k: h6 c5 k- g) e
                        then -- no transport order for vehicle @
5 ~3 G' X# _' G                                @.Destination :=
5 T. l5 B" `2 M% V* M                                rgManager.nearestFreeStation(@,track.~);9 |8 y8 X& K2 t1 @' R; H
                                newDirection(@);   9 |: n) D, [2 }( P$ P
                                if @.Destination /= void then
+ \6 p4 _. N# j3 T$ i# T                                        @.Destination.NumReservation :=2 U; d" j1 \/ Y. t
                                        @.Destination.NumReservation + 1;; l6 W% r3 t6 N
                                end;
4 ]& E8 L3 ^  @" Y6 \5 O                                @.CurrIcon := "drivingHome";
" V9 V) b( N4 k1 `                                @.DrivingHome := true;. P2 p7 J5 i  c4 {! G) f" T# ~% _* ^
                        end;% D2 r; o) m8 D3 u1 ]0 O1 I
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station0 U7 e5 M* q' O, _
                        part := @.transpOrder;6 U6 {7 W& m! k
                        part.move(@);-- load part" U- |; X1 d% Q1 M" F+ C. E
                        @.CurrIcon := "load";
6 Y' V# b- e- L9 O( }                        GlobalDistObj := part.globDestination;4 \5 q; r: ?. X2 O
                        assignLObj := rgmanager.rgAssignL;
" P& U# L% @* z. i                        row := assignLObj.getRowNo(GlobalDistObj);, C0 D; D" I& D  ]0 W8 J1 S
                        if Row = -1 then -- since 70
- x( y' t# t; N) k1 U                                if lan=1 then+ @6 j: [2 x+ q8 I% @( ^$ P
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
! |5 K. p0 G9 |8 l                                                to_str("in der Andockstation: \"",?.~.name,"\""));
' @, p$ W/ T4 B                                else
; d3 |1 k3 K/ A+ e6 {* r                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),7 x, A0 C# R( b+ ^5 o& n, W3 U
                                                to_str("in docking station: \"",?.~.name,"\""));                                5 M% ]7 b% P8 w- Q3 n
                                end;) D& U7 D' C) T+ u
                        else/ u5 Z" V4 G; I, V0 l/ _  a
                                @.Destination := assignLObj[1,row];5 a7 z7 l4 k: G4 v. p0 E* M
                        end;                        / t1 L$ t- }& m$ w: ^
                        newDirection(@);
" O& W! N$ j, H) Q                        @.HasOrder := true;7 C5 @. C( \% V% t: x" k
                end;
4 l2 R4 Y  s/ L        end;+ _  T- O, X( r8 g/ h6 w7 c5 l! `
end;        -- of the method! P+ i, w  M! D+ L* {6 [
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
3 u7 [8 M7 l9 l* a& w) `' a: K& r" |. c9 P& \% S# D
这是AGV_putin中arrive的method。/ |, _" ]0 X2 i3 U' U

- k  D$ y* E+ e, Z3 ?' C当到达物料速度越高时,这个报警更多,& L" l. ?* s$ {4 W
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。: j( ~/ s+ }$ T% d+ Y7 f/ w: Q
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
: g  D3 x& I7 N/ W8 L+ M+ ]0 j+ E* f9 u  x, `3 j, G6 x: e
另外一个小建议,就是move,所有的move都可以这样" f) H' O7 ]+ ?. v# M, [' G
if not move() then debug end
8 _. q4 |% d! S这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
" U3 @' o$ {9 M4 U0 g7 h. Kplant simulation中的free libraries有AGV模板,9 Y. Y( Z9 `- O: V; R
里面也有案例。
; D0 V1 U1 l9 N3 `; i, ^我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
% t; w, j* H" i3 }) F3 ^
+ |( |: b& J! _我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 8 U8 C" X' u" W) [; L
" B0 j) f" ~2 f! K9 T2 J
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
. x' j% ~& U7 Z- C$ _这是AGV_putin中arrive的method。& d' |. Z! v1 S! g& |% \. N$ K, G" x( L

+ M$ I$ }# b0 c# w' A' v" z, N3 `4 s当到达物料速度越高时,这个报警更多,

6 d0 S3 ?+ T) ^& g* k另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:13 , Processed in 0.017094 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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