设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8106|回复: 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'
& M. t5 d/ O8 {*/# B/ s' D. o) b$ k1 \  j
is
- P" n6 e. K) O: ?        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
' D$ O6 W. q+ F2 ado' U% e" P1 e; M& [' d
        Lan := rootfolder.Internal.Tools.AOLlanguage;
( b3 \8 n, n. I( p  n' u        if current = @.Destination -- else return
6 K. O% r. I) R4 A$ l+ p        then+ D9 v8 Y. ]8 i5 w8 D
                @.Destination := void;! f5 D0 c5 P$ W/ Y! T3 P
                if @.occupied then
+ c5 d0 ^4 ~3 \* E  V                        part := @.cont;% x0 Y" Q6 w, h( \- _
                        @.transpOrder := void;
- @% d7 Y& Q0 `) _  M/ D, o                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
5 E( m' x" I; b5 o7 |                                @,root.eventcontroller.simTime);
7 R9 M; l. Y* [9 |, y5 ^+ n# q                        @.HasOrder := false;
0 L7 y' U/ M2 {+ z! Y. o                        @.DrivingHome := true;
" p8 F6 N1 r/ v: O                        rgManager.tryToStartTransOrder;  T8 a) b: L$ }1 Y
                        if @.Destination = void
# x/ B- @9 e  ?, G: u/ O+ e% O                        then -- no transport order for vehicle @
8 y0 F( I' ]2 b2 I) L6 l& T                                @.Destination :=
1 j0 k3 B0 V& P4 t& j                                rgManager.nearestFreeStation(@,track.~);
/ q: |1 L- o6 H* [6 S                                newDirection(@);   8 G$ B1 b: W4 i4 A' o) X: S8 d
                                if @.Destination /= void then
$ P! q* g! F; U" O                                        @.Destination.NumReservation :=1 E- \& ^0 a, c! b
                                        @.Destination.NumReservation + 1;
1 {5 h- G4 A% q4 F, d$ \- s1 W                                end;( [4 S) _& P/ I+ x0 `* R/ a$ {
                                @.CurrIcon := "drivingHome";0 q3 ^* v) d  `# s8 q% Q: M; P
                                @.DrivingHome := true;
- S& D: q. S2 a  ]                        end;
( D9 z5 G5 ^/ W) T7 D8 w* {2 C                else -- the vehicle @ is empty, both vehicle and part are in the same dock station  a1 \6 \/ I0 [- L( T. W6 L! m. s; e
                        part := @.transpOrder;% `7 ?& c# l: X4 u1 H
                        part.move(@);-- load part
4 C) u3 {& {2 ?/ ^( t. N1 N                        @.CurrIcon := "load";9 {% h& F/ p5 Q( X* H
                        GlobalDistObj := part.globDestination;
. c% i3 I, l3 ?( Z  g$ v                        assignLObj := rgmanager.rgAssignL;
- b( v. V, b7 l                        row := assignLObj.getRowNo(GlobalDistObj);
2 I3 g( |1 g  N; Q% A+ P6 K                        if Row = -1 then -- since 70
6 H+ u2 k* [# X6 N  d8 z' ^                                if lan=1 then
/ B7 D. F: d0 |3 N. ?' [- a                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),- S; M8 u" q- i. U2 f# f9 v- W
                                                to_str("in der Andockstation: \"",?.~.name,"\""));
( s2 L6 p' b$ D# m( Q                                else" T( J- ~9 e3 l. N, g
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
0 W7 ]* S+ B$ S                                                to_str("in docking station: \"",?.~.name,"\""));                                - h; c  f# k" a+ ]4 V5 }% m% w  {
                                end;! a- g( A# Y/ z8 K6 M* _
                        else2 B1 c6 |/ E# R, |6 _5 U+ t
                                @.Destination := assignLObj[1,row];
9 }3 Z  D6 |/ ?. G" I; ~8 @5 ?                        end;                        5 o9 @  _7 G/ ]5 N
                        newDirection(@);
. F- M+ H2 {* R5 O/ h& ?                        @.HasOrder := true;
: \- y3 ^. o% \; r) e5 d* a! z                end;/ a4 l2 C$ I& O; l1 a
        end;8 y3 x' k. [# w- Q* k* e' U7 d
end;        -- of the method; j6 V7 y: I* N' r" D
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 / g# x4 K3 ~$ T5 s4 F
( A% o2 q! d5 q3 D
这是AGV_putin中arrive的method。
# Z# G/ u* l) }/ c- {. w( ^% o1 A  v& w& D! e  [8 B* q1 u
当到达物料速度越高时,这个报警更多,4 ^9 v3 M% _9 s9 D2 c' @- |
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
# _$ B  i5 m' _0 t  k/ G) a程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
9 u, D5 d2 H  ~
: P4 Y" }. f3 N另外一个小建议,就是move,所有的move都可以这样, T( N/ H- F$ e/ q: ]
if not move() then debug end
- {" M& _7 w, ]; Z2 n) N& }这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。8 C+ K8 l8 C6 W' R0 s: ?* _  V
plant simulation中的free libraries有AGV模板,
' V( V2 \& }2 f6 \6 K里面也有案例。
* B  o8 L! d7 p2 g( m  v+ I3 h我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。3 g  ?& n9 M! }/ S) G: n7 d

9 e9 ^5 S- G+ q. n% y( w  N我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
& U1 }' H! P$ Q8 N9 m) J
3 @& l& C& q% n, v; d8 }3 g那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
, W# W) j/ C. u0 j3 n& ]这是AGV_putin中arrive的method。
0 t* s) d% H/ S5 k
, N% E% M/ k5 ^当到达物料速度越高时,这个报警更多,
/ S0 D& M9 ^- X1 a1 M4 _) ?
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-15 02:42 , Processed in 0.018653 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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