设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9699|回复: 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'
. ]! b8 _% |) A: l- C) s# W*/
: R- G) _4 G9 a) ]" i$ Z% u7 Y" ris' p1 p! B; }, l& c5 r$ ^2 a- T
        part, GlobalDistObj, assignLObj:object;row,Lan:integer;
' Z( C9 O3 A7 v* l8 W! P% _1 ?. @do, j2 f. u: \) P6 }
        Lan := rootfolder.Internal.Tools.AOLlanguage;
" W, Q" R  s2 S5 S$ d  n        if current = @.Destination -- else return" p" a- G6 P. _* ~  C2 Z
        then  y. j9 D: P4 u* f8 Z
                @.Destination := void;; {9 S9 o8 G" x8 B  C% z+ }
                if @.occupied then; \5 k* U* Q- j2 i" ]) x; Y
                        part := @.cont;9 ]9 A% b- `9 E
                        @.transpOrder := void;
$ O/ C  h6 V" I                        part.move(partExit);-- unload is already possible                        rgManager.freeVehL.writeRow(0,rgManager.freeVehL.yDim + 1,. _$ P2 d& M7 ?1 j3 t$ i
                                @,root.eventcontroller.simTime);! h6 C( ]! r8 c: ?% B
                        @.HasOrder := false;4 S* s" U- [! X9 _4 y% z( Z5 X3 t
                        @.DrivingHome := true;
: S0 m3 r/ d: T" o/ W$ w                        rgManager.tryToStartTransOrder;  W" i' I& h! Y# E; p
                        if @.Destination = void9 n5 C3 O# @3 W( H4 Y# O+ k/ v- H
                        then -- no transport order for vehicle @2 I% r1 [( H( c4 k' v
                                @.Destination :=  B; G' ]! ]  \* Y7 M
                                rgManager.nearestFreeStation(@,track.~);: W. _- S" Y% x/ t% _
                                newDirection(@);   
8 e2 t7 K2 N7 p* K; b) `                                if @.Destination /= void then
# J6 x8 f# V: h0 c0 H' Q                                        @.Destination.NumReservation :=
2 C, l, f, _4 w2 m                                        @.Destination.NumReservation + 1;9 j# k7 m& _; z0 Z: Q
                                end;
; I3 u3 B6 t# Q& w& i) @6 w8 o4 _# w                                @.CurrIcon := "drivingHome";
2 ?3 K0 V; q" E+ [                                @.DrivingHome := true;
" ]$ X) |0 q, g3 e                        end;
) V' F1 l( |- |, Y                else -- the vehicle @ is empty, both vehicle and part are in the same dock station) t5 D9 i. g6 N4 O
                        part := @.transpOrder;
% C$ H9 p% Q& b2 m6 W                        part.move(@);-- load part% V  \2 S0 [; M# ]& a! @% N" t) W
                        @.CurrIcon := "load";
0 f) f2 u2 G! t( `# \; y4 z                        GlobalDistObj := part.globDestination;
* u$ W6 B# j) E* e                        assignLObj := rgmanager.rgAssignL;
% u3 j3 M. q4 b# d0 R                        row := assignLObj.getRowNo(GlobalDistObj);) Y$ S" w# E0 g
                        if Row = -1 then -- since 70+ v% u" i, S9 S: z3 W; z
                                if lan=1 then
+ G( j7 e0 N; V0 r0 H7 _/ P) \0 C                                        promptmessage(to_str("Unbekanntes Ziel: \"",GlobalDistObj,"\""),. @  l3 h5 I8 ^6 f2 P, W; N3 u
                                                to_str("in der Andockstation: \"",?.~.name,"\""));8 `  s% r% L1 h
                                else
8 t# j. o" n$ D7 [                                        promptmessage(to_str("Unknown destination: \"",GlobalDistObj,"\""),
4 z& m* t- p( G$ m/ ^% m* x* z                                                to_str("in docking station: \"",?.~.name,"\""));                               
; P" E! a9 F$ V1 _% H8 }7 W+ S                                end;3 U1 u: i; S+ p7 g; Q0 c
                        else$ T8 ]! w$ _; K) m; W  o) |5 P( e6 B
                                @.Destination := assignLObj[1,row];
1 U1 R4 m: b, W2 M                        end;                       
/ x) d; X' R7 K4 q3 m* _9 R                        newDirection(@);
: |4 Z; m/ ?# f1 Z                        @.HasOrder := true;& M, o4 H5 E  W# ~! T2 Z
                end;+ q8 L- l0 d% F' ]
        end;
