设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7463|回复: 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'
, r! b2 L8 H# G3 J*/( g9 T/ q/ z( y2 f. z  W7 x* |4 z
is- j8 _% K) d: W/ I2 P
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
; e( g# B, C" d* O) `, kdo
' t+ b# s# W5 d        Lan := rootfolder.Internal.Tools.AOLlanguage;. E/ {) w8 I7 M2 G. c
        if current = @.Destination -- else return* o  l- q$ b/ J- D) q
        then5 y2 L) `; x* I9 f/ \
                @.Destination := void;
" r& j) g3 Z% x5 s8 g( w                if @.occupied then
, ?  y) Z# c- k# H                        part := @.cont;! N3 S% F6 |1 X/ r; u
                        @.transpOrder := void;
4 J" w$ o$ ^' e                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
" E/ x9 \" y8 t0 W' j                                @,root.eventcontroller.simTime);
) E! Z! I9 C( w8 e7 a                        @.HasOrder := false;! X/ f6 \. O) P' d0 ?
                        @.DrivingHome := true;
1 w' K( {% g0 T$ ~8 x- f' B                        rgManager.tryToStartTransOrder;
! I' C3 M3 v9 I& R                        if @.Destination = void
3 d' ^7 V) y2 s                        then -- no transport order for vehicle @, [: L6 j# p0 S2 ~! c6 v
                                @.Destination :=
( M& w9 T% \, d% _/ E. I                                rgManager.nearestFreeStation(@,track.~);
) T$ q- O! ]/ J! R0 v                                newDirection(@);   - ~( r# f5 r# @! T( S+ `
                                if @.Destination /= void then
, M! o# W& _2 T, ^% T; l  t                                        @.Destination.NumReservation :=' ~  \, ~* J2 l! l; E0 s, l0 n0 X. s  D
                                        @.Destination.NumReservation + 1;
, r& G! k6 F$ T' j                                end;8 H- Z  i6 _5 ^
                                @.CurrIcon := "drivingHome";
( p" e7 _( S9 _                                @.DrivingHome := true;
% B$ }" b" X5 a0 L5 Q                        end;7 j3 b3 D, R0 L' q6 H* X; e- N
                else -- the vehicle @ is empty, both vehicle and part are in the same dock station
' W2 T" ~% T+ [8 A                        part := @.transpOrder;
3 A3 _+ f2 v  |' Y5 g: v5 }                        part.move(@);-- load part- ?, r6 |; }5 }7 ~
                        @.CurrIcon := "load";
& H, W' R! v9 i& G- o                        GlobalDistObj := part.globDestination;
" r" [; ?0 H- [/ A8 h                        assignLObj := rgmanager.rgAssignL;# k  _6 e7 c- f6 N4 C+ u* }) R
                        row := assignLObj.getRowNo(GlobalDistObj);4 Y! j9 C) r# V2 P: c" e/ j
                        if Row = -1 then -- since 70
* E2 D" w. O* A7 ~4 \8 o! g: D                                if lan=1 then
% I8 ]: m- B  m. O' o* F                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),& J( [  r1 t, n, z5 J4 G
                                                to_str("in der Andockstation: \"",?.~.name,"\""));7 Q5 l$ P2 j' z2 r4 k
                                else& F) g( v6 ?. ~- J
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),- J, L% l& W* i9 D, q
                                                to_str("in docking station: \"",?.~.name,"\""));                                * U& H: M" i+ W  g/ o# f
                                end;7 X! |8 r- ?9 h! w
                        else( E2 ~& Q' b5 }1 B; {$ k, g
                                @.Destination := assignLObj[1,row];" C( V' H% q( u' C+ ], a
                        end;                        7 g. l/ D: E$ U8 c! d" a( r& I
                        newDirection(@);. |9 b/ R5 H1 m6 Z
                        @.HasOrder := true;
+ n  \; ?; o6 G- l6 C+ q                end;
% N! U$ |2 Q; B$ m0 E0 Y; I        end;
+ ^7 o, G- n+ q" L& ]0 B! Cend;        -- of the method) ?" [8 }' |5 ~
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 ; G7 @- ]2 I  Y: c' j8 h

+ L$ h9 _; ?/ _( f, y这是AGV_putin中arrive的method。
9 y2 g; z! k' U$ g1 {+ K2 U; J6 B) y' A' }
当到达物料速度越高时,这个报警更多,
$ Q7 `6 s, c3 N+ f可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
7 g( W- v4 \2 Q程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?) M& G: Y( f7 d$ f& }
# z. n. e& g; m  K. B
另外一个小建议,就是move,所有的move都可以这样
/ U! E3 h- S( }# k/ ~) \8 Eif not move() then debug end
% D& |& T- {2 v( U- [) I9 B3 Y这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。9 S- z" l+ |! \: x9 J6 s6 r0 ^
plant simulation中的free libraries有AGV模板,
9 [# U; b1 H$ g/ _% S. r* I里面也有案例。
, d* f" L1 E/ e' z$ ?: H# h我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。4 q+ P( F2 ]5 [: p

# _. N! T, w4 x" K& a我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
) U  j6 j# {4 ]
- d7 Y; y: ?* _3 x5 {那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 - `7 z) [2 }8 B- O8 f
这是AGV_putin中arrive的method。
6 Z" \* N' @4 b# B  L+ A( \% h" d
当到达物料速度越高时,这个报警更多,

* F& Q8 p. j" S7 F另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-12 20:43 , Processed in 0.019250 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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