设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6470|回复: 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'
3 i4 x4 u4 I% S' M* w6 Q" `2 [% i; h, E*/
( t. M) Q) @3 [& G% Dis/ e! F* x9 F4 A9 x! N4 H
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;; n: [* q( B( Q0 N
do
; F  B' a# m/ y" Z0 w        Lan := rootfolder.Internal.Tools.AOLlanguage;5 a3 g2 o! \8 t! K% O4 G% O
        if current = @.Destination -- else return/ R5 R' C' L" c: U! |! x
        then
( l4 E1 q* H) j' N% C' F! k  E                @.Destination := void;" m  b: h- X8 i: _
                if @.occupied then
* l& p  B' \! v* Q                        part := @.cont;9 b6 N. h4 f  l3 m# V
                        @.transpOrder := void;
1 l. C# G2 a& r* e( A; a# a: b                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,4 j# M8 [7 l* |2 K* b  Y
                                @,root.eventcontroller.simTime);
' h/ ?3 H8 g. s, @/ n. F# r                        @.HasOrder := false;
9 C( j, l/ o5 W# e3 Y# y! D: q                        @.DrivingHome := true;
& ~! b; Z; \! k7 \, r0 b                        rgManager.tryToStartTransOrder;9 q) }5 \1 u4 @# [+ q: G
                        if @.Destination = void+ A7 l/ M& f9 K8 o6 s! f
                        then -- no transport order for vehicle @. {3 y0 |) K) Z% K8 p
                                @.Destination :=' D6 x, H0 X) b7 Y8 u1 \
                                rgManager.nearestFreeStation(@,track.~);
$ I1 O- k. V/ @) p. e                                newDirection(@);   
3 ~$ A( O5 F+ c5 {! @) t2 U  j                                if @.Destination /= void then: u  O" Z2 n# l* Q& C
                                        @.Destination.NumReservation :=
7 N2 j$ O( \8 X/ @: x                                        @.Destination.NumReservation + 1;
" @! c* Y; X* i6 _! ]4 _                                end;9 C8 S3 {( u, i- i/ M
                                @.CurrIcon := "drivingHome";
$ [* X8 p" E5 d                                @.DrivingHome := true;
( L$ W5 e+ Y. H' a& N! h, @0 `7 E                        end;
2 X: g9 M. Q- W' r                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
# f1 o, O5 `7 c/ e# d                        part := @.transpOrder;
8 Y4 L4 r! }3 `% E                        part.move(@);-- load part
6 W9 t( m( }5 J& g+ n                        @.CurrIcon := "load";; I* t5 e) G  Y/ e8 @4 F6 X4 l
                        GlobalDistObj := part.globDestination;
% e: h& u- Z. t- f" ?                        assignLObj := rgmanager.rgAssignL;9 e- s0 {0 v, M2 A7 D
                        row := assignLObj.getRowNo(GlobalDistObj);
7 x' T9 b8 j1 t* p1 h5 x                        if Row = -1 then -- since 70. W* _" J, T* L6 Y
                                if lan=1 then
. D* a4 d; i6 m                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
& h, K! N7 k3 k# |$ J                                                to_str("in der Andockstation: \"",?.~.name,"\""));" \8 O$ P+ _+ p1 h
                                else9 D. O- r; H- X1 H* O
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
/ q- E" W- L) Y2 U3 }, v" u                                                to_str("in docking station: \"",?.~.name,"\""));                                8 L! Q, W" w9 T9 K
                                end;
; G! Q4 s  }: n; L5 {% }                        else
  c" r: `6 u3 u: f% }: G                                @.Destination := assignLObj[1,row];
+ @; U: c; p4 |( V! b$ l                        end;                       
6 G  A8 U; w" p                        newDirection(@);; q1 D0 Z: {& c5 N0 B6 ~3 i" f8 i
                        @.HasOrder := true;
$ X2 k* H& j9 y: i                end;
' k0 {: |% x# G' |- K* o' p3 a        end;0 t1 w& D5 ?1 @9 c) Z  w" O- {
end;        -- of the method
" u3 a5 H  Q' U3 w
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
. o6 G4 t# p  C7 H) _  f3 `2 \) \* @3 l, Q; W# c
这是AGV_putin中arrive的method。
1 Z% [2 U9 N/ v* Z! g
. ]' j2 @; A* ~6 P当到达物料速度越高时,这个报警更多,% I' S; M+ Y1 ~9 E  L: @' m
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
, q4 K; a" `- M, S  Q) s" C# H程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?2 x: g* V. r1 p  g+ b, W! q" G8 Q
$ k/ N# [+ _8 f6 p1 o! K# y
另外一个小建议,就是move,所有的move都可以这样- b# d# P5 `# o- A
if not move() then debug end
( u8 u% t& E; o7 v" E+ t8 x这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
( S1 g1 L1 M" i+ F7 s2 l- e7 L8 Tplant simulation中的free libraries有AGV模板,
+ ?! V- q( \4 l里面也有案例。
0 ^  f( E8 r6 C7 a我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。. o% o9 X- Y" a6 i" C& j! B
! J- P- G, |. v+ R+ g
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 2 _' ?- ]9 Q$ D2 {) w4 o- k4 C' v* X' e

; U, d& |/ k: w$ G( w3 @% M. {那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
* I0 d- u# d8 b6 ^6 l, X& _- ]) E这是AGV_putin中arrive的method。- W+ _. z1 t& W0 O; E+ \, ^1 {1 H
1 b" N5 Y2 U8 p% k3 m
当到达物料速度越高时,这个报警更多,

6 O0 a' p* M: k& f另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-8 17:13 , Processed in 0.019099 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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