设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8295|回复: 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', y, l9 l' Q( T( v* p) f3 I
*/  \. J2 c" V# C5 F+ p. K9 b- b9 Q6 j
is
& ]1 S: e  h/ `; c/ f# a        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
# v( z/ T" H9 n1 Udo
  {$ K  S* k8 H& x% N; f        Lan := rootfolder.Internal.Tools.AOLlanguage;
: [8 @4 H  |  x2 T! V! d        if current = @.Destination -- else return# `0 m% X( W& W+ u
        then8 v0 {( x% ]5 w6 n+ p7 G1 L
                @.Destination := void;
3 H4 k9 s+ A! v5 R                if @.occupied then
+ p5 F" ~% b9 w. p! Q% o) T7 J                        part := @.cont;
6 \5 m! i$ ?, H" f: F  o" i                        @.transpOrder := void;- T) n1 q' ]* q& Y
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,. Q4 m- S$ Y2 S: ?
                                @,root.eventcontroller.simTime);1 ^! B. M( Y& m% u  {' x
                        @.HasOrder := false;1 c1 w" {9 Z; n/ y# D* r' f3 d. a  l7 O
                        @.DrivingHome := true;# |. Z, N% U6 s9 j2 D3 [" m" g
                        rgManager.tryToStartTransOrder;/ S& M9 s+ u: Z4 }) Q
                        if @.Destination = void4 k4 z+ @$ ]* @. R# O
                        then -- no transport order for vehicle @& _5 b' M1 {7 k/ {/ g8 z
                                @.Destination :=- S2 F  z* q# _. |+ f5 m$ a3 Z( g
                                rgManager.nearestFreeStation(@,track.~);
8 g9 ^# N4 Z) N( [  @                                newDirection(@);   
3 C" D' W# i- d+ H; _* v: @                                if @.Destination /= void then& w# U  {* D1 P# ?
                                        @.Destination.NumReservation :=
2 h. Z9 S8 c! C% V                                        @.Destination.NumReservation + 1;- K& N5 {( U4 L/ c# x/ _1 N; q
                                end;
7 A$ p7 D. R0 g9 \* J' s                                @.CurrIcon := "drivingHome";0 @$ O$ Q0 `, C& T5 A
                                @.DrivingHome := true;
/ A' v' Y( W. r: j; ~                        end;
( _9 N& t2 B% L4 \2 q; W& d                else -- the vehicle @ is empty, both vehicle and part are in the same dock station' C/ S( J/ M, C, d7 o( ^8 O
                        part := @.transpOrder;# q0 h5 V- G9 }! {
                        part.move(@);-- load part! g/ C' Y' {( E9 @
                        @.CurrIcon := "load";! ]' `' A0 {$ v1 U" _
                        GlobalDistObj := part.globDestination;
$ r/ Q, f3 |8 c  |                        assignLObj := rgmanager.rgAssignL;
3 W5 f* X$ e, U0 _                        row := assignLObj.getRowNo(GlobalDistObj);
! L, ]5 T0 e1 @2 V- K                        if Row = -1 then -- since 708 m5 ^$ d  Y0 }
                                if lan=1 then/ ~  G/ y, g3 r, ^% \
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
/ X6 h3 P0 s/ H                                                to_str("in der Andockstation: \"",?.~.name,"\""));
* o5 [) p4 H5 n% H# B                                else
5 q/ U: J0 `: a4 s                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),$ q/ r; ?7 A: q: Z- p
                                                to_str("in docking station: \"",?.~.name,"\""));                                1 B& u! B- K+ W8 M. m2 W' S) A. h9 D6 W
                                end;& Y9 a- l( D" |8 S+ D2 k/ c
                        else" H. A& h' a6 I* s6 N4 \2 P
                                @.Destination := assignLObj[1,row];; K8 j5 h& _% p  {4 l/ e
                        end;                        : q" i6 A6 i) M% m8 z' }: E2 w
                        newDirection(@);
% @1 h: r8 A0 m( w% y# A/ a; [) F                        @.HasOrder := true;# B+ ~) h7 G; h
                end;
2 B: p8 y3 K5 H. ~9 o; S        end;
9 k6 t! m0 r% V  e7 U$ hend;        -- of the method$ m: f. M- B2 b9 N. r2 ~
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
3 \! _5 Y' b' l2 ]. ?: u# T  M( V! S: y8 _
这是AGV_putin中arrive的method。
; Z8 J. P" J* _1 n. c. W, U; l6 j8 |; m1 z3 a0 F
当到达物料速度越高时,这个报警更多,1 T2 c; x# W0 r8 M% A0 y2 Z
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。- w6 J3 A! I) j) M, u/ A  w3 q/ A
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?! G5 ^( c! _$ x
% r2 r+ r0 r/ E. a3 W9 M
另外一个小建议,就是move,所有的move都可以这样
+ P9 u8 D6 X" Z% T  Kif not move() then debug end" f6 g; D" \+ i) n! v
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。; A1 K3 x$ N4 Z, c1 w; n
plant simulation中的free libraries有AGV模板,
$ ^7 X- h, N) \; e3 }) I* L; d里面也有案例。
9 k9 {# k, }4 W8 r% k我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
0 q3 |0 S! R- a4 L+ R& z$ k
; T& T# J8 f2 ]+ L9 f, [我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 , o" J5 p' E, H4 L$ _  h0 |5 a

- F. M* o9 B9 K那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 ) y& R* C- @% L: p6 b
这是AGV_putin中arrive的method。
6 t4 c' H5 D  c1 m, o. @, E! i- _
% o% E, W3 q; H# u" c* J, ~% v当到达物料速度越高时,这个报警更多,
* m& O% t( Z& G4 }/ O
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-26 00:38 , Processed in 0.022759 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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