设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6587|回复: 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'
2 s1 E$ {9 F9 O: k$ {) T) U*/0 P6 j; m7 z4 a/ B9 R
is
  z  h3 c, o0 b  B: F$ E. j        part, GlobalDistObj, assignLObj:object;row,Lan:integer;1 T5 k0 E4 @9 \2 a/ r
do
5 K& q- D1 K8 m. x0 }) T+ l        Lan := rootfolder.Internal.Tools.AOLlanguage;" b2 l9 K9 P. t% n
        if current = @.Destination -- else return
2 a8 \2 ]* P! V% Y$ R6 _8 v        then. h, Y% X2 M, b7 P. R) E( ~
                @.Destination := void;' r: l# G0 n( n9 F! A; X4 X# I- X
                if @.occupied then
- t) x2 F" r0 \  E! F8 x- y                        part := @.cont;- d3 H8 d; x+ Y7 d
                        @.transpOrder := void;; t; H. H* @( m+ F* @
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,. Q1 }3 ^" S) E3 ?8 |
                                @,root.eventcontroller.simTime);8 B: }( W+ g* R+ R: y" V% j0 Z' M& }
                        @.HasOrder := false;
  L; S1 K* U4 ~/ G) O4 H5 \                        @.DrivingHome := true;
; J& r) Q6 }/ V/ E, E& x6 g7 [( s+ z                        rgManager.tryToStartTransOrder;
" t/ ~/ u) u- E                        if @.Destination = void
; c3 ?' _9 Q1 u# j/ b1 r                        then -- no transport order for vehicle @
9 L( m9 k+ I  E$ w2 Z                                @.Destination :=; o, X7 D; n* f' G8 A5 v
                                rgManager.nearestFreeStation(@,track.~);( t% L! X, x  t6 K7 F
                                newDirection(@);   
- e. H# t! t7 p                                if @.Destination /= void then- N  O& m# P; m0 N5 j# z, ^
                                        @.Destination.NumReservation :=* X3 H( i. d8 e+ r- e! R* \+ z9 M
                                        @.Destination.NumReservation + 1;1 u/ r1 x+ j! K3 D/ x3 f
                                end;: x1 Y+ P5 e4 ?7 X! O
                                @.CurrIcon := "drivingHome";9 C. ?* h3 o. I5 d: }
                                @.DrivingHome := true;# v- n1 ]( C1 p! x
                        end;' S' G  w$ q" o+ N+ J" J0 M
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
- ?. ]- m6 `' e                        part := @.transpOrder;
* X4 a4 _3 F7 f3 ~                        part.move(@);-- load part$ q7 O9 Y! p" O" H8 W
                        @.CurrIcon := "load";
# d: r' B$ h# X                        GlobalDistObj := part.globDestination;2 y9 `/ }( L! v
                        assignLObj := rgmanager.rgAssignL;
0 f+ t' F* f( r% \; Q' w                        row := assignLObj.getRowNo(GlobalDistObj);" A4 c  v( a9 n/ }6 s% q" ?
                        if Row = -1 then -- since 70
8 Z* E( s) }4 V8 E                                if lan=1 then) R  Y# n2 m* v# f
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),* L/ ~) U  q# E' K6 M4 T; u$ l
                                                to_str("in der Andockstation: \"",?.~.name,"\""));% Z6 k2 E9 E' r. q* T
                                else
" B2 s7 B5 n3 a: Q7 x+ ^& o                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),* c  @: \4 B. N+ I
                                                to_str("in docking station: \"",?.~.name,"\""));                               
" I4 C1 j, i2 Z                                end;: D7 r5 U  S& r/ ~0 O4 h
                        else# b5 r' \" Z' A  O( N
                                @.Destination := assignLObj[1,row];% B9 ^$ M0 l' l( G
                        end;                        # p3 }% c, f& |# c. }$ w9 V
                        newDirection(@);! P2 \0 u( _, F3 V
                        @.HasOrder := true;  t) e$ E' r) S; |5 i
                end;
* k4 J9 Z4 O3 }. a+ K- Q        end;
( I, ?+ {3 p- B1 P# X; E! T0 H) Aend;        -- of the method
1 }( t' X) f# @3 M) D6 K: @
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 7 r+ n8 }9 t5 a- _+ a9 d

! Y; \& @' W1 O  ^+ J) @, u' l这是AGV_putin中arrive的method。3 W$ i1 n- \$ M
  a9 M$ O- ^+ y& n5 h
当到达物料速度越高时,这个报警更多,
% G0 }$ {; B  b6 D( ]+ T- w可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
; J6 e1 q6 V) x2 `: }4 l% q: t9 m程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
2 p7 }+ D# c$ I5 {
% J4 X  o% Z$ E4 M* b9 }- Z另外一个小建议,就是move,所有的move都可以这样: a& d5 U$ g& t; k8 u+ i# u
if not move() then debug end
  S" y2 g4 y& S& h# E# P4 ]这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。) ~2 }1 O) }$ f, ^3 p0 d# Y. q1 `/ }* \
plant simulation中的free libraries有AGV模板,, q# C) p, l9 a, D
里面也有案例。$ n# z* c" c- w( f- m8 b5 Y/ z
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。+ q6 h1 W! K- e- M% K, C5 ?

. h: x0 E. `- |1 u+ I1 e4 c我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 # C! p+ O# }- m$ B
7 ~3 H0 z8 ?5 Q7 N
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
! z7 a) k9 o  P! s0 l- @) U这是AGV_putin中arrive的method。
" i! E' q8 _: j) [5 H% J" j! T/ |. X, j' q4 h/ b
当到达物料速度越高时,这个报警更多,

/ d% Z8 y4 N7 f( K5 }# L另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-14 10:51 , Processed in 0.018964 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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