设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8599|回复: 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'" Y, G& g6 T& R, Q. T  u! z
*/& C3 M5 D% K* R9 x5 A
is& T: E6 Y. n. m
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;, y* t$ i- v" n4 x) A# Q
do/ m6 o2 D, A' e8 b% i7 u: R# G/ c
        Lan := rootfolder.Internal.Tools.AOLlanguage;2 h* O; |2 y9 e* x+ Q" b
        if current = @.Destination -- else return
0 l4 w! h9 a7 `1 [3 ?( p( s        then( n  r! O! w% C. ~) v7 ~
                @.Destination := void;
* O+ S7 o  u: }0 `' t                if @.occupied then
: T7 C' S0 S# O; K6 u$ f                        part := @.cont;
& _3 P) K! ~" v. e- X& ~# n  A- m                        @.transpOrder := void;& z5 `3 Q# E8 O( n- Z+ x& c: M
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,- l! J6 }- s4 h' w5 B
                                @,root.eventcontroller.simTime);+ J9 v1 ]1 C/ U" }; D3 ?
                        @.HasOrder := false;
: p: y4 T- O$ T( s5 r                        @.DrivingHome := true;
+ l# `2 k6 w2 f8 V  [  S/ k; t                        rgManager.tryToStartTransOrder;3 I8 F3 {0 K. u4 m: d: ]+ w! N5 f
                        if @.Destination = void: @0 Y1 Y, B- v- ~* ~
                        then -- no transport order for vehicle @' [/ d. o. P# L' l# r. c0 G
                                @.Destination :=6 @' f. J9 _1 j/ a
                                rgManager.nearestFreeStation(@,track.~);
# K& X/ j1 x( n" o                                newDirection(@);   
) C; r7 A  I1 ?* N                                if @.Destination /= void then
  {. T: H5 l+ s9 r* F                                        @.Destination.NumReservation :=  G: U2 [8 P: Y, E* ^0 {0 c
                                        @.Destination.NumReservation + 1;$ I" |0 n9 S9 G2 b  X# c
                                end;7 g1 T' J' f! A
                                @.CurrIcon := "drivingHome";, m# w* j# P: {  y9 B
                                @.DrivingHome := true;& q; z5 p, a6 d7 L1 I  w
                        end;
! Z% {& R2 P) I2 \8 f8 n                else -- the vehicle @ is empty, both vehicle and part are in the same dock station6 R! L/ R8 p! t$ K3 @% d
                        part := @.transpOrder;9 i! ]7 R$ j( c( y9 C* w# |
                        part.move(@);-- load part
3 ?% S1 I, q9 e" }' D" ]" B                        @.CurrIcon := "load";, g! Q6 [1 q, Z
                        GlobalDistObj := part.globDestination;
- {) F& A1 S3 W  ^: j( @3 ~                        assignLObj := rgmanager.rgAssignL;
! q" h7 O7 `' J. l                        row := assignLObj.getRowNo(GlobalDistObj);; r, r/ O6 a8 `8 Y% r
                        if Row = -1 then -- since 707 I2 r% J/ f8 h& l5 J
                                if lan=1 then% G1 u( `2 C5 \5 N' a& g0 q
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
( t( F7 r' o4 H, H( z' c                                                to_str("in der Andockstation: \"",?.~.name,"\""));/ n  s" l5 L& L
                                else
# W) _# ]9 L! f. K4 R) I                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
) k* C# {- Z9 D$ n                                                to_str("in docking station: \"",?.~.name,"\""));                               
, T( o  T1 \: p, S8 X% V                                end;  A/ S2 x; i6 A; {
                        else7 X; w+ a0 q$ `: m
                                @.Destination := assignLObj[1,row];
# Y! u% Q  u- k! L                        end;                          w9 R0 H* c( h1 j
                        newDirection(@);9 N- B+ O2 ~, e  d% S, k* c* e
                        @.HasOrder := true;) K, _6 `: }/ K; y) |$ ~- D
                end;, B4 \2 B4 R% [7 b. F7 p
        end;5 {6 r' ~+ `0 i. a  F
end;        -- of the method# R. R# Z/ w* H: ]
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑
# u$ m7 h! P& S: Z& H; q1 [9 O
1 ~# D6 C6 d% }2 f! T7 `这是AGV_putin中arrive的method。2 L3 Z2 V4 c0 B1 W3 j. W" E
5 c6 k1 r2 ^- L" x& ]( {! ], O$ y
当到达物料速度越高时,这个报警更多,
/ v) T0 ]) e; `' a可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
' a4 O, T4 ~5 E9 F& p  B3 E程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
5 p8 y9 D$ @5 i! S. t, k: F
; x- X& h: Q7 |+ Q; b% C另外一个小建议,就是move,所有的move都可以这样  o0 R* k/ L4 l" b' M: h8 @
if not move() then debug end
  v7 {9 B; L5 l0 q这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。. `$ r9 @9 W! A, ]- D  P
plant simulation中的free libraries有AGV模板,) A" x) s) a7 u' z; \
里面也有案例。
% Q; ^2 o* L3 E4 x6 _3 u我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。4 [5 w/ s. s6 M8 a0 w, g

. e# o7 S' Q/ W5 ]4 h我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 ! z* w: n# e  U) G

" H1 ]2 S7 _& ]1 ]" V6 m5 }那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 + s3 M7 o& E5 Y6 L8 Y, `
这是AGV_putin中arrive的method。
  g: _/ {! ?" @4 q
( j7 T/ M- B& J1 K当到达物料速度越高时,这个报警更多,

. U* @& s4 l' `) Q  p8 T' A2 H) N1 b" L另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-14 20:46 , Processed in 0.018999 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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