设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6322|回复: 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'
- ^6 K6 B9 x: v# y*/
+ I, K; E( E; w! I5 R4 {is  Y8 X0 a$ D' W( a
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
9 b4 w6 b/ J" {# v0 j7 l1 ndo: T& S3 F& u( B! k+ P: R8 _
        Lan := rootfolder.Internal.Tools.AOLlanguage;
* q5 F% a# U3 Z        if current = @.Destination -- else return1 V. C/ L) l$ {. ~3 `( p1 g, J* U1 \
        then
& ^7 t! g! S$ Z. u7 `& x                @.Destination := void;! r# w% ^/ o5 b3 x- P( N, E+ F
                if @.occupied then
6 ~% g! W) R: f( {                        part := @.cont;
- ?* f1 i" A4 V                        @.transpOrder := void;
+ C- ^, \7 n2 N                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,! Y' s; |- R* J) o% q
                                @,root.eventcontroller.simTime);
3 e, `) M. r( f                        @.HasOrder := false;
6 Y. T( L8 X6 u5 r3 ^6 H4 J                        @.DrivingHome := true;
3 I) [. f( H. p* l                        rgManager.tryToStartTransOrder;# ^' o" S( y" n5 z& C% d6 r
                        if @.Destination = void
  M4 u( x& X2 `: \3 k: T0 {                        then -- no transport order for vehicle @
# a. T0 u5 z% k9 R4 _( h( \1 E9 L* J                                @.Destination :=
1 t. \" \6 g1 T7 J  k& E( D* ~                                rgManager.nearestFreeStation(@,track.~);4 I/ K6 ~- K) J$ E8 O
                                newDirection(@);   
3 D) n, A2 a( k                                if @.Destination /= void then
: h  |5 G4 w% L" X6 i) r                                        @.Destination.NumReservation :=9 Y8 H8 y  [8 M: ]9 I
                                        @.Destination.NumReservation + 1;
% f7 t1 u, P) H( b# k! K                                end;
9 ?& q) H6 x1 c8 h" R; X                                @.CurrIcon := "drivingHome";# H$ z. x# x/ ?
                                @.DrivingHome := true;
2 V8 l; M& q" B( `! h                        end;
& z% d0 p& S8 Q                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
8 F* d+ i' |5 n8 D+ A/ \. Z/ D- F  y3 s                        part := @.transpOrder;1 S# a6 O& y5 F
                        part.move(@);-- load part
5 Z( J" Y% ?$ D3 Z                        @.CurrIcon := "load";
2 B/ \  V; e% L                        GlobalDistObj := part.globDestination;
# P) n8 W5 r; j                        assignLObj := rgmanager.rgAssignL;
$ G4 L) U5 X" E- U                        row := assignLObj.getRowNo(GlobalDistObj);
9 O* z' y6 o3 Q2 \1 ^" N/ N                        if Row = -1 then -- since 705 N5 ]( a% J' M5 ?
                                if lan=1 then
- L. c! Y8 f1 F" d6 x4 G                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
& j( p3 o/ r. d! Y                                                to_str("in der Andockstation: \"",?.~.name,"\""));
5 O2 u% g; t6 f8 N* I$ I4 P                                else
; @" q, [$ o5 Z5 \& z% `4 @                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
" V8 p' D: X+ G/ d4 k1 l# C4 x                                                to_str("in docking station: \"",?.~.name,"\""));                                2 g8 H5 ^6 V6 o( @; |" h) [
                                end;/ {# |5 Z) y% T# J; ~
                        else0 U$ e. {. r6 X0 _% J* x
                                @.Destination := assignLObj[1,row];
9 C4 ~: x9 k$ H/ T# E  v, I- {, K# f                        end;                        . A7 O+ l) U2 r4 ~. L: i
                        newDirection(@);6 \0 r2 j+ \8 z! f5 s. s
                        @.HasOrder := true;
% o! e  q& i. C" J$ }; o4 [3 }1 b. g                end;* I6 g! ]7 A) m# T
        end;
$ L' p. j0 n" s9 R8 c1 |7 zend;        -- of the method
1 H/ ]0 S3 I# \4 s7 t. |
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
4 |) y$ s' {7 h$ G4 I4 S$ u
! @1 C  T3 U0 I3 @, i! _这是AGV_putin中arrive的method。
# N( A5 p. R* x3 A  u/ b3 D. E2 q5 I- d$ r" W3 j8 Z
当到达物料速度越高时,这个报警更多,
8 x: c/ ^& \7 U可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
  H) U3 \$ i* U程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
1 q8 j+ L- ]6 j! e$ {9 K4 l2 @$ G5 s5 x+ j- U  s8 e
另外一个小建议,就是move,所有的move都可以这样; i' l% o- H2 T: k
if not move() then debug end" b' v+ h9 i1 v, T' k1 r- H% E7 h: K5 D+ g
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
8 Z( B! V. O2 l) w9 Pplant simulation中的free libraries有AGV模板,- _. g3 B- i# u. x( }7 |. e
里面也有案例。! e1 F2 S0 b2 Y* [0 H! @) l9 L% O
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
( p$ l4 U7 D& V, c, e
1 l5 G9 B8 G3 E, D! A我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
7 [# f  r* r! d7 H3 f8 i2 y6 Z# Y8 h3 G" ~1 V
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 ) |" M; Y# l/ ?9 ?& E" K& _
这是AGV_putin中arrive的method。
( C- \% m: ]' ?5 D0 w( _! [3 B% T6 V" Z0 o
当到达物料速度越高时,这个报警更多,

+ v4 z! h- n, E) w- K) ]另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-1-31 00:18 , Processed in 0.028124 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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