设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9326|回复: 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'& n! P) I1 Z0 Z& ~9 @
*/. h% J( p. K% J
is
* e& ~; a7 X, c4 u, J: Q7 n        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
  X* n/ ^5 j! d. [2 ]do
# q% K9 a* u6 B        Lan := rootfolder.Internal.Tools.AOLlanguage;
" y/ H) _" G% \& ]3 D1 }! H        if current = @.Destination -- else return
1 X& ~1 ?) O) R; c" _' K        then
- _+ C" ^. U. ^/ ~# I9 u) L: H* n                @.Destination := void;
# [; P8 G5 y& S5 o5 a+ V1 G8 a                if @.occupied then
* l: K- i6 \6 F% }) Z/ A                        part := @.cont;
5 ]) ^1 ?( |6 ~( W1 `; b! m                        @.transpOrder := void;
! [  c1 _$ |; w! {/ c2 G/ ~& X                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
- V4 K+ t* }4 o; F+ v" d                                @,root.eventcontroller.simTime);, X4 s# Z+ I7 D8 Y
                        @.HasOrder := false;
$ J9 `( I% `: G                        @.DrivingHome := true;. ^9 r( y; i& S
                        rgManager.tryToStartTransOrder;
# c/ t1 h! W6 y0 g1 Z- p, @                        if @.Destination = void
8 j3 q" A4 f% d+ h                        then -- no transport order for vehicle @2 F7 W, _/ m8 H* b! P
                                @.Destination :=( \9 C" Y/ M9 w8 l
                                rgManager.nearestFreeStation(@,track.~);
: ]3 n" x$ R4 S6 \                                newDirection(@);   
" C, ?) K3 g% T8 p4 {                                if @.Destination /= void then
  A. R: Z) Y+ E                                        @.Destination.NumReservation :=
9 \9 ?8 c8 n3 i! |. W" ^! X                                        @.Destination.NumReservation + 1;: w  j; s) `3 Y! u; w, k; M
                                end;  j% r6 W6 y- g8 J9 d1 S* C( R
                                @.CurrIcon := "drivingHome";2 u+ C/ c  x8 ?" G
                                @.DrivingHome := true;5 W% R3 Z1 c4 ~7 {) t6 X
                        end;6 U* a2 q& A/ I- f9 A
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
! n5 P% C* L# M4 M; }3 p4 F9 }                        part := @.transpOrder;
0 M8 S+ M+ U) X, m$ {4 |+ [                        part.move(@);-- load part
9 s1 U0 {$ F( _9 |* v, ]# G4 m                        @.CurrIcon := "load";
1 ]. y$ d/ z" a. K/ x                        GlobalDistObj := part.globDestination;+ J6 D* U' n; \- Q
                        assignLObj := rgmanager.rgAssignL;
8 n) h) Y/ y9 v; M* a8 f                        row := assignLObj.getRowNo(GlobalDistObj);2 Q  e( a  S# V, [% m- ^
                        if Row = -1 then -- since 70
/ R" u$ D9 b- ^! N0 @) o                                if lan=1 then
7 S& k. T6 l: o$ h                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),) S2 Q0 ~0 J3 x! k% {5 l
                                                to_str("in der Andockstation: \"",?.~.name,"\""));/ v. `, |: G* l7 X! [1 s
                                else
/ T+ h) o7 ^' y3 t8 l2 ]                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
( z/ O* w# \. S' v4 q9 ?7 t                                                to_str("in docking station: \"",?.~.name,"\""));                               
2 q, d  |- G6 P                                end;$ b- J/ Y$ M+ k" X9 p$ g' g8 G5 s
                        else9 }( U: }/ P6 I0 a8 V  }: y
                                @.Destination := assignLObj[1,row];! _( v) C& T" S7 _" W
                        end;                        - O: p+ s+ h8 }- {  m7 Z& e- o
                        newDirection(@);
. ~/ L5 U1 w( D; U2 M                        @.HasOrder := true;
3 Z1 e+ A/ z$ L                end;) P( L* v& E7 a% y/ K$ M6 e% e
        end;
* ?8 j( |! ?) r7 V) \! ?# Z& o( j: Fend;        -- of the method! c. s/ e# k7 _! O1 j
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 6 z4 E' F4 ^/ O( {  M
1 b) n% ~6 t, `8 [/ S, W: n$ Z
这是AGV_putin中arrive的method。
) \- H1 h. _  i9 P$ |2 e6 G/ _
5 h; p9 o% q, D7 q. {当到达物料速度越高时,这个报警更多,
+ C; E% Q8 g8 K可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
" {8 b3 A$ R  V* V* A/ ^, B程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
5 g& N: }9 t- H. |! o  T% L4 L" t, j2 Q+ r- _: A+ w" A# T6 E
另外一个小建议,就是move,所有的move都可以这样
$ e: f6 o  K" `3 D2 p4 fif not move() then debug end
- a, q" {6 d7 J) t这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。" K5 F2 M8 V) A
plant simulation中的free libraries有AGV模板,
/ n- [! `/ G) k/ K/ ^3 k2 g( \1 }里面也有案例。4 m" X% K0 p& n
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
9 v. j5 c/ x  K
# z1 i. A% c0 p" B5 B我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
& g2 |; ?* H) n2 D1 e# H& F
5 r0 X% V0 ^0 V0 |6 w那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
; H/ o( ~/ K  e3 M  b8 l这是AGV_putin中arrive的method。( V, F" B. {# P* d
9 y7 T6 h8 R* m* |" g; c
当到达物料速度越高时,这个报警更多,

( [, S* O2 T$ p0 q' M' P! L另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-25 13:09 , Processed in 0.015758 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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