设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9422|回复: 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'0 m& O% o3 R  k  ~: ^6 C/ i9 l
*/5 p+ a9 ]1 ~' t1 C. \  c: C
is
# f1 D1 t! M( o, Q/ d# l, c* [        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
* ~8 E9 j" r, |+ V; X8 l: N1 {do
7 v) A) k: _' x. x        Lan := rootfolder.Internal.Tools.AOLlanguage;% o& ~& `, `% a1 _! h
        if current = @.Destination -- else return1 i8 `1 b1 Z7 g9 o# d+ j. [
        then8 z+ c" T: O" H
                @.Destination := void;
1 m9 p& {7 w# M8 h, ?( U; C                if @.occupied then! Z$ Y( v+ b" i$ ^& ?' o' Q9 p7 G
                        part := @.cont;2 B- a; u8 A* M4 }% A
                        @.transpOrder := void;
% i3 h) @3 A7 K/ A                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
$ w# s  d! T9 Z1 j                                @,root.eventcontroller.simTime);$ ?) t3 o3 [; w% X4 u, R
                        @.HasOrder := false;
% l# L/ T+ @- C                        @.DrivingHome := true;) g' o3 m( e( ]  |- b' y
                        rgManager.tryToStartTransOrder;+ v5 q  y% d  n
                        if @.Destination = void# n0 p" A! f: N8 W% C, t
                        then -- no transport order for vehicle @0 R3 n3 L( O; o0 W2 z- j* N
                                @.Destination :=
; B4 B' i0 o8 n0 x7 }. u0 B7 }/ ~                                rgManager.nearestFreeStation(@,track.~);
7 Y. N/ `( ~1 F+ |. }                                newDirection(@);   $ T0 E, }$ K5 k$ F$ Q
                                if @.Destination /= void then
$ A0 m  I$ [: C                                        @.Destination.NumReservation :=! P5 E$ l6 h& M7 u1 q2 f0 p
                                        @.Destination.NumReservation + 1;
; V7 P) Y  l5 h9 b                                end;  M7 @: e% O) _5 e
                                @.CurrIcon := "drivingHome";* ~  R8 W- E# i5 V# S! Y
                                @.DrivingHome := true;
2 b. j  v5 |, p- W% J                        end;2 s  H6 j! T5 s+ l
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
# L  x4 x3 Z9 O9 z- ~' Q$ j6 s' g. l                        part := @.transpOrder;
& T8 A) T' C( u2 G  k- d! ?- r) C                        part.move(@);-- load part" }! x. Z3 L$ S
                        @.CurrIcon := "load";( U- T% S0 o0 N* }/ d7 n5 e2 \
                        GlobalDistObj := part.globDestination;* ?2 f- ]1 z3 D8 a% i. |  Z; Y
                        assignLObj := rgmanager.rgAssignL;' A; H4 J$ z1 m" @8 R
                        row := assignLObj.getRowNo(GlobalDistObj);# g! l4 y0 H2 D/ n
                        if Row = -1 then -- since 70$ b: u: G8 ]/ J, S
                                if lan=1 then
) |: w8 b% C! r- d  R% J* w                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
3 x4 _' d& k- O8 E                                                to_str("in der Andockstation: \"",?.~.name,"\""));
  \% I! b+ L& Q                                else
: ~0 b% {& {8 B+ f+ d                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),( E( e& f9 K- H2 E* F! m0 O
                                                to_str("in docking station: \"",?.~.name,"\""));                                " ^+ R6 z/ j( m$ f. m
                                end;& P  y1 P# j  ^. F" @( o
                        else# f8 M+ C  l: P
                                @.Destination := assignLObj[1,row];* V, {: \8 K& x3 ?
                        end;                       
# j; c3 H1 N1 D) I# F" i                        newDirection(@);
. `1 y* Q) |) ~                        @.HasOrder := true;3 v* n" A; H, I
                end;
9 K% S+ J# k* L: W0 w7 ^0 X# J        end;
% P" u5 ]( Q! h' lend;        -- of the method* \$ w0 i1 x2 p6 p' L
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 3 J( K# S9 C5 a* o3 C$ E% L, ]

8 k# M, ^( {6 \/ e$ R% L这是AGV_putin中arrive的method。
; n" ?  [4 {% h0 [4 x1 J% T: d# ^" z+ V4 @! A* ~) M) h
当到达物料速度越高时,这个报警更多,
2 y# x& S9 t% w: I% m- t" ~% z; U可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。/ v) K3 E( m0 d% Z$ {7 E$ H  K
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?# |; _1 E4 x" Z1 l

1 _/ j* _4 {% H: D! y  v$ H& Z另外一个小建议,就是move,所有的move都可以这样" V5 B  k0 P$ B" p
if not move() then debug end
; d7 F3 N# W, Z8 ]  I! I' W+ [/ O( }这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
' S: L7 v  O3 G% K2 P2 Splant simulation中的free libraries有AGV模板,+ u  h6 b: _: o( J$ m' V
里面也有案例。
2 Q0 P; U* I, ?2 F. y  z我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。7 h9 L- }2 J/ c# P: |! f
. q" [8 c! P' J: w, E
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 4 I: a# z) @7 X# h( @% ]! }0 g; ^3 [: Y
8 `8 V0 Y9 \. [2 W- W
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
9 W& J8 T# v9 Y& d& J' }. y: H这是AGV_putin中arrive的method。- b* O$ N9 r# b7 x- v3 O7 K& I
: m' V' {/ K9 y
当到达物料速度越高时,这个报警更多,
5 O, F  U' U; S" C( b
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-31 09:23 , Processed in 0.017226 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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