设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8398|回复: 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'+ X% A# ^9 Y0 T! s$ V
*/% V; L0 Q/ g, Q0 P% S' N- m
is
( @# A: g4 U9 H, i) E        part, GlobalDistObj, assignLObj:object;row,Lan:integer;4 B5 f8 p/ o* b4 _1 d5 P
do
' X: M* C$ g. I        Lan := rootfolder.Internal.Tools.AOLlanguage;
) u! h' T' p$ U" M5 h. G        if current = @.Destination -- else return
6 o8 h% a% x  J' {' f        then! S2 _* J! w; f' O+ f9 Z$ J
                @.Destination := void;
6 k0 B3 ?0 ]( ^- z                if @.occupied then1 ~# y% X2 |0 j: e/ g
                        part := @.cont;
1 o' F, q. d" Q                        @.transpOrder := void;
& I/ Q1 V$ x1 x6 P! w                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
+ Q  H9 U$ }9 B                                @,root.eventcontroller.simTime);$ ^1 r% ?! A  ~
                        @.HasOrder := false;/ ~6 `. c/ c' {; E: k% L
                        @.DrivingHome := true;
" J/ e% K/ g6 G$ G9 H2 ^: I: y                        rgManager.tryToStartTransOrder;- M' d* N, {. a7 t7 r% X
                        if @.Destination = void
/ F3 W3 a# a7 ^  f( ?" x                        then -- no transport order for vehicle @
1 b$ U' b1 r" |: b                                @.Destination :=) f/ Q" w, L* ?$ S, o
                                rgManager.nearestFreeStation(@,track.~);: ~1 i3 x2 s) m$ v+ p1 ~
                                newDirection(@);   
: ?- `9 k. ?, i! {                                if @.Destination /= void then
0 N3 z% b) Q# ]1 V1 K. V* P: Z! A7 ~7 V( k7 ~                                        @.Destination.NumReservation :=, S, C! u. V5 e7 M  f% T
                                        @.Destination.NumReservation + 1;
! n) }3 z( f9 j" Y1 V# M                                end;
$ K" p. ~8 @8 a; E' {                                @.CurrIcon := "drivingHome";
/ J4 ^' ?- ]' i$ \3 U3 m                                @.DrivingHome := true;! Y7 z" x: T5 v, t
                        end;
" P2 S3 m/ z  p                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
4 E/ w# E- L" Q6 Y: J3 C                        part := @.transpOrder;
7 T1 g* }) m& E5 a: L2 C0 y                        part.move(@);-- load part( W% E% U" k. W3 s. u0 |$ y# y
                        @.CurrIcon := "load";+ u% b* @) V! l" ^6 g8 X) g
                        GlobalDistObj := part.globDestination;
( w9 D3 L3 u5 m                        assignLObj := rgmanager.rgAssignL;/ `; w# Y+ R& E. I* G: U
                        row := assignLObj.getRowNo(GlobalDistObj);
3 o2 Z, O) k3 ]8 |; @" X; F                        if Row = -1 then -- since 70
# m+ Y, |/ s/ c% r                                if lan=1 then
4 ^# a( m3 V: V& k                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),; L( O0 e3 c5 [. m, j& l1 b# S. C& g
                                                to_str("in der Andockstation: \"",?.~.name,"\""));
6 M6 J. v2 U) ^0 J4 Q                                else# k; Y. [; ^- t. `/ u
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),, o- @- c- c' l5 ~8 P. h
                                                to_str("in docking station: \"",?.~.name,"\""));                                / g% I# b2 g- E5 U7 i, _
                                end;- l; B& S% s6 C# J6 o
                        else& b, v5 f$ B4 N
                                @.Destination := assignLObj[1,row];7 }! s% {7 A; N, C6 _
                        end;                        / b1 T7 ?( x7 A% O( G0 R* V
                        newDirection(@);
6 t+ \9 ?2 L" d4 P1 Y2 g                        @.HasOrder := true;1 S4 b9 r( l& V6 O) c. L; e& f
                end;. I* a4 p! \7 I' W3 A3 }$ A
        end;$ K) b! O1 g- u# K  x- z
end;        -- of the method
/ j# G! f8 o0 e2 D3 D
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 6 T; {6 i. q: T. J& I) G) l. W

" i% q" s5 R: D; t9 S- t4 m这是AGV_putin中arrive的method。
: l& ^  z7 n/ E4 ~: N) G7 u
& T+ }+ ], x% ~7 W! c当到达物料速度越高时,这个报警更多,) h) i8 I- Y3 `( r0 I3 z
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。+ H. C& h* @$ z) D2 [' a3 I
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
3 _# p+ y3 @$ z& [) X2 k- Y# ^! E1 _; X8 j* g, h
另外一个小建议,就是move,所有的move都可以这样
- A. W/ N7 u8 ^4 {& ?# _9 wif not move() then debug end
  d. S0 u  q' E& I这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。* K6 @$ ^8 C. l/ F
plant simulation中的free libraries有AGV模板,
9 t8 B& I+ \0 u0 X# l' _" c% x里面也有案例。
% v0 K) o4 o. Z; T6 |5 C9 J- o我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。! p0 o4 l3 k5 r, s: R5 ?9 Q

$ w- p6 A% f  l$ B# L4 {- z我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 6 x" @+ A) x; d7 ], c; E( o
4 _& N# B" v( F) c# W& N& ?
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 % n4 L5 Y( T' v/ I
这是AGV_putin中arrive的method。1 U- M0 ^9 {% F7 z

+ w/ I" X- K" @# Z8 e% f* g( D0 O当到达物料速度越高时,这个报警更多,
* D. N# k+ s2 l: w- w
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-1 16:20 , Processed in 0.021510 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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