设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9372|回复: 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'
% @8 g. d6 E: S1 `! _* W*/
+ K( \, x1 t$ X! {1 i$ O$ V. [is8 X9 t' f( C1 M' C" B' Y
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;' ~( w! H; W$ K
do
$ S: N1 |# _4 l3 A$ j        Lan := rootfolder.Internal.Tools.AOLlanguage;, ^8 h( d$ `3 M/ P: I+ \
        if current = @.Destination -- else return$ |6 c- K1 j& A0 d
        then) _! d/ b3 @* }  f0 c1 w
                @.Destination := void;
) j/ k1 A. b4 H2 T- k                if @.occupied then
( E/ q, A! t2 J/ z& q: J4 K3 P  R& V                        part := @.cont;8 C5 s. l* K7 `* f0 z8 @9 G6 T7 G) O
                        @.transpOrder := void;
7 R% u" Y5 d. Y                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,. s1 Q+ ?: [# B- R, t1 m
                                @,root.eventcontroller.simTime);+ W4 O( o) d) I' M2 L. u- I
                        @.HasOrder := false;3 `2 `, B% W# \5 Y% N  f
                        @.DrivingHome := true;
0 K& G6 X4 t  u* P                        rgManager.tryToStartTransOrder;
# x) @, A) m) Z2 i( d8 U% s                        if @.Destination = void
/ ^3 e" Z$ }  C! V  ]$ G) P% H                        then -- no transport order for vehicle @
/ \9 M# y, A8 D9 Z7 C; y$ k' z- V3 N                                @.Destination :=/ [) K8 r/ z1 Q/ u3 [
                                rgManager.nearestFreeStation(@,track.~);$ s7 p. Y# G' E) t8 S1 @
                                newDirection(@);   
/ L  G6 g5 x. ?7 [5 [                                if @.Destination /= void then
; _$ i6 I+ p0 Y6 a  B0 j: h                                        @.Destination.NumReservation :=
& G5 _$ z, Q4 \                                        @.Destination.NumReservation + 1;2 z2 |" G& b1 A
                                end;/ W, R, ^% `5 o! ?* W) I6 ~
                                @.CurrIcon := "drivingHome";
( S, C5 n' u! t& Q% w                                @.DrivingHome := true;
/ X7 g5 `; j( N- U8 P                        end;% d7 z. x- s0 ~6 ]$ j( N
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
* _9 t# Z& x; e" v" K6 w                        part := @.transpOrder;) B0 {2 j) X3 b1 p0 J: Z( T2 Y; h
                        part.move(@);-- load part; X' w1 p) ~, b% ^6 l6 ]9 q# H/ J9 P
                        @.CurrIcon := "load";4 _1 O! S+ A/ S) N) Y
                        GlobalDistObj := part.globDestination;1 p8 F$ Y9 {9 e4 W" m4 A/ X
                        assignLObj := rgmanager.rgAssignL;9 L; B7 `, t/ m  V$ k; o5 i. ?
                        row := assignLObj.getRowNo(GlobalDistObj);
3 m: L; v# @! i                        if Row = -1 then -- since 70- y9 l0 _' a6 O: F5 I- O, V
                                if lan=1 then
/ i. j- Z( U$ C) d3 B                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),- b# b& K. P  r; F  E  }- \
                                                to_str("in der Andockstation: \"",?.~.name,"\""));
' u2 B+ [  ?/ L: e) @                                else
4 }% v7 T3 \# d2 |3 h/ }                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
. m8 v: P! D3 _1 b$ Z/ C                                                to_str("in docking station: \"",?.~.name,"\""));                                # i3 ^, y$ A9 }* ~# z) u5 h
                                end;
# l' O# v) V" n0 i! f4 K& `! `- ?                        else
  C& E7 A& D# ~0 v5 y4 A( F                                @.Destination := assignLObj[1,row];8 ~( L  P/ T. q" ^3 A
                        end;                       
! _6 X$ G$ C% p& v; B7 q                        newDirection(@);4 v3 r7 K7 x+ Y: g% I) J
                        @.HasOrder := true;  r3 @& s7 r' W0 Z5 R: H
                end;
9 {+ j, r. o3 K7 V3 }3 ]        end;8 l& J" o% s. J4 k9 e# Q  X( M' O
end;        -- of the method
$ J, b: \/ _2 E' h. i# Y, }- D: w; ~  H6 B
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
+ X, X5 ^, q1 J8 j' }4 n* ?
1 ?: l* d; W! I# s这是AGV_putin中arrive的method。* b- }3 w, |0 }# M, N

9 j! U9 h% M7 a# L3 ^. l5 v0 B当到达物料速度越高时,这个报警更多,
7 F) v8 ]! v" _& g4 N6 J% q5 m# u可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。; z% R3 t' g$ e
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?) ~. z, z( m7 u$ M  W+ E
* X" ~+ |- K! u" G2 I* }) ^
另外一个小建议,就是move,所有的move都可以这样
, i8 x9 {' ~2 z1 h) V3 A7 l4 nif not move() then debug end
: X" R( S0 `: l这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
* Q1 a1 `" P! A& ]: N0 v4 @plant simulation中的free libraries有AGV模板,
7 F. s5 T; W2 S& ?7 M5 P' f里面也有案例。
# i* w7 n! s6 M& J+ ?. X我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。8 U5 N" b! n5 i# M( Z1 |
/ `: O4 |( I2 _1 R' `6 ]7 V
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 + p( P, q8 T5 w& |
$ o9 @* p# x. Q9 H( d
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 ! U, e2 I3 R% k; h/ o+ i/ z
这是AGV_putin中arrive的method。
5 p% D- a% w0 Q! E7 `
( T3 y! A* [- [3 o# M  j% ^当到达物料速度越高时,这个报警更多,

* T1 T9 L# [# k另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-28 13:03 , Processed in 0.017425 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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