设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6967|回复: 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'
: X' B6 k! r7 X4 ?: W( A! {- K*/) w( c% O/ `8 k5 X# `
is  N2 p# U/ ]9 \, ]: ~( w
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
! U5 U! p. L2 Y) u0 Odo9 i5 G( H) e- M( j
        Lan := rootfolder.Internal.Tools.AOLlanguage;1 z3 {6 F" l4 [' E! H
        if current = @.Destination -- else return
+ E! }) `# I2 q$ m/ P        then
0 N, S. Z+ W( ?, r4 t' J                @.Destination := void;8 n; T8 E# X5 p: w7 L6 ^
                if @.occupied then1 V% I, q# R" j- {  ]
                        part := @.cont;0 y! P4 I: U+ F2 _
                        @.transpOrder := void;, Y9 F' b2 [: M' J4 e( L
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,3 P) b! T; D1 J9 H) p
                                @,root.eventcontroller.simTime);
, l0 k) m: l+ F% y+ R                        @.HasOrder := false;- }$ z: o& Z1 ~- c' d9 Y. A
                        @.DrivingHome := true;
2 h0 P5 K6 C$ O1 L$ `( r- ?                        rgManager.tryToStartTransOrder;& \( h( X! s) c2 A4 X9 `
                        if @.Destination = void/ N3 n$ P, e2 |- c: H0 S' G1 M
                        then -- no transport order for vehicle @2 i( c, e( ?" {. K% `  J
                                @.Destination :=! ]+ M1 h  ]+ [7 y* j1 Q% H
                                rgManager.nearestFreeStation(@,track.~);
/ v: G& b: x$ a- s. L( H5 s                                newDirection(@);   . h* F  Z/ U6 \, M, h6 X0 k/ @
                                if @.Destination /= void then- R$ X6 P- G" s' j3 o7 T1 |% k
                                        @.Destination.NumReservation :=
1 X) Z2 Y( D! a/ R9 Y                                        @.Destination.NumReservation + 1;; F& P. O$ F* E* d
                                end;( s! w' P$ E9 }3 ]! [- Z
                                @.CurrIcon := "drivingHome";; N9 h' U2 Y  Y7 ?) I
                                @.DrivingHome := true;
. o: o+ }" D2 q1 n$ }+ y# d                        end;6 X- E+ u( s( ^
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
* g7 @' L! S8 W8 j8 ?/ n: u9 J' }. [                        part := @.transpOrder;
4 H. ~" \8 [* O4 C                        part.move(@);-- load part8 X, V- R' H# A! g
                        @.CurrIcon := "load";8 W+ o6 k' D2 R$ h4 @
                        GlobalDistObj := part.globDestination;" l/ B& g& j* ?! T& Z" X
                        assignLObj := rgmanager.rgAssignL;# R, L. C! L, A& e+ @
                        row := assignLObj.getRowNo(GlobalDistObj);
' B/ W4 `  d8 p4 n( q1 `                        if Row = -1 then -- since 701 o, [: T% o$ O9 X, m7 G" I
                                if lan=1 then
( k) {- B1 E1 j% ]0 `                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
  z2 Y$ P, n5 B+ a; \                                                to_str("in der Andockstation: \"",?.~.name,"\""));& L- L3 H* l/ l
                                else( ^+ U0 T: I2 A2 K, ?$ m8 A
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
) a' S6 P7 I( s+ m/ b                                                to_str("in docking station: \"",?.~.name,"\""));                               
3 }0 Z8 ^  s  M/ K& s                                end;+ I+ j/ k# i# D8 A& V
                        else
; J9 r5 U7 M1 S: f# }( S( R0 x$ N                                @.Destination := assignLObj[1,row];
8 H% y1 x; h- b                        end;                       
! d: f. L; _9 X  H# @+ x                        newDirection(@);
, t8 m( o8 l) h* w, N- c5 s                        @.HasOrder := true;
  x& U+ {, r% M# N1 C                end;1 {7 `4 m. F" V4 w1 F
        end;$ k: u) `1 p) M% n' D5 o
end;        -- of the method6 D3 {% j) P2 \! q  e
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
- A5 I! f' p: l% [8 L* L
3 N- P0 {& X  Q+ F. B0 F( ^这是AGV_putin中arrive的method。
5 a* U: x; _  |9 _* O* l( |: ]' j/ w* k$ }! X: O' W3 T
当到达物料速度越高时,这个报警更多,
5 }" Q) w# y) h7 }  _可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
0 F: D$ W9 e% P; J2 H7 Z4 k程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
, ~4 @% n; [. l7 ]1 R+ O0 X
8 e, X# S2 p6 ^$ J! N) S另外一个小建议,就是move,所有的move都可以这样
7 ^/ Q/ Z8 B9 K  s% Tif not move() then debug end7 T+ B7 G; C1 l* u* V' c; g* f
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
2 y6 k, c2 t) j+ A0 E) e2 N) `' F5 Rplant simulation中的free libraries有AGV模板,9 ]: B0 `/ m; O: Q3 @
里面也有案例。
  m6 M' G6 V& J& O) h, P我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。3 v0 o; K) d! c0 g1 ^- n# t
0 m, c3 I) I! }  t' Z* J* ?" A
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
  M* w# F! }3 |
: x% t1 O+ p. ^) |3 g; w  H* C那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
% l0 B. Q& F  ]: m这是AGV_putin中arrive的method。9 }5 u$ R; Z, y7 F
7 C3 h$ e' z( d: L) S
当到达物料速度越高时,这个报警更多,
, B" P! i% l- b
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-8 18:28 , Processed in 0.018710 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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