setRoute (Transporter)

Syntax

<MU-Path>.setRoute(ObjectsToDestination:table)
<MU-Path>.setRoute(ObjectsToDestination:object[])

The method setRoute sends the Transporter to its destination on the objects.

  • For Transporters driving on Tracks this applies:

    If the last object to be reached is not the destination object of the Transporter, Plant Simulation automatically adds the destination object to the route.

    When the Transporter leaves the route specified in the table because an exit control moves the Transporter onto another successor, automatic routing becomes effective again immediately afterwards.

    The method setRoute also accepts material flow objects other than objects of type Track. When assigning a route, which contains such objects with setRoute, then the Transporter passes these objects on its way to the destination. While automatically computing a route, Plant Simulation only takes Tracks and TwoLaneTracks into consideration.

  • For Transporters, which are not bound to a fixed route network, this applies:

    The Transporter covers the Markers, Tracks, and its own AGVPool you inserted into you model one after the other.

    The Destination control is going to be called and the attribute DestinationWasReached is going to be set to true when the Transporter has reached the last Marker.

Parameter

The parameter ObjectsToDestination of data type table contains the objects along the route in the first column of data type object.

Instead the parameter ObjectsToDestination can also be an array of data type object that contains all objects along the route.

Example

.MUs.Transporter:1.setRoute(objectsToRoute) –- Transporter drives on Track
var AGV : object := AGVPool.Cont --  –- Transporter drives from Marker to Marker
AGV.setRoute([M1,M2,M3,M4])
waituntil AGV.DestinationWasReached
AGV.setRoute([M1,M2,M3,M4])

Related Topics

getRoute

HasRouteToDestination

DestinationWasReached

Route to destination

AGVPool

Marker