设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8687|回复: 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'" s1 f# Y$ F: z5 Q: E4 Q4 Z( r
*/0 l2 P2 R7 @0 @& s) \* O
is
8 `- p5 c, w  j' L# P  t1 p- }        part, GlobalDistObj, assignLObj:object;row,Lan:integer;) \0 h" ]+ ~) x( z. k
do
6 Q, b) H( z4 j) f, s# `        Lan := rootfolder.Internal.Tools.AOLlanguage;' A5 r& G9 d8 h8 }) R. d+ j
        if current = @.Destination -- else return
( Q" A8 }1 v& ~7 X! e6 y0 G        then
, p  g) N0 Z  j, l                @.Destination := void;
1 N! n" Q# G3 m. L1 b/ ?& o                if @.occupied then. ~8 J6 K1 ~& G5 j- s& u
                        part := @.cont;
: G: S- }9 Y9 E0 F2 ]                        @.transpOrder := void;" F5 f' M4 R0 H9 ?' q* A5 i
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,- X+ Q3 x9 i1 H0 N
                                @,root.eventcontroller.simTime);7 `0 O5 h2 w2 Y  |3 u+ F
                        @.HasOrder := false;# S7 c9 J! ^! e, C& U; [
                        @.DrivingHome := true;. ]$ A% d6 \8 d+ N8 p- D1 a
                        rgManager.tryToStartTransOrder;
0 ^2 R) d4 M- V6 a1 i' J7 h                        if @.Destination = void5 ?- W4 c" t- [
                        then -- no transport order for vehicle @# {! M9 E( y4 a2 i
                                @.Destination :=
1 M8 T2 b! h# x+ H. c* b                                rgManager.nearestFreeStation(@,track.~);6 O1 A0 u% `! d7 G- J
                                newDirection(@);   
4 G/ c( R* e- F! ~+ c8 V                                if @.Destination /= void then
% `+ a( o' e# A! h                                        @.Destination.NumReservation :=4 n3 Q8 ]: g, L7 V& w
                                        @.Destination.NumReservation + 1;
# ]: a" k) Y2 G& a5 S3 z                                end;; T% M5 M5 c, u0 `9 @: |* a
                                @.CurrIcon := "drivingHome";
* R# j% c2 H" m% [- S$ {                                @.DrivingHome := true;
# D! G3 C$ Q& e% n                        end;
. p% x# ?' S9 _: v# A% X                else -- the vehicle @ is empty, both vehicle and part are in the same dock station) c8 k5 l2 y$ _  F/ p+ \
                        part := @.transpOrder;+ ^2 Q. r8 g2 p% _" e4 j
                        part.move(@);-- load part+ q$ t! B# ~+ d
                        @.CurrIcon := "load";9 J8 A5 G6 b" B: W
                        GlobalDistObj := part.globDestination;
: S. r! }# B: y* P6 g- E                        assignLObj := rgmanager.rgAssignL;
# [$ z1 \% v5 j: S+ M0 W* K                        row := assignLObj.getRowNo(GlobalDistObj);: L+ j5 ~0 v/ F3 ~& b% M
                        if Row = -1 then -- since 70
0 `' N! q* D! d8 @                                if lan=1 then  w* A& U0 k7 l7 ]& Z/ d' u
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),2 s# {& n; J7 g( W$ ^9 r$ i! \
                                                to_str("in der Andockstation: \"",?.~.name,"\""));
; E$ h. r" Q. b  }& x9 a9 M                                else- L0 [% B% l( I
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),( Z& {2 p7 Y- v. l9 w* t" e
                                                to_str("in docking station: \"",?.~.name,"\""));                               
0 F* H" c( M6 Z( ~- D                                end;7 Q. w* W( s8 c9 _$ }6 R: s
                        else
$ k* C. |& S3 k; v2 y: L                                @.Destination := assignLObj[1,row];
7 R. I& N8 j) [. j2 q* P                        end;                       
! c* {3 @3 y6 o: S' O                        newDirection(@);
% f2 W$ _8 @8 N9 t% }- P- s$ p$ z5 B                        @.HasOrder := true;6 F! C* |: W' X& O9 |, T' Z
                end;, J5 x3 H/ Q. `% D" `- p1 g
        end;. V2 c; B: ~- H) h" t
end;        -- of the method& L0 d' S0 |4 H7 F$ M3 ^: E
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 0 h4 w* u- T1 d

4 c8 B7 v8 m6 T+ i这是AGV_putin中arrive的method。
2 D9 L# l' b) a
9 {* ^1 [& ]( Y) i2 M9 `. E  V当到达物料速度越高时,这个报警更多,* C( f5 L% |0 B  z
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
) O$ a0 a4 H  r# T0 l: [! u程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
: w5 K8 w( x1 P' {1 C2 e' |
( P; G/ b9 P- t+ \/ p. K" Z% ~5 B2 k$ B另外一个小建议,就是move,所有的move都可以这样
, `  {4 l6 S6 F% d/ A/ Fif not move() then debug end! C# U# ~% h; x$ W& y: t
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
- e' b3 x5 ?) D$ ?9 d8 F' Tplant simulation中的free libraries有AGV模板,
9 b7 U7 ^3 B, h. X0 R里面也有案例。9 Q6 s  f5 _* r
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。. ?  O- K4 c" h

5 L' Z2 \+ Y# m* H+ {1 \我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
3 D( O" Q6 R9 S4 x2 ?0 `
, j' J1 R0 L% J0 l2 I3 d那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 8 P3 k( O# _+ c* x! v; O2 }- H$ S) A* v
这是AGV_putin中arrive的method。- A- q0 z% ?% W
4 S5 W: J7 {" ~
当到达物料速度越高时,这个报警更多,
& |) k: ~2 E6 y6 {4 e
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-20 09:57 , Processed in 0.016288 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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