设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8159|回复: 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'
9 o) v9 t3 @: f' J. c" I, F8 ?*/
& L: p5 e( d7 C# ?  A, L+ ?is
! k4 G! o/ C& H. v# X- }1 I        part, GlobalDistObj, assignLObj:object;row,Lan:integer;  d& [% s% y' K
do- C9 Y! y/ h  `
        Lan := rootfolder.Internal.Tools.AOLlanguage;( h1 ~) x" n/ P9 t( x
        if current = @.Destination -- else return
( `3 ?& S% T) d: H        then
$ W$ }: J& L- r/ ]& {6 ^                @.Destination := void;( [: k7 f3 {$ e4 ?
                if @.occupied then
- N1 W+ [3 L( B& ?; S6 R* h- O" |4 w                        part := @.cont;( n9 ?  A5 V  [  v8 `
                        @.transpOrder := void;
  A" T: g5 X8 O6 ^                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
: o5 d$ S  {+ O! @                                @,root.eventcontroller.simTime);  H' w! z! _" {# @3 f
                        @.HasOrder := false;0 d$ {% u3 C( D+ c& {7 D! B
                        @.DrivingHome := true;" d/ P$ v& v' L
                        rgManager.tryToStartTransOrder;, g! c. T. v7 ^0 W5 z$ m" M
                        if @.Destination = void* X+ B# X2 i: Q2 m# g2 t
                        then -- no transport order for vehicle @
$ U: A4 z  ?' ~! f( h                                @.Destination :=# ~( |1 l; S! e
                                rgManager.nearestFreeStation(@,track.~);
' F0 M0 m  L! g                                newDirection(@);   1 B4 e. H7 X; w* B
                                if @.Destination /= void then
2 ?% r. I7 l9 Y/ G1 y# S                                        @.Destination.NumReservation :=
& {6 t& x5 x' [/ ^) D                                        @.Destination.NumReservation + 1;8 k6 i/ ^/ e4 f+ p! h
                                end;
+ x  [  x9 ~* p# K, ]( _9 y                                @.CurrIcon := "drivingHome";. a: B% r/ E  ~# a0 P
                                @.DrivingHome := true;1 W% t( i, w' }2 `  i  I; [0 f$ ~( h
                        end;
/ ?& y( h$ ?/ Q  z8 B' N                else -- the vehicle @ is empty, both vehicle and part are in the same dock station- S9 l; E) h' ?! z/ A( h
                        part := @.transpOrder;1 d7 q, ?. A4 \! a2 g: ^
                        part.move(@);-- load part
) ^  E8 R7 L( d, \- a$ u' _& [& N                        @.CurrIcon := "load";
' R- R9 R' ~. M2 v# Y                        GlobalDistObj := part.globDestination;- `" P5 @; Z! t# [* m4 T$ D
                        assignLObj := rgmanager.rgAssignL;
0 Z! |7 x$ e: t7 b3 j6 s                        row := assignLObj.getRowNo(GlobalDistObj);: P( f& [" J6 f5 u, s# Z. e
                        if Row = -1 then -- since 70+ {1 v5 m; w4 x, `, E
                                if lan=1 then
; Y8 G" e: y4 P; l% [3 c, L                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
# G; ]$ U0 N. e+ @( F/ t& x+ h' ]                                                to_str("in der Andockstation: \"",?.~.name,"\""));2 V- c4 m1 H( x# L
                                else0 w* z9 Z/ N5 O- ]+ X
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
: p* N0 O$ z3 i& k2 r3 z                                                to_str("in docking station: \"",?.~.name,"\""));                                + I6 t! s, F  q
                                end;' V, ?4 v9 O' Z% X. B
                        else
2 y6 g" c3 O6 V# w6 }# I* K) p2 M                                @.Destination := assignLObj[1,row];* ~5 q; i+ h5 u' o
                        end;                        6 o% g" E+ s/ B
                        newDirection(@);$ h  M. d) g, ]0 D
                        @.HasOrder := true;* S4 p, G8 W5 D2 O
                end;
; g6 u9 T6 f. _' }- {        end;
, K, ~1 M  _8 N8 yend;        -- of the method+ W! z( G; [7 m- j  Q- D
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
. K9 S3 |' z- u$ d# j, v) a5 X$ r: q, l
这是AGV_putin中arrive的method。/ v( d  j" \" P* r8 x# D( b& w

$ b# Z1 _7 i9 [当到达物料速度越高时,这个报警更多,/ y1 b, j3 B- J" t& A/ }) J# K! e: u
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
$ `9 p$ s* U" q" ~( M程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
4 Y0 H" V$ i& `3 j2 n; @
; X+ N& r* X  w& r5 h2 S另外一个小建议,就是move,所有的move都可以这样# P) q6 f8 Y  m! Q  P
if not move() then debug end" `( O" O; c( [/ k, V$ d% E
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
* e; f. x7 B2 F5 h$ q. M3 jplant simulation中的free libraries有AGV模板,- ?! g+ d& }6 [! |
里面也有案例。( N( k  h0 ^7 \5 S, |
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。) p( O9 L7 y" W5 ^+ c3 t
5 [5 f/ y) v% i1 a( Z/ `
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 ; C! l6 r  R! `/ Q; J  z7 O

8 j# d, ]7 N- y3 e# L那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
: X( k1 j% c& k! f' e; `( E% @" p. t这是AGV_putin中arrive的method。# u7 N& E) R5 R: z& s7 s

+ o: Q  W  |( }9 J  O6 g; N- W5 x当到达物料速度越高时,这个报警更多,
6 p0 G* q/ D. b4 G" F/ Z
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-18 04:34 , Processed in 0.016428 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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