Location
Location-Specific System Function
The Location function returns the current Location's name-index number. This function is especially useful in macros and subroutines that vary depending on which Location's logic calls them.
Syntax
Location()
Examples
Attr1 = Location()
If Location() = 2 Then Wait 4 min
The following example displays the Truck Location's name-index number when an Entity enters it.
Display Location()
Remarks
By using a Location function with an If Then statement, the macro or subroutine can act differently depending on the Location that called it. Also, the same technique can be used to determine which Location is carrying out a process when All is used as the process Location.
Location is valid in Location downtimes, operation, move, arrival, shift, and break logic.