设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7975|回复: 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'" N! i- T, ?1 {9 p
*/( R( S6 o2 b% ?
is
/ z4 U1 S3 [* y" b2 T) f9 Z8 M        part, GlobalDistObj, assignLObj:object;row,Lan:integer;! b4 e' B' \. T1 S
do) c, `* E; {- _1 Q6 ~. {( V( f
        Lan := rootfolder.Internal.Tools.AOLlanguage;
# ~) c3 r7 _. [# R4 g6 r        if current = @.Destination -- else return
% l/ J# K1 l$ w4 `0 c        then
; n7 k$ [' G3 o* _                @.Destination := void;; x, @1 J  d* L! t' t+ U, a/ D
                if @.occupied then1 {2 Q9 \0 ?3 M0 ]* S; ]5 t: O
                        part := @.cont;
2 u% @+ C" X" N4 }. u' s                        @.transpOrder := void;5 [% H) G7 k! y6 Q, m0 s
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
( z/ }2 _( ~( Y( x1 @                                @,root.eventcontroller.simTime);
. C' r# w- a. P& L) g! j: v                        @.HasOrder := false;# _9 E& y) S: o' D: x( K2 C
                        @.DrivingHome := true;% p6 l9 E1 q5 F9 K  q9 @
                        rgManager.tryToStartTransOrder;
3 A3 |1 h" U' |: e: n                        if @.Destination = void$ Q6 \8 k1 N% N- O0 I: b- d
                        then -- no transport order for vehicle @; a4 Y4 ~$ `2 N1 y! g
                                @.Destination :=
7 B. W7 f! H9 W* Z; ]1 o+ p                                rgManager.nearestFreeStation(@,track.~);# d2 g- c7 b- q: ]  n3 k( V+ I
                                newDirection(@);   " Q) r0 G8 i0 o' c9 H( s: i
                                if @.Destination /= void then1 C  `! f* r. V6 q' z7 v
                                        @.Destination.NumReservation :=7 p9 s2 l  Q5 K2 s. D8 q: `8 K
                                        @.Destination.NumReservation + 1;  x/ g6 G% G. ^
                                end;
0 o: m- \; R5 N. _                                @.CurrIcon := "drivingHome";
* s  g: S8 A- g+ J! n. N' P                                @.DrivingHome := true;
" ?9 f# j3 X3 u1 T3 P                        end;1 K4 L1 N4 @8 G, ^, ^
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
- @* F: @$ C/ r# m" M5 r                        part := @.transpOrder;
( T& }- @9 l0 b/ S* r                        part.move(@);-- load part9 z2 k" v: R3 U0 K% ]! G. ?2 s- |
                        @.CurrIcon := "load";. H7 h5 i4 A- y1 |5 c, Z
                        GlobalDistObj := part.globDestination;
, l% d3 L3 c- o+ N. b                        assignLObj := rgmanager.rgAssignL;' |# d3 g. x* r. e8 W$ R
                        row := assignLObj.getRowNo(GlobalDistObj);" I& K# ~& o) `
                        if Row = -1 then -- since 70
" ~: X% A, i! J, N- A3 P                                if lan=1 then0 A/ g  K- J0 f& I1 C( {. V
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
* u* O: {3 t5 r4 b2 v0 L0 c! _                                                to_str("in der Andockstation: \"",?.~.name,"\""));+ G5 W* b0 V4 Y8 R* y
                                else: T; @: m' h( g; f9 v( F9 L( z
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),' U* H! E& D  B- g: d+ i
                                                to_str("in docking station: \"",?.~.name,"\""));                                ' u: J) \& W, D3 ?/ V" u6 e$ D
                                end;, d# K8 b+ T! d
                        else
8 x0 i/ R* G: n) c7 r! d/ t. M                                @.Destination := assignLObj[1,row];+ Y2 E4 e3 d% f" P
                        end;                       
9 q; v7 ~9 z* q3 \8 q                        newDirection(@);* ~( d: B0 \4 N2 ]8 I- H* X
                        @.HasOrder := true;  i5 @+ c! @7 `
                end;
7 K: F' U& q+ T2 `) M/ P* s        end;: \% q4 {, |6 |2 e- C6 `
end;        -- of the method) ~& Z" Q* Y) e
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 * u, i) ]5 |$ V; f

/ A3 S! f7 k1 q这是AGV_putin中arrive的method。; t+ k5 a8 g' m, E) Y; P

" u( ^! f. z) P/ E7 H* B当到达物料速度越高时,这个报警更多,1 P3 k3 U( J: p9 t
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
+ ^7 l7 j4 _* p! D: j6 }* P9 i0 k' f程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
# \. y; Y  m% o6 J8 I, s7 ]
) O" c2 w9 f# c; e另外一个小建议,就是move,所有的move都可以这样
9 j3 t/ L' y0 w- [1 F  m* @if not move() then debug end
- V6 a, h+ _3 N& @9 Z这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。* k3 z9 n5 H  J4 Z9 n
plant simulation中的free libraries有AGV模板,
2 t; r9 y& O1 u5 D" ^, s6 A里面也有案例。
7 ?9 m2 Y+ ~' K0 z5 P3 z* [: Q  j我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
: W! A% v3 \4 E$ Y! P8 h' Q3 p- C1 T3 |% M: }
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
" Z( o% |" r. v& P& s6 {2 ~1 Z$ ^8 |* }/ T0 H$ p0 V8 W/ S
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 + Z1 H( r- M) K) H9 \
这是AGV_putin中arrive的method。) T0 h2 Q2 G' ^
( w2 Z$ @5 k6 |  ?* H) D: f
当到达物料速度越高时,这个报警更多,

5 \! q" U3 N8 u% G9 k另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-8 15:59 , Processed in 0.015817 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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