设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8931|回复: 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'
- V. K8 [% a; t7 t; ?7 o*/# G% t% m  N6 ^* B) [2 e  z
is# m& |9 T  p/ `/ ^2 U
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;+ O# d% k! c2 v4 }+ r+ F/ Y
do0 c( S7 P, R, _; d8 o: a, b
        Lan := rootfolder.Internal.Tools.AOLlanguage;
3 L( B/ z* K* b4 P- S. o        if current = @.Destination -- else return0 D( c) |. e/ I" b. ^
        then$ w" ^! y& r9 K7 c$ I) W3 `
                @.Destination := void;
( Z. ~( _: [0 i8 k                if @.occupied then
( a) m4 z5 L" X. F5 T9 V                        part := @.cont;$ J5 X: ?3 K, ~0 h/ P( Q/ n
                        @.transpOrder := void;
4 R3 F6 Z: X* o' C9 f( V                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
4 J  S* R& w; p% t  H1 M( x- _6 g                                @,root.eventcontroller.simTime);' V6 v( E8 G  u; [8 u
                        @.HasOrder := false;% [, a6 \6 z' |/ Z8 U
                        @.DrivingHome := true;1 K8 `8 a1 g' t, a
                        rgManager.tryToStartTransOrder;
4 G3 o) L/ U( Q4 G7 }                        if @.Destination = void
! n) x' m: Y) Z# @4 t2 d/ j% L# F                        then -- no transport order for vehicle @5 y3 s: K6 y/ q1 r6 o) h- u4 s. |: V
                                @.Destination :=
1 e$ @2 A- ^" T% e8 V. s                                rgManager.nearestFreeStation(@,track.~);, t( `( Y  n8 a
                                newDirection(@);   
; |$ Q' G1 [' b9 o% c                                if @.Destination /= void then- J& j' W* w0 g1 e9 m" Y) _: O! g( }
                                        @.Destination.NumReservation :=) q2 |5 r* T* d/ e3 u" H
                                        @.Destination.NumReservation + 1;
5 e8 j0 v$ U  ]' z, C$ q8 J3 G                                end;# D) |* d: d/ B5 ^
                                @.CurrIcon := "drivingHome";8 x3 b% [& F) x+ J4 t) g
                                @.DrivingHome := true;2 p) v- {2 t( D7 C( t
                        end;
3 W2 n6 b; a+ y8 g5 P4 ^8 `                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
; K4 M* f* o8 Q0 [. J                        part := @.transpOrder;* H; Z" B( A" q  L( b
                        part.move(@);-- load part* X7 L* t2 V. H: r5 h% C) ?
                        @.CurrIcon := "load";9 x' P% i1 o" @
                        GlobalDistObj := part.globDestination;, M# D" H; u( B; k
                        assignLObj := rgmanager.rgAssignL;
- l# L4 I- z4 R; ]3 `# o$ r                        row := assignLObj.getRowNo(GlobalDistObj);- \8 W* A" ^* W/ N+ X. W$ n
                        if Row = -1 then -- since 70
/ ~8 k+ a5 u3 \                                if lan=1 then
, w5 O6 j' ^6 a1 ]# Q, O                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),+ }+ ~) d) Y( a/ X% V! f' ~3 N  d
                                                to_str("in der Andockstation: \"",?.~.name,"\""));
8 f  @% z7 R7 l                                else
- f" [. w" C; w" r; C                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),  v4 F3 ~, e; g2 q+ \" o0 L0 X
                                                to_str("in docking station: \"",?.~.name,"\""));                               
: F, q- i6 _7 p2 i6 `8 J6 T/ _7 D                                end;/ R  Y$ q- I& k$ m) D7 C. s
                        else8 w/ X: c! ?/ ?  O  ]- N/ v: S
                                @.Destination := assignLObj[1,row];
3 T+ e9 g8 b% }0 h8 _                        end;                       
8 V9 p4 W) P1 w                        newDirection(@);
! h5 z/ H* N1 a2 G3 R7 s( P                        @.HasOrder := true;  D% W8 K; @9 w6 Y
                end;  B7 T. r+ z5 N8 q0 y
        end;
4 _( _# ?/ C/ \% e0 Qend;        -- of the method
( M$ ?. \! |, r: Y' w- s4 J
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
) y1 p% ]' \9 M0 [% H7 Q6 W! ]+ B% V
, W* b! Z9 d5 d, z这是AGV_putin中arrive的method。
5 L9 \# b' @! s: O3 p5 U6 S: x7 y) W* _/ N2 e/ r: C# G' F# u- V
当到达物料速度越高时,这个报警更多,
  t( Q4 g" A$ x; v' a& l9 B  r可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
5 E  \* z9 L  h2 `, A程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?1 Y, Y1 s, Q. N1 S7 X

. i% S$ R/ `6 z5 M另外一个小建议,就是move,所有的move都可以这样
: `6 [4 p! R6 E0 {% ^% Uif not move() then debug end
8 r6 B* `( |1 f: x+ W8 ~, ~这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
: P1 S- u4 N2 n  z( z$ f  i: bplant simulation中的free libraries有AGV模板,! n! P' L4 e& i( t6 n% \
里面也有案例。
# D2 x( }9 z# B" v, r+ X6 L  U& K我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
6 \. b( d7 K# F0 \! K8 n8 D: g
0 d& _( n6 v* }- J3 b8 W我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
1 S" U2 n9 W0 ~0 {7 h' Q" v, C7 q* T. w# g5 a! x
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 ' k) c* j! z, b
这是AGV_putin中arrive的method。* ^/ @% w7 m% R5 q: c6 Y4 o  c

% `- \; d# I* G& ?! c当到达物料速度越高时,这个报警更多,

, g# `, r) T# E' w3 u. o2 x9 y" Z& l2 p另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-4 23:15 , Processed in 0.016531 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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