设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6390|回复: 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'6 R$ q. `3 z9 X( M& X9 d7 M
*/
; ^( r* ^, b% F' h& Y! Xis& f$ c0 }2 l( E% @# |3 i  b( ^
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;$ x5 g& P; G- A; b/ K
do* J- m6 G6 a& n" p9 r( a
        Lan := rootfolder.Internal.Tools.AOLlanguage;/ \8 Y: @5 j9 U6 f8 R, p# N1 Y
        if current = @.Destination -- else return
$ {3 B) q& s. M; {" t% z( v        then
9 {& t/ j6 ]  c0 y                @.Destination := void;' T. ~& h& v- b" a! v5 |0 K+ T
                if @.occupied then
$ b7 ~9 d$ @- @4 [                        part := @.cont;+ {" w6 i# u3 Z2 C3 u0 J. b
                        @.transpOrder := void;
% f2 E) ^# B3 U) b                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,7 G0 V+ _5 c( E% l& a; K
                                @,root.eventcontroller.simTime);; {  n2 I  S9 ^
                        @.HasOrder := false;% s# r. a3 e9 N. i2 @7 t( z
                        @.DrivingHome := true;
/ v- u/ v6 A3 G) c2 d- C. n                        rgManager.tryToStartTransOrder;
; s5 M5 U0 P: p. y( `) D0 G( P                        if @.Destination = void" ~7 u8 M1 h" y5 G& j9 H6 T; ^- @
                        then -- no transport order for vehicle @( K  {0 X) l6 g# H
                                @.Destination :=- s2 V' I/ s; f) ]8 ]9 x% p
                                rgManager.nearestFreeStation(@,track.~);
# ?) u! h, w1 B. s; m: g                                newDirection(@);   + Z( [9 {! M, u. a% z
                                if @.Destination /= void then0 i; V, a; u/ [+ X3 |' x6 x1 E+ Q# H
                                        @.Destination.NumReservation :=
# L3 i6 f3 {$ ?                                        @.Destination.NumReservation + 1;
6 s/ _" p3 B. x( d1 m7 P' ?                                end;
4 j9 F6 B5 O  f) Z( O! U                                @.CurrIcon := "drivingHome";
( Y* v! U* Q  M4 B                                @.DrivingHome := true;
4 e: R# H* A* e' V  a                        end;
& e6 C+ D+ D7 N; W$ g                else -- the vehicle @ is empty, both vehicle and part are in the same dock station; w0 M% B8 M! W0 Z& v
                        part := @.transpOrder;
; h6 ^( _) @. L( R# ]5 c9 x: [8 k                        part.move(@);-- load part
+ ^- e* _, M% d) v" `                        @.CurrIcon := "load";
! m# z2 G: a7 m/ _/ q                        GlobalDistObj := part.globDestination;7 `: r  m- U) f3 k" ?
                        assignLObj := rgmanager.rgAssignL;
8 i. E4 n- p! t% K! t1 m                        row := assignLObj.getRowNo(GlobalDistObj);
* z+ M' n4 E* D1 Q  O9 A                        if Row = -1 then -- since 708 ]# ]$ u7 k/ Y2 s& e' M, k
                                if lan=1 then
6 Q* ~# o3 Y9 }0 n5 E                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),' Y. D3 v4 o+ f  R  a& j) k
                                                to_str("in der Andockstation: \"",?.~.name,"\""));
/ P/ E$ T9 E/ H( [3 {8 c. n; P$ H* s                                else
2 Z3 b& e2 M' M5 J6 i                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
- L- S1 B# L2 R& @. P                                                to_str("in docking station: \"",?.~.name,"\""));                               
+ i( ]; _) m4 N                                end;
: m8 y1 n7 @% R                        else: p. i; f+ e1 B) M
                                @.Destination := assignLObj[1,row];
& S6 t$ L% x8 R+ w- g                        end;                       
, `  j0 d# y! r( c* f5 O: ?- V: L                        newDirection(@);
  E% g% b$ o/ g                        @.HasOrder := true;
7 n  O" F6 r$ ^) ^6 m                end;+ ]: Z* f) H5 p2 z  l
        end;
  l( c, H& K0 b) V. A/ ~/ t. qend;        -- of the method5 t" T1 _9 F! E; v, w
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
) |( H; h1 p7 Y. b9 u6 h% G- v
# M! H3 Q5 Z* P' N; r这是AGV_putin中arrive的method。8 A& s2 g( \$ n: F- R* L% @
  i1 [) r' q/ r( U! a. F# J$ k; `
当到达物料速度越高时,这个报警更多,
" h- E, Z; {6 J% B* W) S% |8 K可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
- d/ G6 p5 Y7 a# x, R' G程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?( I$ C  y: G) C& J

* `/ F1 t3 r( ?另外一个小建议,就是move,所有的move都可以这样
3 u9 Y$ @- B/ H7 m, I) A/ nif not move() then debug end
3 E* I& g: e+ R" N3 z: P这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
$ C, `6 ~# a3 J5 Cplant simulation中的free libraries有AGV模板,
  A; x- E; q! C6 t8 A  m/ O1 w里面也有案例。2 k5 q. Z" W" z/ {7 z- H
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。$ C" c7 [, D: O/ c- x2 @

( a# D0 `8 J% D$ C/ k我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
! B1 V* O! G5 G  n/ O$ F0 V3 v, ?- R/ a6 ?  E
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 # m$ G- X3 G+ Z2 l
这是AGV_putin中arrive的method。3 j: @$ ]; L2 [

8 ?6 c( @- z  n" M7 t6 b当到达物料速度越高时,这个报警更多,

$ x' S& m) z( ^. P另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-3 17:27 , Processed in 0.019480 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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