Zone Object
The Zone object provides a way to select all Movers within a specified geographic area on the track. A Zone is defined by a Start Position and an End Position, and returns every mover between these points. Zones are especially useful for programming recovery scenarios. When using track management, zones make use of TrackId and only return movers that are both within the zones defined geographic area and have a matching TrackId.
Setup & Execution
1 2 3 |
|
1 2 3 4 5 6 |
|
Zones must also be added to the Mediator object. By default, this is handled automatically.
1 2 3 |
|
Methods
GetMover
GetMover( Index : USINT, Direction : Tc2_MC2.MC_Direction) : REFERENCE TO Mover
Provides a reference to the Mover that has n = Index movers between it and the end of the Zone specified by the Direction
1 2 3 4 5 6 7 |
|
Set track
SetTrack(
1 2 3 |
|
Properties
.CurrentMoverCount
USINT
Provides a count of the number of movers that are currently withing the boundaries set by Start Position and End Position.
1 2 3 |
|
.CurrentMoverList
MoverList
Provides a MoverList object reference, containing all Movers that are currently within the boundaries set by Start Position and End Position. As a MoverList, methods are provided to command all movers as a group. See MoverList objective for more information
1 2 3 4 5 6 7 8 |
|
.EndPosition
LREAL
Defines the upper bound for the track region considered by the Zone object.
.StartPosition
LREAL
Defines the lower bound for the track region considered by the Zone object.
.Track
REFERENCE TO Track
Track that the station is assigned to when using track management. See the Track object.
.ZoneLength
LREAL
Calculates the length of the defined zone, in millimeters.
Properties provided by MoverList
Some properties provided by the MoverList and Objective have similar syntax but different meanings.
1 2 3 4 5 6 |
|
Take care when using these properties.