设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9497|回复: 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'
/ b0 F. c" b( p! \  R  N*/
/ X0 j2 r( {! `' z) f% ^5 bis
, }; m% S5 ~' k( X; o( h        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
3 q+ e$ G+ t2 V6 j9 J7 Mdo
% {! w" j, [! t        Lan := rootfolder.Internal.Tools.AOLlanguage;
+ o1 v% D- b, f% t" P* X        if current = @.Destination -- else return
4 M# Z% W; c/ H        then- I( \; S4 L, w/ x' J( G
                @.Destination := void;% h1 \2 a# N4 E3 v0 y' N' A
                if @.occupied then
  N0 Z4 W6 K" C6 C                        part := @.cont;
" n" u' b* w" Z" k7 T  y3 v! I                        @.transpOrder := void;
+ v9 K6 E5 J2 w3 B                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,! k, J1 W5 q& A$ P% O
                                @,root.eventcontroller.simTime);
% u  m2 i* _0 h7 [9 [                        @.HasOrder := false;
1 ?! u5 \% h! q( O                        @.DrivingHome := true;. R/ C  @; l0 S9 V# G; Q) _  V
                        rgManager.tryToStartTransOrder;
' J: f  U: I& e! }& f/ T+ h5 C                        if @.Destination = void
% J6 t1 Z1 t! S# B5 t                        then -- no transport order for vehicle @
3 Z7 V6 m% o4 C- d8 a4 C                                @.Destination :=/ S% V7 h9 e, ]7 O" f6 I& |
                                rgManager.nearestFreeStation(@,track.~);
$ S) t" d6 |8 `. k' C) o' N                                newDirection(@);   
' }- u. n' x4 R# Y% e- a                                if @.Destination /= void then
$ Z, d$ R, f+ y7 R1 _3 v                                        @.Destination.NumReservation :=9 v- U% p$ S/ s0 X, e
                                        @.Destination.NumReservation + 1;
' c( m% p; D! M4 w* g+ f# g                                end;
  j7 u: I( g0 |5 q                                @.CurrIcon := "drivingHome";1 V0 [6 F5 |- U& Q) E
                                @.DrivingHome := true;
5 R) `* e/ o/ I/ R' u                        end;) j9 |$ w1 s( F0 x# v' d
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
; U) m! x9 _0 x                        part := @.transpOrder;1 T- u7 d. |& I! J
                        part.move(@);-- load part/ ^6 n% q; J8 m2 g/ {; R
                        @.CurrIcon := "load";- [5 ^* I, Z* @# h4 s4 C4 t
                        GlobalDistObj := part.globDestination;
( {! |9 o  f8 m+ b) K( q4 d                        assignLObj := rgmanager.rgAssignL;
8 E/ I# {8 {% s# W& {5 W) i                        row := assignLObj.getRowNo(GlobalDistObj);
8 o+ [1 D0 k4 i8 i5 l                        if Row = -1 then -- since 70
1 x" p, D: ~4 h8 ^; k                                if lan=1 then
( D, h# E" C3 Z. }# U                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),8 i7 [5 ^. N6 U
                                                to_str("in der Andockstation: \"",?.~.name,"\""));0 R7 I/ X; @: ^2 \
                                else4 }+ h$ M9 D" W- W* n
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
% `1 l) ]4 ~; X1 l# U. `' C, J                                                to_str("in docking station: \"",?.~.name,"\""));                                + M& M& r- r7 B& L9 A
                                end;
2 o0 L  x- \5 j: }# F                        else. H" {" {" k2 ?, k& D" P) u1 y4 P
                                @.Destination := assignLObj[1,row];, L+ u$ Z  |4 D! t+ J) C3 @
                        end;                       
" R. e6 c5 h6 ]6 V0 e9 c                        newDirection(@);
! o" C( @) u7 h' W6 [$ ]. B# Z                        @.HasOrder := true;
1 M, L" c( n, Z3 ]6 D  i3 u                end;) D: ~: h" m  i' s( s
        end;
, }; f1 J! V' w; m  p4 fend;        -- of the method
6 }3 M4 J5 [  q$ }4 {
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 ! ?8 T6 Z- r# p" q9 Z
. [$ z& a- @( k1 u* h6 A+ H+ _
这是AGV_putin中arrive的method。
. h8 W1 `* x2 o8 Z) ~0 N
# c; ~  ^6 b- C" p' ?当到达物料速度越高时,这个报警更多,0 e  y0 t0 B; s0 t7 M+ n
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。& U5 S. Q' D7 w( E- B
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?3 e0 r' @) x5 f& N. q

* W" Y4 d5 v. z, R3 H另外一个小建议,就是move,所有的move都可以这样
! R& f- x8 E* f. T/ oif not move() then debug end
: f$ H2 m/ i# @5 A& _# t; [这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。
: x. L6 A" h% l& dplant simulation中的free libraries有AGV模板,
% l  O* t, i) g里面也有案例。1 f" p7 W8 W9 R1 l
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。3 F8 S6 z& S# O, u$ e

" O# \7 F* i1 ]1 r- @/ q我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
" l3 }1 [* c; }* q% Y" Z4 F1 o2 \+ a2 c. w- }* {
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 / Y5 G; h7 h9 p" |# d2 t7 y# n
这是AGV_putin中arrive的method。
7 i( m: u7 F5 `$ F/ g1 e" N; y8 U% a* ]9 S7 ^& G
当到达物料速度越高时,这个报警更多,

# H  V9 ]4 Q' s另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-4 07:50 , Processed in 0.015601 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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