设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6455|回复: 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 a' D9 i: C- H0 Q7 G) U6 }  k4 E/ o*/9 X: {& y  [2 W8 b2 f. J# B
is
8 d. s; @) P) @8 F( U( n        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
% H. T2 B' H& e5 o3 `do8 v! ?& h! C1 F
        Lan := rootfolder.Internal.Tools.AOLlanguage;
( a( g: [4 L8 u/ K4 P        if current = @.Destination -- else return: X; b! x& b* R, T% X& s/ N
        then
; z& U6 c+ }; ]                @.Destination := void;
5 b: P1 w: _/ y- x7 t! q) [                if @.occupied then5 Y" ^+ l) |0 J- D( p" W! x# I: S+ _1 C
                        part := @.cont;% B7 w2 J) Q6 s7 ^+ ~: X
                        @.transpOrder := void;
9 l. a* f; i) u6 w/ c                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
! f+ b- }6 |8 k- D4 ?( e9 ]                                @,root.eventcontroller.simTime);
: C+ d* e4 L$ }% e+ g                        @.HasOrder := false;& n) `1 d7 h# w3 s# q3 i0 J# L( j
                        @.DrivingHome := true;. s; q' O+ g  y  P% Q( u
                        rgManager.tryToStartTransOrder;
) u" t) Q4 ^. u7 I0 M$ G, y                        if @.Destination = void9 R) T( u! x  Y) M* A" [3 t) Q
                        then -- no transport order for vehicle @6 _$ ~9 Y/ k9 Z2 y6 I% f
                                @.Destination :=8 }0 o+ S* k, E: [
                                rgManager.nearestFreeStation(@,track.~);
  }9 @* Q; H& `) d4 i$ ]                                newDirection(@);   $ o2 s3 Q  q; d# |: `
                                if @.Destination /= void then
7 u. T. |6 |  v* T3 x4 t4 F; x                                        @.Destination.NumReservation :=! m1 O+ [' f# b5 }0 ~2 m
                                        @.Destination.NumReservation + 1;  D/ C2 i% r9 K! e0 `; B' D8 A
                                end;
" j" Q% ]& c6 J' o8 m9 _0 _                                @.CurrIcon := "drivingHome";; d( ^9 ?8 x2 q3 F2 l$ [7 _- i
                                @.DrivingHome := true;0 v( m& n. u4 W* P
                        end;$ S; u. m3 d( D, D4 ]7 V! A
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station0 M3 ?+ x' d0 m: r
                        part := @.transpOrder;1 u: ~% X$ S- K5 W5 [+ ?6 H/ L0 e& x
                        part.move(@);-- load part
" U3 s7 p) b0 f& U% B                        @.CurrIcon := "load";
* p& A* l, B# [+ E                        GlobalDistObj := part.globDestination;
# k- J2 A- r5 Q4 Q& b2 \7 I                        assignLObj := rgmanager.rgAssignL;
- G0 c0 h  g2 [+ B                        row := assignLObj.getRowNo(GlobalDistObj);# d# f2 D) T3 d' D! U
                        if Row = -1 then -- since 70, q$ ?5 Q+ `! s, ]; K( o5 o4 H
                                if lan=1 then# @- @+ y; y/ J' ?$ q, D
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),% K$ M, V* R7 x
                                                to_str("in der Andockstation: \"",?.~.name,"\""));8 K! o" a# D6 z- E1 ~
                                else
7 X( v) ?0 |7 j! Q# n                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),; \% V2 l* [: L& p, g5 F( ^, Y
                                                to_str("in docking station: \"",?.~.name,"\""));                               
1 f/ F! t& P/ [6 \0 J                                end;
! S2 M/ c5 g# t$ D* |8 R. j) T                        else  b% k5 a0 i$ I& _& C) e
                                @.Destination := assignLObj[1,row];6 k1 B  n4 o! W4 g, H
                        end;                        5 X) q6 e0 n# ~3 x9 S/ g7 L
                        newDirection(@);
, E6 l0 E4 C  G- J) c, s3 @8 w' P/ `                        @.HasOrder := true;
1 Q6 r5 u- e8 K0 ]                end;; _' Q7 ^4 G9 X' A9 q6 \
        end;1 w# F  m6 k# l& _
end;        -- of the method- B/ A6 \+ V) `6 P4 G3 l' A% O
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 6 {* S9 L! G# a. B& r) w* ?- W

& o5 Z8 F  s, q$ h这是AGV_putin中arrive的method。
* k6 l& P9 n4 G* I& d$ T5 h* A6 S3 \- Y
当到达物料速度越高时,这个报警更多,: ]3 L) g* |8 n. ~0 m2 X
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
6 c7 y1 W/ a8 n' D5 {% t$ ?程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
4 \* L( `8 U6 A* {' ]5 B! h( B
5 L4 h( M, ?/ ?. E" }$ b另外一个小建议,就是move,所有的move都可以这样
- X5 ?- c3 [1 l- z5 W) C" o1 A6 Kif not move() then debug end
' ?8 Z0 N+ e& q9 ?% Z3 L( u& |% r+ C* x这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。5 e0 c( @+ h) Q7 {+ C& ~
plant simulation中的free libraries有AGV模板,
: e5 j- ~" K, c# L5 C里面也有案例。6 ~3 P4 u$ w" {* U8 \8 s, S
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。, F) }( X7 C* K3 Q0 Z- a. d- _

, {* N) x2 [7 [我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 7 J$ L: P3 i  f5 V

, l$ R7 U" @2 t* l4 s: M那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
# x7 |! Q  E4 o* s; B) @$ W2 G* k这是AGV_putin中arrive的method。
7 \, D' r# S4 v
8 }/ Z2 q, _7 H# @5 H: O0 I$ |当到达物料速度越高时,这个报警更多,
4 s7 S9 ]2 W! d4 `4 g- @/ {, K
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-7 14:32 , Processed in 0.018439 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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