设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9921|回复: 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'
& I/ M- V% C+ l1 G% L8 d*/+ D: |# X9 v5 j. Y1 K0 K" m# J
is
' z9 A8 A+ O3 g9 h        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
% f+ |! [  J" `( k2 M( mdo
" ?' U0 ^# w( E. x) |        Lan := rootfolder.Internal.Tools.AOLlanguage;; L( p" h) F9 e2 F+ ?
        if current = @.Destination -- else return3 R+ K( p& [3 I( F4 h$ `+ f% d
        then
! l6 B: P+ ?. i0 y                @.Destination := void;
$ F5 t2 m( e2 M8 D6 F2 f+ O$ `                if @.occupied then
: J$ \% K0 m' \5 l5 [. U9 {                        part := @.cont;
  K. y5 n& F9 `6 Z# ?0 r                        @.transpOrder := void;+ ]/ s+ A; y' {$ w4 p
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,7 C1 ~7 S5 Q/ @% K7 t% D' D' B( k
                                @,root.eventcontroller.simTime);
# i- T$ h+ \* i5 E9 n  C. L                        @.HasOrder := false;2 |6 C/ ^& e+ ?6 |3 o  ^
                        @.DrivingHome := true;
* r2 O; B$ M3 A                        rgManager.tryToStartTransOrder;+ X, Q8 S# l- |! A' D  |/ X
                        if @.Destination = void' F( i& c( E% e) C( x
                        then -- no transport order for vehicle @/ }/ Q2 {$ K" B3 H% v+ |
                                @.Destination :=+ d' i- E2 N1 V2 R
                                rgManager.nearestFreeStation(@,track.~);/ i; A* F& A- `2 y! r) B5 H1 u
                                newDirection(@);   8 f  P6 z- ^4 V& \" G2 S
                                if @.Destination /= void then
) g5 k3 h' [6 i$ C  g                                        @.Destination.NumReservation :=! R; f, F/ r' I3 ]4 F
                                        @.Destination.NumReservation + 1;7 ?0 g, ?" U4 n0 Y$ K. ?
                                end;
3 R& ?$ }2 a% R+ O8 z( P0 }                                @.CurrIcon := "drivingHome";5 F1 v0 \' Z+ d4 ]* i- s9 N9 a
                                @.DrivingHome := true;4 ^" l& G5 W1 O* C' X0 n, S( K
                        end;  i: k0 V8 f. U3 R# [
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station3 [1 G$ ^: A! ^2 Z) I$ d% M
                        part := @.transpOrder;6 v5 Y8 m' b$ i3 @6 k
                        part.move(@);-- load part! [6 S* R+ P  \
                        @.CurrIcon := "load";2 u, \' F; a2 d1 N+ b" o9 R
                        GlobalDistObj := part.globDestination;
+ g1 {) `# V  z: g6 p0 [/ U. c- x0 G  Z                        assignLObj := rgmanager.rgAssignL;
# {$ J# H4 D* u8 O: C                        row := assignLObj.getRowNo(GlobalDistObj);
2 _4 h8 e7 Z+ u4 S  O                        if Row = -1 then -- since 70
+ G8 L8 a4 R3 ?5 G# B: L                                if lan=1 then
9 J* `6 g$ D; R- u* N7 V  v                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),4 X$ G# c. T/ k, _* p
                                                to_str("in der Andockstation: \"",?.~.name,"\""));
  k9 ^; S, \2 U; ]                                else9 n1 Q, [' `1 j  G3 v, [. r8 r
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
# {* Y3 `$ t8 {; |' P                                                to_str("in docking station: \"",?.~.name,"\""));                               
% V& [+ i4 e$ _' b! @                                end;/ Z! C0 W+ i' X  M% b
                        else
5 K4 ^0 w$ ?- Q$ d% u" O                                @.Destination := assignLObj[1,row];
5 \7 E+ c' J1 ?2 ^. j  y2 a6 J                        end;                       
: g+ w% w& n& A4 C4 u3 u                        newDirection(@);
; F: |! d7 N, ~9 J, m' ]                        @.HasOrder := true;* x, G2 u; P- y" c
                end;
& {7 Q  p, l  ^0 z7 A4 b: f        end;
0 u- M; }( y! O7 f- Dend;        -- of the method6 J' N: U6 F/ _" |
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 4 v9 v; q+ Q$ c" V, L

$ n, K* B7 F& L4 i' x, w/ c& X这是AGV_putin中arrive的method。# x+ F" \& e/ [2 ~
/ T- U2 F& Q8 m( {2 H, F
当到达物料速度越高时,这个报警更多,
' ^; C- @. U5 M* f; Q: C5 u可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。+ X* f7 \4 H! P, q- t9 y
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
6 `3 G' W" t) ]9 |8 g
. `: u8 D/ q3 Y$ J% k6 q; S( [另外一个小建议,就是move,所有的move都可以这样
. G% N; h$ q4 [if not move() then debug end
& P) F0 d3 J  Z2 U( k0 ]这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
6 k% a0 r3 \: N  Y' Xplant simulation中的free libraries有AGV模板,/ l  e: M2 Y  |) W/ C+ X# C
里面也有案例。
. E# b( o  g: h我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。2 x  Q4 s# W6 L1 s6 @0 e( C

: \+ M/ c3 }/ x0 h) F' z6 [我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 ( |$ u' O. m- _

$ y2 X# _7 `2 r; r! {2 `那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
; l9 _6 C* [, ?% `; T/ ^& R1 x* X这是AGV_putin中arrive的method。
! a  r6 i! @/ t3 I& _5 s$ n$ S: ]
3 r; F. ?+ s! }0 ]( H8 ]当到达物料速度越高时,这个报警更多,

  S: S$ f$ X  @1 ]8 [另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-2 22:16 , Processed in 0.016333 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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