设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6753|回复: 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 V0 `7 ~( M3 b8 J: I% a*/
7 w3 b) O) A- F1 R1 A7 n+ u; \# J  dis
9 w$ N# b( ?1 T3 a+ @        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
! }! ]$ @( B8 ^+ J% f9 {do
6 {9 W; E6 |2 P: F- V        Lan := rootfolder.Internal.Tools.AOLlanguage;/ C& {- M3 o6 n0 i. o0 v3 R4 E# Q
        if current = @.Destination -- else return! Q5 h% X( |" d- |/ W* a3 Z
        then/ H6 o" f* M/ F. v9 j' P& ]7 Q$ `
                @.Destination := void;
& N4 s+ E+ w" `# n                if @.occupied then
' V! u. `. _, w- E. |                        part := @.cont;' _4 A+ N6 y/ A
                        @.transpOrder := void;* A+ _3 \- q6 r2 D8 c! l
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,4 J9 L8 ~) L  J7 P; A
                                @,root.eventcontroller.simTime);
) G& m3 i' S# G5 \6 ]# a" q% }                        @.HasOrder := false;
7 b6 E; ^" z  Z                        @.DrivingHome := true;  J$ e! k+ O  F  N. P( [2 H
                        rgManager.tryToStartTransOrder;
  o  g1 `1 D& Z% A                        if @.Destination = void
# v  j/ d+ K. B, B/ l( @1 w                        then -- no transport order for vehicle @
& t8 a% U8 W& p* R( c. s4 z                                @.Destination :=
. B) W% K& L  L7 D7 ~                                rgManager.nearestFreeStation(@,track.~);, y2 x8 D* _* o  g1 ?3 e
                                newDirection(@);   . f7 R  R2 Q  h6 s3 C. W" I+ c
                                if @.Destination /= void then+ M( r1 K- P4 _
                                        @.Destination.NumReservation :=
; v+ M5 p' ~' b! Y                                        @.Destination.NumReservation + 1;% W3 G  u2 [. t* `; l8 ]% O
                                end;
/ Y4 b# W. J7 n) b                                @.CurrIcon := "drivingHome";) P+ v$ [9 P: L' u% t+ P
                                @.DrivingHome := true;
0 K, c; r2 P3 O                        end;! c  ?1 U& g9 n# M4 p2 w% l5 K- @
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
7 s/ S$ u. C$ ]; u+ t- B0 q" A                        part := @.transpOrder;5 G- O7 @' J" _  i
                        part.move(@);-- load part
, \/ @4 [9 t5 b/ S                        @.CurrIcon := "load";2 o! D$ l+ c/ e1 ]5 f8 T2 E8 [
                        GlobalDistObj := part.globDestination;
& K3 p) _! t" z' R) F, M                        assignLObj := rgmanager.rgAssignL;
- C# }0 i! l7 P% H- v                        row := assignLObj.getRowNo(GlobalDistObj);9 D! i' ^6 {/ {) u* z9 s
                        if Row = -1 then -- since 70) Y8 _) v, i( P
                                if lan=1 then# V; N" R& W- i( t3 y
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),& ]3 @. m/ D! c7 Q
                                                to_str("in der Andockstation: \"",?.~.name,"\""));6 F/ u- S: I) y. z$ K
                                else2 T  I; w) n! \, ~
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
& q3 F* {( F+ h/ m8 }                                                to_str("in docking station: \"",?.~.name,"\""));                                , W: p" l; S- x$ E% y" I
                                end;
9 \( ^) L6 H7 t2 `: x) U                        else1 C& Z* C3 ?" W% m8 O3 D  ^
                                @.Destination := assignLObj[1,row];
" e/ B/ O$ s- c5 k9 c9 Q9 I                        end;                        0 s9 L* |- K8 R1 }$ ~; r) H
                        newDirection(@);
; r; {& E6 t  ^5 t                        @.HasOrder := true;  B, ?5 x" H) ]; z6 ^3 |
                end;
! y5 m+ B$ e' \        end;
. C+ k3 X  D" z) U9 }0 T, {+ ]) fend;        -- of the method
! n- V7 v5 a5 M8 b8 M% S: e
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
8 ?+ O5 _( n- v5 R. U: g  _) `4 X% d0 m) o1 G! I
这是AGV_putin中arrive的method。% G) O& `1 T/ @0 m

( @# R4 ~( k  Z" ]/ y& P5 o, ^当到达物料速度越高时,这个报警更多,! U0 [9 u3 D9 D1 z# S/ v
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。4 D! S0 d! O) R6 f
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?8 _$ k, F7 y! L1 d

$ x6 J. y! U$ ?2 R& I另外一个小建议,就是move,所有的move都可以这样
0 T% d( `; r, L0 s. r: kif not move() then debug end
5 C5 |- u+ I- @9 r7 T' U这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
; c0 D  `( D, {' j; J+ z. a" Jplant simulation中的free libraries有AGV模板,
0 k% U1 U( u! ?* z" r) j: }1 U3 _里面也有案例。" _4 r/ e* K; v" F5 A8 T
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
7 q2 \! q, |1 ]- y* l7 U) N  i8 K( z% k* M8 D  _. D) N
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
2 h9 \5 T3 G5 f, D+ n  g! f, \& o! d! r6 @; ]+ U+ V5 J
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
; w. M$ z  q6 S: h- |4 q; D这是AGV_putin中arrive的method。
: t6 s- V+ E7 p. R, r
% Z* m( G2 }- O1 V, A" @8 F当到达物料速度越高时,这个报警更多,

+ \, s5 N8 R( G' d. ?& K: _另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-24 18:18 , Processed in 0.020925 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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