设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6018|回复: 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 i7 h# Y& H0 C- P9 q) K*/
/ p% j# k# }4 H0 r9 vis+ H! T. l3 T, Q
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;. c) E. }5 b$ w, B. z
do6 j5 w$ |4 S3 L
        Lan := rootfolder.Internal.Tools.AOLlanguage;
+ P& X% T7 M- E0 ?7 x3 ]8 H: E, L; q        if current = @.Destination -- else return
/ ]+ P' C0 ^! W        then
8 \3 c# n3 O1 R" n4 [; _# M, |                @.Destination := void;. K2 ]# Z3 j0 |; |5 F3 j
                if @.occupied then# ]/ L% E8 O# u' j: E# p
                        part := @.cont;
9 T; R4 E% n, w. N3 V  P                        @.transpOrder := void;
8 @: r" g( g8 H5 @# m5 i                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
+ H0 E5 `6 d6 K5 R* M; e                                @,root.eventcontroller.simTime);
& _* j3 O) E8 V1 _9 p: H3 y                        @.HasOrder := false;8 z# k* i: j" G$ b/ a
                        @.DrivingHome := true;
/ Z8 Z. v, I2 P3 V2 V                        rgManager.tryToStartTransOrder;( s. @8 i+ V4 z0 |2 w( k( s$ j
                        if @.Destination = void8 H0 Z( ~- [0 a  S8 G' v
                        then -- no transport order for vehicle @
5 ?' Q- ]. D, ]                                @.Destination :=, r# d. O0 N0 |7 {4 L- I, R0 k! ~  x
                                rgManager.nearestFreeStation(@,track.~);
6 I+ j1 h! S$ S7 g8 U: G& c3 R                                newDirection(@);   
* _7 o6 _( [+ v% s8 q. x) f, p, h& q                                if @.Destination /= void then3 H6 j, H2 B4 G7 L
                                        @.Destination.NumReservation :=
: R; m6 G% d& s' i% c                                        @.Destination.NumReservation + 1;
  L7 V4 q6 f  K. S                                end;
  f$ f; {3 W! f3 I, [: D0 \                                @.CurrIcon := "drivingHome";
4 M: [) @* s: h$ p: g                                @.DrivingHome := true;" d5 {5 Q- ^. F. w2 k
                        end;
; S4 `3 ?0 ^$ C3 b* z                else -- the vehicle @ is empty, both vehicle and part are in the same dock station2 D9 x/ d# r9 ^2 r
                        part := @.transpOrder;+ o; |# \9 @) z1 ~3 j1 e
                        part.move(@);-- load part0 J# S1 |8 U! B* c  n1 M% m$ Z
                        @.CurrIcon := "load";
( i  _. y6 n! q6 v; ]                        GlobalDistObj := part.globDestination;
! A  g+ C  ]+ A8 k( W                        assignLObj := rgmanager.rgAssignL;9 n2 d- U: c' h% n8 B9 O
                        row := assignLObj.getRowNo(GlobalDistObj);" h! v6 e- O1 r( }* T
                        if Row = -1 then -- since 70
5 B3 E# F& }8 B: [, Y                                if lan=1 then6 q: r) c6 S2 h( g; U
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),# c0 R% P2 u4 |2 _8 }
                                                to_str("in der Andockstation: \"",?.~.name,"\""));
$ X" k5 Y- I1 L! u; ]% F3 D                                else
" Q% R/ C6 k5 m+ [' Y                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
. b! R- d7 U' |/ r" d& A                                                to_str("in docking station: \"",?.~.name,"\""));                               
  {) H% L# Q: y                                end;4 X- S: R1 j0 |" u. _
                        else" [1 N; a8 [1 a/ ?4 V
                                @.Destination := assignLObj[1,row];6 H4 l- ^5 m; R  t/ a- h: j( \
                        end;                          f7 ^( }. s: [' h/ Y$ D1 f
                        newDirection(@);; h# E. L; P. v& l
                        @.HasOrder := true;
2 A% X% k+ @8 V9 i1 l- @/ I5 `                end;) C  m$ i: N! w% d
        end;
4 Z5 }$ X' Z" L. send;        -- of the method2 _1 N; {% ^7 G! s
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 . ^/ P: S! [$ m# G- q/ e  @5 [

% b5 E' U2 F+ J& |! o6 k3 x这是AGV_putin中arrive的method。
% H/ a6 E  S+ A" f
1 a1 i% b5 ~' n* x$ O* O9 t8 u4 U当到达物料速度越高时,这个报警更多,
/ f1 ]- j1 Z! H$ u( {* ^+ {5 N9 P7 Q可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
( m( x) c5 J( r- ]/ p4 @程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
/ p( z& t. l; R7 K$ S5 l6 D2 @7 T2 r! x$ d+ c8 i
另外一个小建议,就是move,所有的move都可以这样: w3 L$ P! Q2 x
if not move() then debug end
* ]. t5 V- G: c6 G2 e这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
/ L' c" d1 }! Z! [5 n0 Qplant simulation中的free libraries有AGV模板,, i4 Z+ U6 }/ [1 S
里面也有案例。. e% T/ E5 s- Q! ?* \
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
9 a: @6 V* o' B/ @, u: O1 ?
, N4 z5 G# P0 _+ }0 y我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
: Q. b$ W6 ?; T9 i
, Z3 I) [0 i) o) c  W那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 . \5 F* F/ V( v1 {, ^
这是AGV_putin中arrive的method。' r1 o% \+ N7 y# l
( n- n- f6 ~; ?; c3 d/ `) R4 b7 O. j
当到达物料速度越高时,这个报警更多,

" g; {: M. C" ^6 S6 W另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-1-13 06:59 , Processed in 0.023661 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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