|
楼主 |
发表于 2013-3-26 13:35:03
|
显示全部楼层
通过小车的OnLane,onLaneA ,onLaneB这几个方法或者属性可以获取小车所在的Track) L6 A" b2 K( I# ?5 `' j! `
onLaneA
# F6 o' i+ l1 T; LUsage: <MU_path>.onLaneA;
: {' B) j: V( r* d<MU_path>.onLaneA[(<length>)];
% n% A. _) o0 p( u
! Q4 y) z5 {+ gThe method onLaneA returns if the Transporter is located on lane A of a TwoLaneTrack (true) or not (false).
, e* x0 c! U5 j8 }+ Y
1 y0 Q9 Y ~/ XThe optional parameter of data type length designates the position starting from the front of the Transporter. When you do not enter the parameter, Plant Simulation uses the reference point. This parameter is of importance, when the Transporter stretches across several Tracks. . ^0 l/ N- E& O* |% x$ n& U/ o
?! e/ B- H4 G3 b9 C2 R& v3 n% Z
The return value has the data type boolean.
/ f% W9 c2 r3 W8 U
% ?6 n; L7 D D' ^( p1 P' k7 F' lExample: print .MUs.Transporter:1.onLaneA;
' X, ?* y0 V2 b" t/ D: l. b; t
/ B, m" S \. w/ Z: UonLaneB * X4 C) \* Q8 a$ O
Usage: <MU_path>.onLaneB;8 s1 n# D# e& m* s% n
<MU_path>.onLaneB[(<length>)]; # y7 D8 ~. Q, Y. |& r
: V; r/ L/ m; c4 MThe method onLaneB returns if the Transporter is located on lane B of a TwoLaneTrack (true) or not (false).
: a) h' l8 G7 [
" Z0 ]6 Y9 C5 F' I, rThe optional parameter of data type length designates the position starting from the front of the Transporter. When you do not enter the parameter, Plant Simulation uses the reference point. This parameter is of importance, when the Transporter stretches across several Tracks. - e8 L) P2 y$ |2 p* o* d
: T# x* B4 ^3 |3 A# p/ J: `, z8 L7 ?The return value has the data type boolean. 4 E$ ^7 U. @3 p" o0 N% I
" W4 {1 \3 t" G/ a- w, U
Example: print .MUs.Transporter:1.onLaneB;
7 U3 [- C9 @& k
/ `0 Q. ]5 R. ~; K5 k |
|