设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9549|回复: 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'
3 n8 T: @8 V& E$ L*/
- Y* F6 k0 [# Lis, {  C- K; m' `$ G2 E, s7 U
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;, C6 S1 l# r# k
do, b  B5 c' v; G8 {" @
        Lan := rootfolder.Internal.Tools.AOLlanguage;4 K% i- a/ L6 F0 Y
        if current = @.Destination -- else return
: Y6 H1 B3 T1 a        then4 I, s# z, Z% f7 t, R9 l# X) t
                @.Destination := void;% A! S* j* H5 ~! e
                if @.occupied then2 E, ^' z, B7 L& Z
                        part := @.cont;* c" J4 E$ x) ~8 d3 m8 R
                        @.transpOrder := void;3 U+ C5 o) W  |2 ]' Q
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
4 T8 w8 R' m! j5 q                                @,root.eventcontroller.simTime);
$ F5 Q, L  y. e; M) t) X" N5 ?                        @.HasOrder := false;
4 R+ I0 O# O% V" J7 I; R# R, K" U                        @.DrivingHome := true;) _/ h, J% j, H
                        rgManager.tryToStartTransOrder;( c1 E% d/ |  M$ Q
                        if @.Destination = void- L# M2 i) ?# p9 _
                        then -- no transport order for vehicle @
. a% P$ S2 ~' Z& X: I2 l                                @.Destination :=2 B* v, j; I5 a8 `: [: Z
                                rgManager.nearestFreeStation(@,track.~);4 g- b# b3 r+ p" j  Z$ h
                                newDirection(@);   3 p4 i% H& ^+ X# @) [" \
                                if @.Destination /= void then
' j9 f4 v4 c+ p7 B( y& {" K  ?                                        @.Destination.NumReservation :=0 \& D. A' [- l( k- `' t9 C
                                        @.Destination.NumReservation + 1;( g$ F$ s% h  G
                                end;, |3 h" j  b0 v3 e( L! @! F
                                @.CurrIcon := "drivingHome";
. f- X. F7 L+ X2 N" R4 K+ m7 g+ F                                @.DrivingHome := true;
! o1 I1 X! }- c5 X- J$ i7 j4 n                        end;. X% x- E# y. {. ^' [# ~* g
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
0 w" v0 A" b- Y! a1 j                        part := @.transpOrder;: `+ P# V- }. l9 x) `
                        part.move(@);-- load part9 |$ U- e/ A2 g0 T! d8 f
                        @.CurrIcon := "load";
$ }  o! v' E6 F% U. a* e                        GlobalDistObj := part.globDestination;5 L( K; m7 A3 k4 i% L9 V( \
                        assignLObj := rgmanager.rgAssignL;( C* u! G3 h2 j( X) t4 e+ H
                        row := assignLObj.getRowNo(GlobalDistObj);3 r9 @- J7 _) C3 o' n! s: [& X
                        if Row = -1 then -- since 706 Y8 `; V4 e" U2 h8 g& o1 U, C! W
                                if lan=1 then
7 O1 ~% }$ j$ n' j5 ^1 g. O# O* h1 A" g                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),7 D9 U/ O% B" Q0 ]( |1 P
                                                to_str("in der Andockstation: \"",?.~.name,"\""));7 y, x& r, x; v1 N- {
                                else
5 r, S, O2 t% I% i) \$ J  N4 E1 i6 P                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
. R% ~5 s7 ~, ^  F! v0 `                                                to_str("in docking station: \"",?.~.name,"\""));                                + m7 v4 ?5 ~* r. q( C+ L" P" {* C# [
                                end;; |. B8 z* Z* D3 g* L" F- }( Y- W
                        else3 `' j; M7 E# ?5 I
                                @.Destination := assignLObj[1,row];
4 ^: v- n8 H* {                        end;                        ! J. i! {) Y4 _. f
                        newDirection(@);
, b: e1 Y1 b# D# |! X                        @.HasOrder := true;+ t2 ?' ^1 T" z/ Q8 ]+ z+ R
                end;3 U6 ]2 a& z$ X/ a! F
        end;
% |6 y5 W4 A6 z% W, Fend;        -- of the method; M+ z6 q6 @5 g8 ^/ y
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
0 C. f8 m* E2 }7 `  Q8 d) \# y4 ^/ ]' S& @8 n+ R
这是AGV_putin中arrive的method。2 ?; x( h. O8 z. M
' M# \: d+ I9 ]  ~  ]# F, k
当到达物料速度越高时,这个报警更多,
, E  @* ]1 p4 s" i+ L- s/ |可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
( X& Q8 l7 d. D8 m( ^4 a程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
2 r$ _$ F2 H. M2 m$ @- L+ k6 m9 ~: ~& \2 m1 m" a
另外一个小建议,就是move,所有的move都可以这样
% H- f$ I& g9 l2 |0 Lif not move() then debug end
# M/ v: D8 z8 ^: j4 w2 D# L8 r) ]这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
+ A9 D/ R, b0 Mplant simulation中的free libraries有AGV模板,
  x7 h5 s8 {6 d里面也有案例。2 f" ?0 Z- @2 \
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。+ a2 W% X9 t9 ^4 x% i7 [
8 M' z4 V5 j: \, F2 K
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
2 R  r, |9 C0 l6 H' K1 l% s
9 q0 Y" a* h6 G- ^4 Y那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
1 ]! a. e, ^) r& ^( m这是AGV_putin中arrive的method。
4 K0 ^0 i* f0 S5 \7 E8 g; M9 F0 \: k# S- v5 u
当到达物料速度越高时,这个报警更多,

' K, Y) a, M, b# d1 Y' x另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-7 14:02 , Processed in 0.020908 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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