设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4655|回复: 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'
+ t, r4 \' {+ x) i/ m1 I* S*/. J' c* j0 ~0 z0 }  C  O/ A7 f% l
is1 z$ H+ d0 X5 {, {( ^' K% x
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;9 H% _- B, Z  {; I& C+ D/ ]
do
5 g0 @5 K7 L, U+ q$ }        Lan := rootfolder.Internal.Tools.AOLlanguage;
9 d) `) a. R6 F2 |* E        if current = @.Destination -- else return
* H' f7 A9 m* F& E0 B4 c& l: H        then
+ M- ~! L, F' r, w/ [                @.Destination := void;
  A1 m7 _% H7 o8 \9 l                if @.occupied then; O% ^. q# k+ C  J: ~% h+ j
                        part := @.cont;
- N# [) @8 i& H3 R' i, u                        @.transpOrder := void;: ]# R; o/ d1 m: J5 k
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,: A2 O# a4 v; c% s$ K' }
                                @,root.eventcontroller.simTime);
3 q# {, q' G9 K" A9 L4 _! S4 o3 |                        @.HasOrder := false;* t* o' Z; K4 J" p  O3 h5 m
                        @.DrivingHome := true;
* N7 y8 E2 J/ V1 N6 x4 Z- ^                        rgManager.tryToStartTransOrder;
; G9 f4 }2 Y5 ?" A+ y& B                        if @.Destination = void) B9 C+ S% e6 e! L. ^, b: |3 J; Q
                        then -- no transport order for vehicle @
5 ]# w" v3 Z# o( a3 l. u                                @.Destination :=
( x0 y; h7 y5 _* ]* g8 D, h7 Z! d  w                                rgManager.nearestFreeStation(@,track.~);
4 i) t4 l; Z6 {. B4 p- F                                newDirection(@);   2 x; m( I. x3 f0 A
                                if @.Destination /= void then* G# Y9 Q' f: l  z, s
                                        @.Destination.NumReservation :=0 {3 u3 ?" ?7 ?
                                        @.Destination.NumReservation + 1;+ p$ L; F7 |8 E/ J. U* N
                                end;
. w" g* @# n4 r1 ^+ \1 o$ L" Q$ }                                @.CurrIcon := "drivingHome";
  }0 D' U& e% k- o+ y- t8 H                                @.DrivingHome := true;1 w' h, r2 S& w) o7 _
                        end;: e  w9 w5 j! }8 J) Q
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
5 n  Y- ~( r5 b& Q- C8 D' H' Q                        part := @.transpOrder;
; i# F2 I+ ?8 Y/ M                        part.move(@);-- load part
. a; g2 g% @; A/ T" w0 Q" N. K5 t) f/ U* ?                        @.CurrIcon := "load";
  P) g5 E3 Z: x: ~2 Q                        GlobalDistObj := part.globDestination;
) Z* ?# f3 k4 J( y- a2 r/ M% i                        assignLObj := rgmanager.rgAssignL;, w7 L1 S+ Q( B
                        row := assignLObj.getRowNo(GlobalDistObj);* b5 [# P7 x/ m0 ]
                        if Row = -1 then -- since 70
) Y- p! w& C, |/ e( q" o3 M                                if lan=1 then) F6 R8 J8 |9 A# R
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),- k- H* Y( S1 F# q2 D, Y8 r& U
                                                to_str("in der Andockstation: \"",?.~.name,"\""));
9 R. B' {: r; L! @/ ?" R                                else
) x' A( }5 o& j& K1 s. o( l                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
, ?8 C( W8 [( O$ v. c" P                                                to_str("in docking station: \"",?.~.name,"\""));                                % R( J; j/ q) k1 g
                                end;" W5 B' ~+ g7 H2 ?  S! _: i
                        else
, h, P# r9 S( C  \9 a* Z& l                                @.Destination := assignLObj[1,row];
  X1 q& N, J: q7 i                        end;                       
( \8 p( g8 A4 |0 |5 J                        newDirection(@);
: p0 t. K) O+ P% A+ z% A( Q0 s                        @.HasOrder := true;- c# o$ n8 I$ E# u' f& P# H5 s! x
                end;% v% j4 n7 ?) B% r% T* _- C
        end;
" k. M! V% w# h2 }' fend;        -- of the method, V& ]+ k- |9 o. _' C
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
, y) X, Z) |. l0 F- @, J/ U; J, J
这是AGV_putin中arrive的method。
. ]- m2 E2 w! A9 x: J, [  S, Z7 Z, m( ~0 K, E5 U( A8 V7 A7 S
当到达物料速度越高时,这个报警更多,
+ n0 U4 A  C& J6 p) p: `可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
6 v" Y. q# ?) F, Y3 \程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?# `+ @6 E5 K. t# V% W7 t

' E% y4 `7 z3 J0 N5 @. b另外一个小建议,就是move,所有的move都可以这样
! {, x. \* Z( F9 g& L3 k$ sif not move() then debug end
6 [; z( A0 K+ u) E) N& J# B这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
  c8 w: k0 d) \  k6 K% rplant simulation中的free libraries有AGV模板,  H, x" r8 a* p, \9 t! j
里面也有案例。
  Y# \* E) |0 ?9 @+ _+ z5 b我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。6 F% r  ~1 [0 X  A8 O  |1 f

8 m' E9 {8 a8 w) z3 X我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
5 x) q8 P* V; }: j; s' J8 U# e5 `. M& ~* {5 @
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
% b" F: F  S! F* c0 ]4 p这是AGV_putin中arrive的method。
6 F% j7 G9 o9 @7 |: |
7 E% z0 i+ C. ~( M* O/ W$ k" ?当到达物料速度越高时,这个报警更多,

1 ?5 k3 {+ I% V另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-7-19 07:31 , Processed in 0.014908 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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