; K  H1 t  m5 h( iend;        -- of the method" N" g. R: x# n
 楼主| 发表于 2011-11-17 11:08:06 | 显示全部楼层
本帖最后由 kuka 于 2011-11-17 11:10 编辑 6 Z8 c! m# U/ I* ?/ a7 Y+ R- T/ J

, K/ h3 T' A' ^  A2 X4 j1 }这是AGV_putin中arrive的method。
" A* d) U7 F  K! T1 F  y8 E8 T3 n( V! ~! j" x+ H) V
当到达物料速度越高时,这个报警更多,
2 t+ r' @+ D9 W) v, }& a# w可能是到达物料分给了小车,而小车上已有有物料不能接受,所以发生了冲突。0 W& H$ i7 {' o6 Z( g
程序解决这个冲突程序是暂缓到partExit,但是AGV模板提示这个无效。
发表于 2011-11-25 19:15:24 | 显示全部楼层
是不是partexit未定义或者路径不对?
  z$ H3 V: E3 y  k6 Z0 V0 i8 B) A4 a* z( V( j9 b& o
另外一个小建议,就是move,所有的move都可以这样
; }. T( J5 [9 d4 Tif not move() then debug end1 [3 Y# A* V3 v  Y1 J
这样一旦move有问题就会报错 便于检查和修改
发表于 2011-11-25 19:20:37 | 显示全部楼层
另外弱弱的问一句 AGV是神马 o(╯□╰)o
 楼主| 发表于 2011-11-26 19:26:51 | 显示全部楼层
AGV(Automated Guided Vehicle)自动导引小车。8 U( c8 S" U8 E" Z' [) T1 Y' r; s
plant simulation中的free libraries有AGV模板,2 d& Y2 V1 B, q' i; l, {" j
里面也有案例。
0 l* y& |& a' t! z; C' x我运行过案例,没有发现这种报错,可能案例模型没有发生冲突,运行不到if下面这块。$ k9 S( v/ y3 t7 y
6 O' U/ |0 [9 `$ X5 p' u- b/ K6 m
我开了一下模板,的确没有定义partexit,它可能是一个队列对象,不知道怎么定义。
发表于 2011-11-26 20:09:15 | 显示全部楼层
因为是用的move,可以直接在模型里建立一个缓存模块,比如buffer之类的,容量定义为-1,move的目标指向这个缓存就可以了,囧。。。不过其实我个人不推荐这种解决方法,因为实际中并不存在这种缓存。。。
发表于 2011-11-26 20:10:15 | 显示全部楼层
本帖最后由 五五 于 2011-11-26 20:10 编辑 * B# R; Y. }$ @
* ]" o; ~3 z& F% P+ Y9 z
那么 Automated Guided Vehicle 是不是就是小车的自动寻路系统那个呀 还是还有其他功能或者模块咩
发表于 2011-11-26 20:12:36 | 显示全部楼层
kuka 发表于 2011-11-17 11:08
9 @( N* {& U1 Y2 z  p这是AGV_putin中arrive的method。
% E# {" H" k, c6 V) C% V1 S
. O9 Q3 i" \% c# `: z0 m! }! t( X当到达物料速度越高时,这个报警更多,

, J7 ^! B1 ^% [! D/ A另外 一般对于容量有限的小车 我个人觉得还是更早引入容量控制比较好些 而不是在装运是才报警
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-19 01:37 , Processed in 0.015299 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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