|

楼主 |
发表于 2013-3-26 13:35:03
|
显示全部楼层
通过小车的OnLane,onLaneA ,onLaneB这几个方法或者属性可以获取小车所在的Track( R* _! K) f5 _/ W$ e
onLaneA - V9 S2 Z7 b+ k
Usage: <MU_path>.onLaneA;) D0 B$ w2 Y. o0 n
<MU_path>.onLaneA[(<length>)];
( V; r& {( n1 f; x, |& l
7 f) E: X) ]! K0 L. OThe method onLaneA returns if the Transporter is located on lane A of a TwoLaneTrack (true) or not (false). , B+ V2 V! f- g) S: K
2 j4 H; N0 _' ~5 d" Q( ]. V1 NThe 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. ) g6 F) N' I2 L I
+ }- X0 p$ [' jThe return value has the data type boolean. & d* f% T! K+ s9 T7 }" h( ^* ?
D7 b b) L( T: j& e$ Z( lExample: print .MUs.Transporter:1.onLaneA;
& x; l2 ?. k( D- H' u
0 N7 C Z$ n0 H: k7 \2 b0 I9 sonLaneB ! f' B C$ {6 e, ?1 S- U
Usage: <MU_path>.onLaneB;
- e5 X2 d7 @/ e: E<MU_path>.onLaneB[(<length>)];
! W N z! g* L; Z4 E
; _$ c I* ?$ w1 ZThe method onLaneB returns if the Transporter is located on lane B of a TwoLaneTrack (true) or not (false). 9 \5 k/ s1 q7 B: `" Y" a6 M
# @& N# u' t4 G% O6 q. k6 bThe 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. ; `; g& h9 i) d& ?
& _0 ^+ L x& K# O; |- w7 TThe return value has the data type boolean. 1 m' f1 v' n* ?$ i) A( W1 W1 [
% U! j: g7 f$ _7 J$ Q
Example: print .MUs.Transporter:1.onLaneB;
. k& l/ y; J' [ Q ( n, C4 D# o' A+ K+ q. J$ ?
|
|