设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6545|回复: 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/ b/ c* q. a; E$ T*/" n, x# d1 |- G2 S
is0 X' b# D8 H( c: T% d
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;8 P9 d  r3 g' B* C) h
do1 K5 Q* D4 V3 e: w: f# P' p4 F
        Lan := rootfolder.Internal.Tools.AOLlanguage;, q8 O8 {% w& d8 N" d8 B: O* j
        if current = @.Destination -- else return6 ?, M. J, @5 H9 ?* C8 e( O2 N8 V: K- }
        then
: Y. S4 j+ N! y5 ^5 f+ @                @.Destination := void;
3 ^% ^6 w( [2 I3 b8 C! p& w9 I                if @.occupied then
, r; J! ^3 N9 x* o# U                        part := @.cont;: K& A0 s# _% [
                        @.transpOrder := void;
! Y# ~. ]7 m1 t. Y7 x% I( H! P' |                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,+ T2 E4 l8 @9 s5 W8 {1 z
                                @,root.eventcontroller.simTime);; H0 `& [- @7 b6 \4 J6 P7 t
                        @.HasOrder := false;
, {2 [$ J7 U  S                        @.DrivingHome := true;8 i$ n; O$ y. y0 d4 J
                        rgManager.tryToStartTransOrder;
, e; M$ K9 }; x3 i                        if @.Destination = void
: _9 a3 _/ d' ]$ j; _                        then -- no transport order for vehicle @
! \4 s$ J" G" b/ J- r1 h                                @.Destination :=
6 \& s6 V% Q  R9 v0 Z                                rgManager.nearestFreeStation(@,track.~);. a. ^8 [# B5 B% h& y9 {6 Y8 [* |9 q
                                newDirection(@);   
9 E  G4 B5 p( u3 s                                if @.Destination /= void then6 J7 I9 A/ U* G4 P
                                        @.Destination.NumReservation :=
3 q( c/ C- S6 l# f2 ~                                        @.Destination.NumReservation + 1;$ I9 G* F+ p7 g: n9 M
                                end;0 O9 ^1 N, j+ Z. J
                                @.CurrIcon := "drivingHome";5 n$ _7 @2 |  I. W8 y
                                @.DrivingHome := true;
9 X; y5 |- t& O3 y7 [; g: b) z! r                        end;
& {0 m/ H3 @7 {# Z, Z7 Y% w  R                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
% c3 s# E/ Q8 [8 l! h" n' r                        part := @.transpOrder;3 s/ q7 O8 |8 P$ \& _1 h
                        part.move(@);-- load part7 e" a" g% H' n% o( Y8 ~; p
                        @.CurrIcon := "load";
+ r4 R- v, P2 m8 ^. F7 ^                        GlobalDistObj := part.globDestination;4 {* y5 X8 Y% _/ ?5 q! g$ R; u
                        assignLObj := rgmanager.rgAssignL;
0 W9 s8 d# w* ?$ o                        row := assignLObj.getRowNo(GlobalDistObj);
5 C, t; _' D, t$ S4 I( T! N0 O( M                        if Row = -1 then -- since 70& p' {7 u% ?9 n* r9 |: m5 S
                                if lan=1 then/ ]; n. Q) z$ p$ [/ t/ M
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
) u: E+ ]$ b6 E0 }" _                                                to_str("in der Andockstation: \"",?.~.name,"\""));
7 J% ^! N0 V9 ^- E: p4 a                                else
+ W; J$ H7 f7 h4 ?                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
, l' t5 }# O' n" U, y                                                to_str("in docking station: \"",?.~.name,"\""));                                7 ]" C  O& H( ^+ y% y
                                end;
: l7 U& W- F$ O3 n( y7 d                        else
8 ]: \1 |7 m- ]8 y1 y                                @.Destination := assignLObj[1,row];8 {' W$ a4 N5 G
                        end;                       
4 W. |; K! r2 H* o6 b; f9 h" z                        newDirection(@);) A/ N& [% b1 q5 _
                        @.HasOrder := true;
( R" v; i% H9 X, g0 E6 c6 t                end;& a) ]2 m# G# P) I
        end;6 i+ Y1 ]* q# [5 ?3 I- M0 O
end;        -- of the method. i2 j0 y1 A, A% o) h0 j6 ]/ g
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
5 `% v; C' Z+ G0 i8 @
0 M! e  @4 v6 s1 f( w8 }8 g这是AGV_putin中arrive的method。3 T$ d: a9 q/ p* ]$ \1 T  Z$ q3 {
7 u4 X" C) n6 z9 k' A7 d0 q/ l5 `
当到达物料速度越高时,这个报警更多,' T# {4 b0 y7 {: M. [( J6 O
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。) b) Z/ z5 |! Q5 _9 L. K
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?* l: i, \. g! k4 W. U
! A5 ^# F* w7 ^& w4 A5 v# n3 H
另外一个小建议,就是move,所有的move都可以这样* W( |# ^$ s3 l- ^7 l3 @( ?
if not move() then debug end
3 e! }7 g5 S1 h6 d& X/ y' D" c这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。( m# E7 f8 F0 A) f3 d
plant simulation中的free libraries有AGV模板,; x% Q0 R! j4 D* }* J2 }6 ~, B
里面也有案例。  w' @; {% q9 M6 |0 F
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。! ^' [% I* _  ~9 e; n

6 u; f/ f. m1 q+ [我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
, U! O: z% |4 s. u; l
, Y3 a7 R" X7 }' f+ O; X" a7 M那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
; j2 K( V' M+ e! q0 ~5 O这是AGV_putin中arrive的method。1 V. [! Y$ J  ?6 x- m% R( d, T
' C" {4 H$ @5 \. W, T; |* l
当到达物料速度越高时,这个报警更多,

% ]$ Q( c- i8 r9 ~' t另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-12 04:26 , Processed in 0.018901 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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