|

楼主 |
发表于 2013-3-26 13:35:03
|
显示全部楼层
通过小车的OnLane,onLaneA ,onLaneB这几个方法或者属性可以获取小车所在的Track& r1 Q) l/ L7 U4 _. h; H+ \5 A
onLaneA ' ^+ B% r3 u" V+ R
Usage: <MU_path>.onLaneA;+ @( N: ]6 P7 U- f
<MU_path>.onLaneA[(<length>)]; ; a3 A& X' w" m4 T# Y" ~
6 z7 I1 \3 f0 v8 ~9 {2 OThe method onLaneA returns if the Transporter is located on lane A of a TwoLaneTrack (true) or not (false).
# s8 J" R8 c& R2 \$ a; d0 W( m
& E; I! M! y {' PThe 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. : ^1 V: M2 z8 m" T
# ?6 {* H( R! N6 l* Q7 ]& {- IThe return value has the data type boolean.
7 E% e, \# ^+ Q. R! W- \+ R$ D7 j4 v3 A
Example: print .MUs.Transporter:1.onLaneA;
6 q( [+ q! X, I. r6 t
* d5 W% t5 c4 R: \0 o3 ?5 P- qonLaneB " o, Q3 Z: }( e" y
Usage: <MU_path>.onLaneB;0 w( b2 b1 B' ?6 j* I
<MU_path>.onLaneB[(<length>)];
7 n: x8 ?; g! U) G3 U! W- t4 Q9 q0 {
The method onLaneB returns if the Transporter is located on lane B of a TwoLaneTrack (true) or not (false).
- y! ~9 @6 N6 n4 G/ p* T/ S- A8 U x$ t; v# ]1 M$ r
The 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.
* S: L" j7 k4 m
; q. N: ?% U, |* sThe return value has the data type boolean. & m6 A5 u- R, l4 ~
" \/ u$ D) N% r4 i& Y
Example: print .MUs.Transporter:1.onLaneB;
. w% q" V9 q+ o5 K
: _- Y' f! I' s7 V3 F9 l8 d9 ]- } |
|