设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5553|回复: 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'  B( s5 f) q# b  C# x; Q# J' J, `
*/% ~, y- U8 E6 g; ~
is! C' D* ]3 L/ G! a
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;) o6 l5 U, u4 Z/ s7 x1 n
do
9 q. W' @* C  h$ I6 U        Lan := rootfolder.Internal.Tools.AOLlanguage;0 k7 E7 H" _8 @7 v
        if current = @.Destination -- else return
  n  X& G8 ]# h( v- W        then
+ X- s, `' Z" y+ Z% Z                @.Destination := void;
# |1 S& d* K, F* k9 J6 u                if @.occupied then
# F% ~1 o" u7 w" H                        part := @.cont;
* Z& q5 G# n1 O0 `                        @.transpOrder := void;4 M0 h7 }# [* `! Q- V
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,5 C9 _' ~1 o! r# {" o& p! X3 v
                                @,root.eventcontroller.simTime);( G9 y* _5 P" d
                        @.HasOrder := false;0 z# {0 N8 h: I3 l: F- M# H+ r
                        @.DrivingHome := true;
0 z0 b/ [0 \3 p8 [$ q/ @% t                        rgManager.tryToStartTransOrder;# [8 Q; N  z! }- J
                        if @.Destination = void- J3 _% A9 U0 o" K: @' L! p
                        then -- no transport order for vehicle @  L) n' ?- [$ e1 ~, Z8 H
                                @.Destination :=7 l. }+ _4 L1 A3 T  P) `
                                rgManager.nearestFreeStation(@,track.~);
6 ?/ V& P6 o" U                                newDirection(@);   
/ g! f. @* O: }) D, {# Y- x4 A; h                                if @.Destination /= void then5 @$ R  q/ r! c0 t1 C- @& x
                                        @.Destination.NumReservation :=
' b. E$ X9 W6 p) e                                        @.Destination.NumReservation + 1;" m( n, k7 H9 a/ C
                                end;
. ?, M- `% w5 m0 U- _0 M" ?3 m                                @.CurrIcon := "drivingHome";
  m$ M# J' ^& y( ^; [                                @.DrivingHome := true;
# B' t8 M' T2 l/ }                        end;* L0 B& R0 b$ I4 n
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station. r  I6 [4 I7 C5 K5 x; J/ ~0 I
                        part := @.transpOrder;+ I- D; Z" s1 W8 Y* }8 E5 J9 F# j
                        part.move(@);-- load part
; x: r0 e3 y9 S; Z                        @.CurrIcon := "load";
0 }+ f. u) \# ^& s) S/ G3 n: s                        GlobalDistObj := part.globDestination;
0 S1 t7 k5 C& C) x, t                        assignLObj := rgmanager.rgAssignL;1 {7 d9 F+ E* D+ m' Q
                        row := assignLObj.getRowNo(GlobalDistObj);! {* _. V" j" M2 u1 {3 D8 U# t
                        if Row = -1 then -- since 701 y1 Y& `/ q4 X: b) Q9 k8 L
                                if lan=1 then
* j# K. t* n" \: Q6 i                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
8 _6 b; v2 g" Q# F: y& i                                                to_str("in der Andockstation: \"",?.~.name,"\""));' m4 |& i9 ?9 @  n) r" S, X  s, p
                                else
% _: k1 u3 ~+ K& R2 e" S                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),$ N% o( i/ e1 e1 E! _/ d
                                                to_str("in docking station: \"",?.~.name,"\""));                               
* h; w! a( }6 n0 ^  y3 E                                end;" j# ~- u7 z6 G
                        else1 D* n- {; `' D5 r! S: p  n
                                @.Destination := assignLObj[1,row];3 x8 ^. J6 Y1 r( u& {
                        end;                        $ i  @7 g) I% s( F$ D6 W0 Y
                        newDirection(@);3 K8 k) J3 N( x1 E- V' `! [
                        @.HasOrder := true;
& r* v% _/ }; g. t& @4 S                end;6 R' X4 n& |$ T% U
        end;
  T& u8 M4 @( X  dend;        -- of the method' [0 O7 H( X6 {$ i& O0 V. n0 `3 t2 T
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
$ ?) ^& S8 Q& b, A. _. c  K( F) }  q5 I! H1 O2 f2 s/ w# h# b  [4 ~
这是AGV_putin中arrive的method。- o& U9 V8 x, S; }# D$ z; ]

/ j1 P8 c& O$ k! |  |' m当到达物料速度越高时,这个报警更多,; x5 H5 M! P1 d  m" f
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。. s* N9 d6 c& V8 O! z
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?* D& O) V6 i3 A8 i. d; w% m! }
- G7 W- i1 F3 U
另外一个小建议,就是move,所有的move都可以这样
: M+ {7 S/ v$ C1 lif not move() then debug end
  `; z4 k2 k1 d2 c' |; n. I这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
) b4 k8 [; w; q: z: splant simulation中的free libraries有AGV模板,
' I2 N( p2 Q+ f# z( ^里面也有案例。9 e4 |& G) W4 D4 G0 y- s) C
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
" Z' k9 T( `# D) l  m  v5 s; I, s# V4 F. Z
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
  U( t1 Z+ B8 H5 |, F4 P' F3 S4 y: e- F# h% E
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
# D+ q3 D, W3 H. n. U9 Z这是AGV_putin中arrive的method。+ L: V- o8 ?0 |: d* L% P

7 E' X" X6 O# J当到达物料速度越高时,这个报警更多,
5 p) U+ H) }8 l" s* Z5 n9 w3 ^
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-4 23:24 , Processed in 0.976038 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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