设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7935|回复: 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'! G9 D8 n5 ?8 d. ]" A7 J
*/, {5 a* N8 ^6 V# K
is5 `+ t+ p) v, h5 _8 B$ V6 h' q0 K
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
) g, z0 r6 @& l  {do: P# G( L9 o0 o& d5 T2 A' {
        Lan := rootfolder.Internal.Tools.AOLlanguage;) Y" K- {# m, i, l% ]
        if current = @.Destination -- else return* l  ^4 C3 S, n+ Z1 U& ~& H3 z. C7 J
        then
6 {( l7 V. o/ W" t' o) n( \                @.Destination := void;
6 i* t4 Y2 Y2 d1 {7 `# d& c+ T                if @.occupied then1 F4 [( |. T; q$ I5 c
                        part := @.cont;
/ F8 C( ]) j7 g% U$ i                        @.transpOrder := void;
# Y" ^; c; ]0 N                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
; [2 P5 r* \3 m- Q+ x/ V$ q0 A                                @,root.eventcontroller.simTime);! |/ V7 V8 l# Z
                        @.HasOrder := false;
: L9 m( f. Q; X                        @.DrivingHome := true;
) Q6 k9 G7 d6 W& `3 f2 f                        rgManager.tryToStartTransOrder;, f0 Q) U+ M& R: d- [
                        if @.Destination = void3 W) u% b2 A/ _8 D
                        then -- no transport order for vehicle @
5 a$ d' b/ ^6 J2 R                                @.Destination :=
7 ~$ M4 ]( V8 W/ H: l  A) G' j" |* w3 B                                rgManager.nearestFreeStation(@,track.~);
4 X$ o& {9 x! ]/ ?1 J) s9 g                                newDirection(@);   
! J' I$ c3 t0 t$ k                                if @.Destination /= void then# T6 A4 r& V/ b- b
                                        @.Destination.NumReservation :=+ \- J+ W) K+ \. w
                                        @.Destination.NumReservation + 1;7 c/ Q' p* B+ s  q$ h
                                end;
0 @/ W8 V/ z! c9 k2 j* z# |                                @.CurrIcon := "drivingHome";; ~# ^  F+ P& _" [# d
                                @.DrivingHome := true;
' j% m3 P/ ^$ s3 f5 j                        end;
) ]+ F. r, x" U7 L                else -- the vehicle @ is empty, both vehicle and part are in the same dock station  k/ X6 h% E" g: _/ ?. E6 g
                        part := @.transpOrder;
$ o  I8 t. i, u. [; v                        part.move(@);-- load part
, H7 \6 m5 w$ F3 n5 C                        @.CurrIcon := "load";
! n+ D. P/ L7 w; f* I) w& W& v( Z+ Z                        GlobalDistObj := part.globDestination;
- `6 H1 L& h4 D" V2 I* O! n8 A/ L                        assignLObj := rgmanager.rgAssignL;+ \+ U" m$ z/ O4 d3 {! M% I! |
                        row := assignLObj.getRowNo(GlobalDistObj);/ e: Z5 D8 c  d0 a6 C5 [" W6 I
                        if Row = -1 then -- since 70
) L! R! V# N! A( \$ ?( a* p                                if lan=1 then
4 B2 x' |  l: i/ \4 ~  g                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
! K8 o2 D# i; S! Q- g' G& b0 l/ R                                                to_str("in der Andockstation: \"",?.~.name,"\""));0 |, Z# d, w2 U' w" I% x0 H. ^/ f) T
                                else2 {6 d4 T1 `3 F4 n( {
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
# Q5 ?" U! R. {2 G( W% W                                                to_str("in docking station: \"",?.~.name,"\""));                                - m" k: ]% l! |% O
                                end;
( o: v% N9 [, @. W! v& r5 t8 a                        else. \+ U; h0 M1 @) I6 j2 x7 M
                                @.Destination := assignLObj[1,row];
' {  C9 P# A* I7 b# x                        end;                        0 q0 n1 e5 l% z2 ?
                        newDirection(@);
  |* I+ M2 W+ T5 S                        @.HasOrder := true;
# Y5 o" z+ d& U3 C                end;
, I, N: g0 `7 p% e$ z/ }: J        end;
, Z4 ~( K/ L( D9 }2 I6 n1 W9 Gend;        -- of the method
' g# e0 X( P% d7 ]) r
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
! h# H: Y  g5 R+ r
, {- ]; N) E" b$ e这是AGV_putin中arrive的method。
! m& }5 E  Q( `; b
4 Y  Z8 t, L3 l, A/ |当到达物料速度越高时,这个报警更多,6 t+ ^: b+ k: V  z# M* Q' P; V" l" K
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
, k" O6 \3 x0 i, D7 `/ D程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?( `5 E* S- ~, \7 r. o! ]  r5 @3 S

5 H' }% O2 ^, e8 D8 Z另外一个小建议,就是move,所有的move都可以这样, N7 }* n" _7 l# g+ {
if not move() then debug end( m; {6 g0 q2 M& x
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。7 j7 y, U) D: [  l1 l
plant simulation中的free libraries有AGV模板,
% g# d+ r6 E2 @里面也有案例。( W' D/ k  S/ x$ Z/ Y1 j, Y
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。2 c$ i9 o. q4 V  S: q: W! O

6 i9 O, ?4 D7 q4 U" y! [我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 . i  a( G! a6 r: k9 W# O" ]7 y2 @
1 ]. y( S- `! n; _& W2 k/ F$ Z
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
& B+ Y+ I9 w' z4 W/ W这是AGV_putin中arrive的method。. ^* r& T) t9 @! s+ T# J1 n4 }9 x* X
2 ^* ]( F# X8 W7 V
当到达物料速度越高时,这个报警更多,
8 H3 C) @, ?5 J" Y5 R
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-6 08:50 , Processed in 0.016666 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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