设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6686|回复: 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'
5 A' q) ?# i$ g% z*/' w" F8 g3 N; L% j6 \& f% H6 E4 Q
is
1 V1 a# e1 h1 ^+ V( ^: z        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
+ c" d7 v& ~+ r6 N" X& q. H* Mdo
4 u& u. F8 l; ?# [" O+ U3 t% |! P7 y        Lan := rootfolder.Internal.Tools.AOLlanguage;, {' O5 z- D, n( }1 c( j
        if current = @.Destination -- else return
# a5 V- `0 H/ i        then
, k& ~; e3 t: v) ?                @.Destination := void;+ d; N0 X/ ]; ?9 b5 A' s
                if @.occupied then
# K" u4 n1 D4 d2 {7 ^! V5 C8 o7 E                        part := @.cont;
( r8 ]' W7 g2 C" h7 R+ @( K& q                        @.transpOrder := void;4 a' ]# B9 S& U
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
1 d4 j+ _- m: `* N$ p                                @,root.eventcontroller.simTime);# m8 r. L; ^2 ~, j+ t. {
                        @.HasOrder := false;
0 @  H' y0 z: |) [3 b" k                        @.DrivingHome := true;
' q  w# h) ~: p' W0 V$ w: I                        rgManager.tryToStartTransOrder;/ Q5 ^" H9 V6 E1 g9 g
                        if @.Destination = void+ O9 Z6 G4 @2 g
                        then -- no transport order for vehicle @
0 z4 m/ W5 H. d$ Z, I( y: B1 }                                @.Destination :=
3 d% I" G+ ^1 @9 p                                rgManager.nearestFreeStation(@,track.~);
+ V5 x& o1 A. m; L" ~! u                                newDirection(@);   # f& g3 b& j2 l/ P% |8 Z
                                if @.Destination /= void then$ o7 K4 j% ~# D; ~
                                        @.Destination.NumReservation :=( h- `, \2 G6 z: u, H
                                        @.Destination.NumReservation + 1;1 k+ `9 p9 j$ P  ]2 y* {8 m
                                end;: I0 s" [! z5 m0 X
                                @.CurrIcon := "drivingHome";3 s0 P" J7 u! ]7 l$ l
                                @.DrivingHome := true;
, ]! a( I3 O9 I! t5 N, I                        end;
- f2 X1 B) W# v: t& P8 |4 O/ \6 i                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
' P9 a- g1 N; x5 x, l                        part := @.transpOrder;
3 o2 m+ V1 ]7 L2 M                        part.move(@);-- load part2 h# Q# K4 b% x5 z
                        @.CurrIcon := "load";9 p# L' Y% o$ p
                        GlobalDistObj := part.globDestination;# m8 k& [$ m$ Y9 P! V! i3 J
                        assignLObj := rgmanager.rgAssignL;
4 g' [. C- K# b' I& R                        row := assignLObj.getRowNo(GlobalDistObj);
2 O3 H: [, N; S, E  B1 x                        if Row = -1 then -- since 70
& _$ q# b# [4 L+ ]7 c                                if lan=1 then* S& ^/ x( ^) `; `5 [
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
! Y& ~( B5 ]- v                                                to_str("in der Andockstation: \"",?.~.name,"\""));
# w" B% J, g) n' M/ c* U                                else
: }8 ~, H% [9 c3 a  T, W  q0 }0 L8 w                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
2 q: q. F/ J% `& @# k                                                to_str("in docking station: \"",?.~.name,"\""));                               
1 v% n& D/ ~& h+ f* m                                end;, P0 X- I4 l3 J( W: D2 t
                        else
9 T: z- m, ?7 g4 n1 R                                @.Destination := assignLObj[1,row];# G$ _8 H7 {8 ~8 I7 Q
                        end;                        & K& ^9 K  y4 n4 q+ Q% D( T9 s
                        newDirection(@);( M2 q! \9 V. z, B
                        @.HasOrder := true;
# t9 ]+ }$ `3 ^/ f& Q                end;- a# K* M$ ]7 _; p7 v0 M9 m9 K6 I
        end;/ J& A8 o1 f' ~) c$ ~: ~! ?
end;        -- of the method' O( z3 I  M; p, b( b
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
7 V# b8 r( w" C: o2 C# y7 m& E) r5 u! @# g0 g
这是AGV_putin中arrive的method。
  n, o- T* F3 J) x
3 z4 H2 V/ n* q5 K当到达物料速度越高时,这个报警更多,- F( ^7 p& ~) b3 j0 Z  x" V
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。. \6 ~8 q; K0 P, B! k
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?2 `) }& ]3 m- z0 z6 N: P8 T+ n7 Z+ x
! F% h0 f4 v, a: h# q5 x% [! B5 R- D
另外一个小建议,就是move,所有的move都可以这样; |9 J4 h8 w1 T5 P5 L! k7 g
if not move() then debug end  I' I5 j$ @3 f$ ?/ z: Z) ]
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。4 u1 t) ]* U4 S
plant simulation中的free libraries有AGV模板,
, z+ o1 K; }+ t; s# t里面也有案例。
; I/ ~* C5 J4 J" m% I' I9 z/ _) t我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
4 Y  P% o" D/ ?; o: _3 ]9 u7 ^
7 p( p+ j; ~: E6 m1 m+ Q  c我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 ; d8 {+ o6 Q( e1 d
. ]" p3 J- U& E
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08   R3 L5 ]2 q- @6 p+ Y0 L
这是AGV_putin中arrive的method。
" b8 O  M" _& y0 |" P- ?: w/ ~% n# C1 k) e6 n& I) U4 O
当到达物料速度越高时,这个报警更多,

: M' k' _" h0 t$ W另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-20 23:39 , Processed in 0.027425 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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