设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6902|回复: 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'/ W" O! f& c: d3 S  ?6 c
*/
9 C/ @) o0 \& d0 Y) N* eis7 s5 N) r4 Q) s
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
6 Q0 X/ [: |+ r" ^3 E0 X. o4 Q: sdo
( v5 A5 E% r: s        Lan := rootfolder.Internal.Tools.AOLlanguage;
0 @- H1 v9 `$ u& D$ \/ W, ^1 x        if current = @.Destination -- else return
0 Y5 o' [& y8 Z% X        then7 K: ~, F7 Q3 k, l6 t
                @.Destination := void;( ^/ x6 B+ T. R+ x# h1 d# z* I
                if @.occupied then. L7 c# H' m4 U
                        part := @.cont;
. s/ S, U8 {8 D  g6 d                        @.transpOrder := void;
; X' F6 I8 b) n7 a$ A# S  x' E                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
  I  l2 s# C2 {2 [- L; Z! G                                @,root.eventcontroller.simTime);# c1 q- L0 x' T1 x
                        @.HasOrder := false;! m5 v) Y+ ~  L; P3 R7 P8 f
                        @.DrivingHome := true;
$ N0 J+ U6 M+ U7 F/ F                        rgManager.tryToStartTransOrder;
6 @: k  W! E5 \& p, v                        if @.Destination = void8 G% r  I, P; \2 s$ z" o
                        then -- no transport order for vehicle @$ m. Q" \( k# D+ |
                                @.Destination :=
& B$ S" O4 F* i- G1 M- P                                rgManager.nearestFreeStation(@,track.~);
& L, L4 M$ M9 @4 O                                newDirection(@);   ) q& D+ s9 A7 x3 t! N# R
                                if @.Destination /= void then
' h0 W3 u% \+ F  F; T                                        @.Destination.NumReservation :=
" @) X- R2 b" p                                        @.Destination.NumReservation + 1;
+ {0 g% k5 ]5 L- ^5 l" U6 e9 W  @+ H                                end;
/ e2 F: ~( Y. E! i                                @.CurrIcon := "drivingHome";+ S4 |  @) l/ o* j3 k
                                @.DrivingHome := true;; ?& [8 K, x/ y
                        end;( |3 \' ^3 P* r; b! k
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station8 a: `5 k1 b! G- G2 r
                        part := @.transpOrder;
' y' V$ N4 \/ m( X% q                        part.move(@);-- load part
# d; W1 b- O, G" `- Z6 h                        @.CurrIcon := "load";! v4 Q/ \9 j" J1 M' C! b* j, C
                        GlobalDistObj := part.globDestination;& }9 x$ j; h  J/ ^
                        assignLObj := rgmanager.rgAssignL;
8 Z" d  q/ p$ c6 {7 p; V' G                        row := assignLObj.getRowNo(GlobalDistObj);
% }. |- C1 F' z- c& R                        if Row = -1 then -- since 70) n# t& d6 b0 Y; J% l0 J) _
                                if lan=1 then  q+ K) I1 D' w( ?' l+ x
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
4 C7 M3 o  `5 C% c6 I                                                to_str("in der Andockstation: \"",?.~.name,"\""));7 a. a: V, t. N* }4 W
                                else
6 [6 `- h/ V# G, G+ Z                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),3 Q3 p7 p" S  w. b: X5 }
                                                to_str("in docking station: \"",?.~.name,"\""));                               
' Y  _' X" _( H  ~                                end;+ p1 J6 X. v. y5 w2 [4 U0 x
                        else
6 b( [" A5 Y% _7 G4 f+ A$ I                                @.Destination := assignLObj[1,row];
: q4 d' f$ o) Y: d                        end;                       
5 G! K5 _9 c; o/ C                        newDirection(@);6 \( L9 }3 U4 L1 b: O9 }  l
                        @.HasOrder := true;. m. n' H; O% u  \( I- I7 b* R
                end;
9 e0 a" M6 l8 C4 z1 r! Z        end;
8 ?: C- u% [1 Vend;        -- of the method
, t! K/ m# M6 m% S
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
6 h$ N* b1 }: R0 c9 E6 R6 _& e! c+ X- g( O# D
这是AGV_putin中arrive的method。0 }: q# A0 f- M5 s
& \* t, J2 D% `- R! @
当到达物料速度越高时,这个报警更多,' U* e# D/ c7 @7 k4 D0 X5 g$ t5 K
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。) D1 P! W* N5 ^5 z- ~
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
. T3 f( z9 z8 i. B" l9 k( A
, M7 y1 x3 G' E, a* N另外一个小建议,就是move,所有的move都可以这样6 S  r/ I$ Z" J+ n, t( {
if not move() then debug end! G; M6 v3 l9 E" t0 Q. R0 Y0 ]
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
6 v& a7 j$ C. b$ `; V5 \% |4 i) Tplant simulation中的free libraries有AGV模板,! ^9 \- b, U% Z, U
里面也有案例。
: G7 Z1 G6 I# h我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
' v1 [3 {% [$ N; r
* f9 _0 e! j: v8 M- A. l! ~# M我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
( q, K9 c) u5 g5 i# t# \
$ @, Z6 b- N" m; z4 R* I那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
1 R4 C+ C9 R+ J3 @) L. @这是AGV_putin中arrive的method。
6 @6 @  q6 }) U; m: c
7 }/ ], G# i+ L  L$ p# S6 F当到达物料速度越高时,这个报警更多,

% p; }7 v+ h) R- @% a另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-5 19:36 , Processed in 0.024948 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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