设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9802|回复: 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' Z2 B) h/ ?3 k*/# O4 Y  ]5 C% m+ `. K9 l
is/ d* j3 a7 x1 P: J9 p! c! M
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
$ e2 z) `' }$ Qdo
# ~& S  G* D9 p! F        Lan := rootfolder.Internal.Tools.AOLlanguage;0 L% U1 @* D  a
        if current = @.Destination -- else return
& S, ^8 G) U9 q4 a$ B        then
) h0 |  T  k4 D                @.Destination := void;
$ G) R$ q) B2 ]: p& u+ v: F                if @.occupied then
" z# v  H/ h- f4 Y% m; a9 G                        part := @.cont;
6 s$ \7 u7 M0 @& D4 q                        @.transpOrder := void;
5 F2 ]; q% b4 H3 _. J                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,
, h) @+ I1 T4 Z( y3 w% ?                                @,root.eventcontroller.simTime);% s# e( Q9 D, a( y, i6 A
                        @.HasOrder := false;
/ `4 q# d9 v( y" G! \( F2 ?" t                        @.DrivingHome := true;
  o+ {: Q, N1 ?' [                        rgManager.tryToStartTransOrder;' u  T$ p; x- S$ z, ^+ e
                        if @.Destination = void
8 `$ P: L4 z/ p8 V                        then -- no transport order for vehicle @* j. D9 b7 g8 V- A# t; e
                                @.Destination :=& o+ I8 W  j$ p0 e9 O
                                rgManager.nearestFreeStation(@,track.~);
; z: K/ N* M: d- ]8 u                                newDirection(@);   & }" \! M& P) X
                                if @.Destination /= void then
3 Q* i8 N( f4 b; g( V                                        @.Destination.NumReservation :=
' t  N. D( U, D9 F" p                                        @.Destination.NumReservation + 1;( w5 X! x! E' s7 Y" f% {# d( S
                                end;  ~* M+ E; v) N/ R# z& R- S  b
                                @.CurrIcon := "drivingHome";( g5 i2 |5 o4 U7 R& ?8 ~: e& F
                                @.DrivingHome := true;
" p* _; h! L' N1 M8 M4 _1 _7 l% \                        end;
3 C) W' J' ]: ^. O* o                else -- the vehicle @ is empty, both vehicle and part are in the same dock station: |9 Z" f9 W& e) ?/ [! [4 }
                        part := @.transpOrder;9 `: D/ V' G: R& A- g# {
                        part.move(@);-- load part
& h: k0 e5 m' N/ [; D                        @.CurrIcon := "load";/ Z- S1 R* U4 _9 n0 t7 T7 L9 T" Q
                        GlobalDistObj := part.globDestination;, L3 c+ C+ c8 ~* ]* I% v; e
                        assignLObj := rgmanager.rgAssignL;
6 E; j+ l' o- E7 P7 n                        row := assignLObj.getRowNo(GlobalDistObj);
' @( N# x' y* F& H% K                        if Row = -1 then -- since 70
4 |0 ?  P0 l9 Z( l                                if lan=1 then; G3 p1 F- @1 m
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),
2 G5 `' A8 X& p5 \+ i( O! O1 [                                                to_str("in der Andockstation: \"",?.~.name,"\""));
( p& w3 W, [  T( r) _                                else( H" e9 y( U' r+ _$ t
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
: q. [, }% z- J1 c$ s- E                                                to_str("in docking station: \"",?.~.name,"\""));                               
$ H7 v8 s5 u; p. z+ W4 D                                end;+ q9 U) d0 S! x
                        else
3 a+ b0 m( ?2 ~. b                                @.Destination := assignLObj[1,row];3 B5 V+ m: @8 k$ A
                        end;                       
& o7 u: M/ i1 L0 e- p                        newDirection(@);
- Z9 r) J4 ^& M! d8 @/ t% D                        @.HasOrder := true;' J4 V) L0 Q& r
                end;" G' ~- r* @! ]! {# C  O, `1 A
        end;1 ?& T6 t  i5 w: b! u+ A  T3 u- A6 c
end;        -- of the method
/ j' |" l" a2 E1 W! @$ j
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 1 @7 B& Z$ L' S3 \1 X4 \) @
3 z# s8 T- o+ k8 c2 d5 a8 T
这是AGV_putin中arrive的method。) P! _, S7 r$ U; u3 }$ r
6 i' K) T* a) H
当到达物料速度越高时,这个报警更多,9 C1 m. ^" r6 T; {' ~. y
可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。
1 W+ B! p# I4 ~% R程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
4 K: a& q( M8 w5 }  y( _6 r/ k4 h
另外一个小建议,就是move,所有的move都可以这样- t. L3 e1 j: E* Q! J  i
if not move() then debug end! U# w" W# }& S" T4 \
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。9 @! z/ T( h5 C+ d! @+ Y  Z
plant simulation中的free libraries有AGV模板,
/ [: V  |! ]: q- U% f里面也有案例。' C- A: I2 T6 h+ w
我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。
3 q6 R5 s8 J: y! |
1 c: q7 b& x# K7 b1 o+ C3 G我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
5 W3 ?' W" l9 K/ ~" _( }! E
6 V, G# \' v/ o5 b3 j/ Q那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 & x+ u# u6 N- {& D$ ]
这是AGV_putin中arrive的method。% P7 b8 j$ s& p5 e$ ^5 K
; ~+ j( Z1 {- o: v: F
当到达物料速度越高时,这个报警更多,
, r" y/ q4 N" i7 w
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-26 03:20 , Processed in 0.017624 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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