设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5381|回复: 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'
/ n" B4 V7 l; @' o+ b+ r0 f/ M*/$ J6 G0 o0 H6 g5 \" u
is
$ w) ?% p: X# F        part, GlobalDistObj, assignLObj:object;row,Lan:integer;- J. Y8 f( F7 V7 J
do
- _: O* S  l! s$ ~        Lan := rootfolder.Internal.Tools.AOLlanguage;7 k2 ?3 J8 x$ i
        if current = @.Destination -- else return
+ f& f+ L6 d' t4 ]        then
& a4 ?- [7 x" _; [                @.Destination := void;
4 y- K9 i: S1 C: O                if @.occupied then
  R5 M" \* w/ G+ `# W                        part := @.cont;) V# U8 e- w, D9 f5 ]" o5 |* K
                        @.transpOrder := void;
0 X! i. R  Q  J1 L% p6 j& J& J' i                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,8 b( s0 Q' g' s+ ~( n+ c
                                @,root.eventcontroller.simTime);; Z7 \) F7 g- V& t6 b0 d5 o+ l
                        @.HasOrder := false;1 g. _% w9 }1 E* N
                        @.DrivingHome := true;4 |8 B; w4 E% B  d7 v. L
                        rgManager.tryToStartTransOrder;' j! {* E0 v0 u1 n/ |
                        if @.Destination = void" f  n5 l9 f) J7 t
                        then -- no transport order for vehicle @& `5 F) E  D8 \- g! Z) ?; W
                                @.Destination :=
! @/ P1 x2 e  d. g; }- \2 a- I                                rgManager.nearestFreeStation(@,track.~);
* N3 ~3 Q: L" i2 B. _0 V* h                                newDirection(@);   
& K( M4 }; ^+ |" G& e* d. W7 v0 h                                if @.Destination /= void then
. x1 a0 E+ ]/ `                                        @.Destination.NumReservation :=1 F2 c! q7 Q  n/ w8 i1 K
                                        @.Destination.NumReservation + 1;$ E1 \% z* E, x5 ?2 H" x# R. N- n0 a( x
                                end;; H0 m4 l1 l) h  A( R- X
                                @.CurrIcon := "drivingHome";
6 q( |- T# x& B                                @.DrivingHome := true;
  f1 ?1 o& G/ K# g. [% y                        end;8 @2 K6 ?7 I  z3 ^" K1 |
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station( G3 u$ Z8 h) K
                        part := @.transpOrder;
" n( A9 }& n9 ?/ z* I                        part.move(@);-- load part  y2 w2 j6 Q* }5 S$ I9 ]! X
                        @.CurrIcon := "load";7 \4 d5 p. c' D8 E" h/ v' D
                        GlobalDistObj := part.globDestination;
% Q- Y" r; ~  p: n9 I* z                        assignLObj := rgmanager.rgAssignL;1 v' j, }* S7 d! w' C2 O! W6 C
                        row := assignLObj.getRowNo(GlobalDistObj);
$ T( p2 [, a1 T( }                        if Row = -1 then -- since 70
. k8 M, O" \; y# L0 W9 C                                if lan=1 then# V4 q' x5 q! ?6 N7 r
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
, }2 ^$ \% g9 M* K  Y                                                to_str("in der Andockstation: \"",?.~.name,"\""));
0 P4 J8 T! u: [, F- I: d  b                                else, `9 l& @" ~. B: u
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
3 t8 O' e5 W% }0 P, f                                                to_str("in docking station: \"",?.~.name,"\""));                               
3 m, m! T4 h- @% m: j                                end;$ e2 [: _& y1 I2 _7 W
                        else
: r, `% Q, M0 C( ^7 E                                @.Destination := assignLObj[1,row];
# H- M( E3 M6 L( C: e+ }                        end;                       
; l$ R% {. w, d$ R) w5 n                        newDirection(@);' w+ `3 ?' ]5 A$ a: u3 |
                        @.HasOrder := true;, k3 q+ U7 x6 A6 P4 ^: t
                end;
1 D9 |; `' h0 _% G7 r        end;  v) L- c; \" }# v9 M4 `& ]# P
end;        -- of the method
" Z8 z+ d+ Z! Z: a, D1 m- k
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 1 _" Y6 _1 n# X3 r" u$ k' \4 i/ f

  g' s' P. H9 Z1 {9 Z5 D这是AGV_putin中arrive的method。
( E& h8 H  [* |1 ?0 B/ N+ j' y! m% E0 r1 [
当到达物料速度越高时,这个报警更多,$ }8 N1 z/ _+ ?& R0 x
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。6 P0 E. e$ d7 j) x
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?: [! p+ G& J" b% x
) ^1 a& \% a, U& Z) w
另外一个小建议,就是move,所有的move都可以这样, a2 i/ O$ ?: F; ~1 w; i+ d
if not move() then debug end
) f9 q" W6 E% a" Q这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
* `. {* G. p- ~! I7 D  n! pplant simulation中的free libraries有AGV模板,
5 _2 E, q; n$ V- k+ g里面也有案例。1 p6 E5 L( t4 O8 k( T
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
2 x1 U+ p8 R1 ~; _6 W8 Y
2 V4 X8 d, o9 L. X, h1 r我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 # p+ ^7 }& J. ^

# R# j5 P2 U) a7 ]0 X  H那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 + ~/ U! K2 l5 {6 C' L. x6 o- v
这是AGV_putin中arrive的method。, J/ P6 W3 b& E+ n' c- H% C6 E
5 C: \' Q% S/ |2 R; Q/ n4 j
当到达物料速度越高时,这个报警更多,
- _8 L7 i& n9 w- Y
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-11-17 16:30 , Processed in 0.023430 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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