设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 10273|回复: 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'( @  s  p7 W. q) l6 ?  h8 s
*/
  S2 c4 ^/ T& X# b8 E. u3 t! jis
3 I& p6 S* i& \5 N" _$ B        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
* O: q* J5 r% L, c  {" O( Ydo
5 |4 b$ }3 N6 E$ ]; V        Lan := rootfolder.Internal.Tools.AOLlanguage;; }# T1 L8 a+ ~4 s9 ~! U4 m
        if current = @.Destination -- else return
; W4 f) Y2 D4 U9 z        then& W; B" N1 D; G- o+ n4 D7 K* v
                @.Destination := void;
6 ^8 P$ r% k" @" F7 r$ o0 V                if @.occupied then
' P1 s$ r# L3 [% B% V! [/ ]" W                        part := @.cont;7 t. g$ f/ |$ V7 K6 [
                        @.transpOrder := void;) T5 F0 U$ X5 l2 e# G
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
0 a8 U- `5 I! F$ V/ x+ e0 q                                @,root.eventcontroller.simTime);4 a  V0 X! D5 W" o5 w
                        @.HasOrder := false;
# D6 Z! }  S8 E, O                        @.DrivingHome := true;) T( O% O. k) M9 X3 e
                        rgManager.tryToStartTransOrder;- `+ J. D" g% K+ g
                        if @.Destination = void
; v+ v4 C1 |4 D1 o. p9 }1 b9 m                        then -- no transport order for vehicle @# v" I% U5 o+ S& @+ T( B
                                @.Destination :=
* \' u( n" ?& p- T9 g% y                                rgManager.nearestFreeStation(@,track.~);- @1 w) R- k+ t- W; L
                                newDirection(@);   
& w4 b8 ^1 l+ ?7 P2 c! q: A- ~# d                                if @.Destination /= void then9 Y/ `; F1 i; x5 O
                                        @.Destination.NumReservation :=
2 Z3 h6 R6 O0 P- f2 X7 b1 P                                        @.Destination.NumReservation + 1;
; T1 B7 C6 F" c$ y                                end;
4 |* f& \% p' L, G7 I                                @.CurrIcon := "drivingHome";9 C" H$ Z7 n- t
                                @.DrivingHome := true;
' n# f" H/ u* S                        end;
% s. D% ]! W' I4 H& b  a0 F                else -- the vehicle @ is empty, both vehicle and part are in the same dock station5 M5 i6 ~) P: r) f/ h- L
                        part := @.transpOrder;$ a' T7 }. o! t) o  `  f" T& F
                        part.move(@);-- load part
- N" G8 E5 Q& k4 X                        @.CurrIcon := "load";: A1 M* M1 ~; m  @8 S
                        GlobalDistObj := part.globDestination;
" j- c8 w7 i4 ^6 U                        assignLObj := rgmanager.rgAssignL;" X$ c% w" q" }, v- w
                        row := assignLObj.getRowNo(GlobalDistObj);- c" G% y8 ~% p/ V4 l# v; P
                        if Row = -1 then -- since 704 ?9 d* E- o3 P' L
                                if lan=1 then
. S) n! P3 C3 |" d. \3 r                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),* b( ~! ?. O6 L) ~
                                                to_str("in der Andockstation: \"",?.~.name,"\""));
" p  K* I0 i/ C4 e, [. T                                else
# A! x' V2 a& J! ^7 }! G- V                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
; @1 @9 H* Q- Q" P1 z  H                                                to_str("in docking station: \"",?.~.name,"\""));                                1 B4 P" {; D- ^% m- N/ e3 u1 s
                                end;1 b4 p/ i- |: N6 M6 q  p. |
                        else
# ^8 c6 H- c$ u- T                                @.Destination := assignLObj[1,row];
! e' F9 R7 H' G8 g4 a2 V! s2 s* W  M                        end;                        0 J% t$ I+ i7 }# O' n
                        newDirection(@);0 o* `* R( F5 y/ [% G% M6 W
                        @.HasOrder := true;2 Q% X" _( ]8 t+ w& k
                end;+ i5 w7 `& N8 p+ i3 c7 m4 T/ J1 R0 k
        end;
, G: M3 \3 }1 u4 N) Send;        -- of the method$ R1 i1 _/ u  r" ^8 Y
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 ( m" k4 F/ V3 {" Q6 u

' J; G% e, `! \$ ]* N, q这是AGV_putin中arrive的method。
5 n3 \- i5 B$ }# O; ~9 D
- ^/ i! k8 _! \0 R5 R8 `4 P当到达物料速度越高时,这个报警更多,
- M* F# n- L3 e: d可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
0 W: P) A1 h! E1 F, T程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?( k2 O" x' O; w, m% x
! N0 Z8 F2 h. C& I
另外一个小建议,就是move,所有的move都可以这样9 d' k6 k+ x) _& K( V0 l0 G+ N
if not move() then debug end
. M- D% ?& X2 o% y+ A  r这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
$ ?) n1 A$ [* F$ ?plant simulation中的free libraries有AGV模板,
5 c8 z- B8 K! R! x% U: p& l; r0 O里面也有案例。" T2 i& f0 o2 A2 ~' Q& K
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。5 a4 p5 {! j* Z. f, q9 q

# a5 Z, V$ m' _% J, h: ^) B0 [: B! g我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
$ @2 k( Y' k: v* ^2 r3 r$ W# ]2 q3 J8 B' \
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
2 a0 Z( A1 j3 L; A9 O' S1 Z这是AGV_putin中arrive的method。
5 Z" ]* |* P; G8 j* U9 I9 m- Q* L# _0 }; W
当到达物料速度越高时,这个报警更多,
5 M. q2 x7 l* ~! x( V
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-23 17:29 , Processed in 0.017858 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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