设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9380|回复: 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'9 }+ k( E: G, O$ H6 p0 \
*/5 x% ?0 e7 I9 `; M
is
! s% r, k+ Y! k& }7 j* p        part, GlobalDistObj, assignLObj:object;row,Lan:integer;7 `" f. H9 q% @6 A0 Q# r+ y0 Z4 c
do
$ X4 T3 `% @9 e5 v& d1 x5 o        Lan := rootfolder.Internal.Tools.AOLlanguage;
6 |0 p0 L/ }5 \/ p. C        if current = @.Destination -- else return
0 ^/ `+ L- D8 X8 k/ O+ E) Q        then
, d- K7 \; o7 n- @; B2 }. @& {                @.Destination := void;
  F: d6 e2 t5 I' ~/ Q( s                if @.occupied then9 e$ ^) r- H, z/ ^& S9 B
                        part := @.cont;7 O3 v; n" e7 d# z& S
                        @.transpOrder := void;. N/ L/ m9 f6 V! _
                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,1 O8 m3 ~4 H8 N4 ?/ h' U7 j
                                @,root.eventcontroller.simTime);$ Y8 M) [8 g% ~2 x( Z
                        @.HasOrder := false;
. {) |. H$ i! b3 Z. w                        @.DrivingHome := true;0 F4 `: l- U* s% h9 x! c
                        rgManager.tryToStartTransOrder;
: d% v+ A1 |4 ?/ z) A" l) i7 w                        if @.Destination = void
6 i. S, s- l$ M/ n! r7 R0 ?                        then -- no transport order for vehicle @' g! b: f, c9 Z8 t  y+ L3 u
                                @.Destination :=
1 f/ C) Q" y  \) z( Z9 w2 r                                rgManager.nearestFreeStation(@,track.~);
( [3 h2 A' {2 f                                newDirection(@);   - C* u( a5 a7 K! r; A9 L
                                if @.Destination /= void then/ i/ O; C" t. ~/ W' d' z1 n
                                        @.Destination.NumReservation :=' X  ]( C- m# [+ V4 @
                                        @.Destination.NumReservation + 1;
, d# L' m' }6 y/ ?$ N                                end;
* K% I# H& A% L1 S, _                                @.CurrIcon := "drivingHome";
$ ?& s" ?$ G# r/ k                                @.DrivingHome := true;
; W' W. w/ _8 ~. \% X; v                        end;
* p* R/ o  b& @: m                else -- the vehicle @ is empty, both vehicle and part are in the same dock station( ?: h, ]$ R& j/ i: N! ^
                        part := @.transpOrder;- {( A) [* j0 H+ g
                        part.move(@);-- load part/ ?. B$ b, m/ N6 ^9 E
                        @.CurrIcon := "load";2 i$ U5 d9 u( o
                        GlobalDistObj := part.globDestination;7 p2 I" h+ W& v0 a" R" u1 c5 s( A$ N
                        assignLObj := rgmanager.rgAssignL;
/ ?: K" n. _1 {                        row := assignLObj.getRowNo(GlobalDistObj);, e7 [( @$ h4 E
                        if Row = -1 then -- since 70
4 g, u7 g! I/ H7 F$ t$ K5 l                                if lan=1 then* I1 y5 W% t! ?
                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),2 `1 s7 s* ?( C; {1 D4 I% o; h
                                                to_str("in der Andockstation: \"",?.~.name,"\""));. Z) m( ~/ q) w% p8 `0 l' J
                                else, S0 |3 e! `7 l- V
                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
( o) I4 p5 Q" h; ?+ H7 m                                                to_str("in docking station: \"",?.~.name,"\""));                               
) H" q) m  e, _" d- z( F, c                                end;, W5 Q' q" v7 j5 V8 Z
                        else
6 k  L2 h7 |4 m, g                                @.Destination := assignLObj[1,row];6 z" s$ @$ w3 `4 o9 V  k/ E! o
                        end;                        - B6 \0 P7 z; h  a
                        newDirection(@);
* q3 D1 o6 P: \2 g                        @.HasOrder := true;
1 t2 v# z0 _" h8 v. v/ [; F; ^/ c                end;& Z% R8 g0 L- a) U: d" x
        end;2 P8 |6 I7 N1 u
end;        -- of the method
% _) Y  q3 p1 T) T; e0 e
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 * I- }8 B  f9 w* h5 V7 {7 q
( {+ a- D, Q' g; }( @$ J
这是AGV_putin中arrive的method。
3 U& v7 d# Y* Z
+ O: T7 N. D  a* S" f( a当到达物料速度越高时,这个报警更多,
) a5 i1 B0 J2 _& }可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。% Z' Y6 |5 V+ ^3 a) B- @
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
8 F; H. z# I# L  r) Y9 L9 Q
7 [- `6 X" v4 J7 V' `另外一个小建议,就是move,所有的move都可以这样  K) d- U- i2 }" g6 {' j
if not move() then debug end
9 Z0 s& D, w' h0 M" }) e这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。5 v: f7 F7 t2 `- u
plant simulation中的free libraries有AGV模板,3 ^6 W9 \" v$ S$ X9 V& o
里面也有案例。
" w. v) C6 C9 K/ K6 c9 ?. c- O我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。0 \5 v  n$ n1 ~1 w

. o$ N2 T) T( f0 [: n我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑
- n6 p% y- K! x1 m* N( Y  o# O- v5 F6 M+ l
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08 " ?4 u" ~: m+ }# v, p! I/ L6 d
这是AGV_putin中arrive的method。
2 g& B' D% @9 c" f5 E2 p5 {* W( \9 J9 C& E. Y2 d7 r0 M
当到达物料速度越高时,这个报警更多,
5 f! b% S: B" h# s  W
另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-29 00:37 , Processed in 0.018771 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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