设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4418|回复: 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'
2 b+ x* a  S- p; o*/
7 d( [' H" ^% N" E& dis
4 A3 T0 ~( T! t' }        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
) Z0 A6 }1 c% D+ H0 n$ A) Bdo
# e: A0 j9 F" z: F/ X        Lan := rootfolder.Internal.Tools.AOLlanguage;& B8 I; W3 t1 X: n( L* F
        if current = @.Destination -- else return
) F, \/ a! ~) c6 D, P+ P        then
' U$ A: A9 D' N2 `                @.Destination := void;
; }/ u( n6 R* f! S2 l( t. i7 k                if @.occupied then
1 C1 V  y5 |! D( X! k0 r                        part := @.cont;' c* P6 x* A2 Q0 T4 q2 U
                        @.transpOrder := void;: G5 u% s9 l! g) A! Q
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
3 Q6 y9 x+ M6 W2 q: a                                @,root.eventcontroller.simTime);1 |9 K3 B' q8 o8 _3 b) e" f. y
                        @.HasOrder := false;
% p6 o1 o7 E) J( Q: `5 c# `* ~                        @.DrivingHome := true;1 x& N$ v5 \# M& M
                        rgManager.tryToStartTransOrder;
+ T5 f- [7 E. W5 @4 J# L                        if @.Destination = void
0 l1 n( X, e2 J$ s4 i' L; m                        then -- no transport order for vehicle @( [1 D: a! i5 }: h
                                @.Destination :=" z5 l8 M) r- G; v0 O
                                rgManager.nearestFreeStation(@,track.~);
1 @  t* p5 X# j6 m- C                                newDirection(@);   
; Y2 @3 j. q2 S& C6 S! G                                if @.Destination /= void then* B4 j: s, x$ Q5 i& i* K
                                        @.Destination.NumReservation :=" C5 R/ O0 q$ K, {% X* M  ~+ g
                                        @.Destination.NumReservation + 1;
$ ^; C  }& ^3 a$ c5 d2 P8 b                                end;
: _2 e9 f! X" O+ X, `                                @.CurrIcon := "drivingHome";" F6 x% f9 A  |: _
                                @.DrivingHome := true;# H: U# ]4 d. N
                        end;
5 ~) U' {; S4 m. R% O                else -- the vehicle @ is empty, both vehicle and part are in the same dock station, o, {. j; y/ N! T2 F4 D
                        part := @.transpOrder;- ~% {2 {$ w- j0 L' ?1 h. E5 B
                        part.move(@);-- load part: A8 ~1 G6 a0 ], e% N
                        @.CurrIcon := "load";
- V, E2 J- j/ |6 s. ~+ e3 t8 i1 N0 ^                        GlobalDistObj := part.globDestination;. ]  ], b) p0 }- h) a
                        assignLObj := rgmanager.rgAssignL;" K  r% @& I7 {% R" e1 v- d+ L/ n
                        row := assignLObj.getRowNo(GlobalDistObj);4 Y( r) O6 ?" \
                        if Row = -1 then -- since 70
1 C; H0 T, w; ?2 y. r% I9 ^+ z                                if lan=1 then( G1 E' L2 Q$ }8 `/ |
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
9 b+ G) D  h- Q; A                                                to_str("in der Andockstation: \"",?.~.name,"\""));, n+ R0 F: Q( o1 Z
                                else
* p- m. x' n% n, v" @6 ~                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
1 P  W/ ]$ b$ V$ [1 f! C                                                to_str("in docking station: \"",?.~.name,"\""));                               
# @5 R* C6 T  o5 n  D6 A' o                                end;+ o% n0 r1 W. ^. l. v0 _  Z
                        else
  W% H7 e* u# X$ M0 y                                @.Destination := assignLObj[1,row];0 X+ D* P& S  L0 n& t& X) {# f" c
                        end;                       
  O; L2 L) t! Y, G/ ~                        newDirection(@);
0 J; I( b9 n; ^                        @.HasOrder := true;
6 q$ y( b, B& ]                end;- w2 P! c! J" ?* x8 e' d. k
        end;
. @0 ^6 ?$ x; p9 }3 D' tend;        -- of the method3 g% E- K4 t. g9 O
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
; g3 r, X8 J2 v3 E% \& T- Q: |  U. S$ R  m! z. d* f2 D5 X
这是AGV_putin中arrive的method。! M$ c4 T( ]8 i3 `3 e( }; }

# z3 [+ Q5 G' ?- t) v% R; z当到达物料速度越高时,这个报警更多,# T# K9 G5 t" \& J0 O1 ?
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
' b9 n) v0 g. T0 Y, d程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?5 g# K& b# U$ K7 f6 o* t. m* q

+ h& ~, y2 L* q9 t- ^! B! `) D; Y4 ~另外一个小建议,就是move,所有的move都可以这样2 ^& F$ f$ y; C8 A3 r" ~% H: B
if not move() then debug end
9 I: x9 _2 f/ L5 j! t这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
4 b+ b1 Z: L2 E7 O$ hplant simulation中的free libraries有AGV模板,
9 c! R% y# M. I: d5 E8 K- P+ i里面也有案例。$ ~2 U4 v/ ]" ~. F- p" h. _
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。; \  r1 D* o4 w8 |9 `* V8 l

# T. B5 K6 n& ]0 L我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
% K: D# P* j) H, T5 F- ^! @8 r/ V1 V9 M) F3 F0 _! s! W0 t
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
% X( d  W& d9 A这是AGV_putin中arrive的method。
% j% M7 R; K( L! C( r/ K
8 W) d4 {" e+ E7 b0 \; M9 s/ F当到达物料速度越高时,这个报警更多,

! c: J5 O4 A% W2 g8 x5 q另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-14 20:40 , Processed in 0.018751 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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