Show / Hide Table of Contents

LocState


General System Function

The LocState function returns a value indicating the current state of the specified Location. Return values range from 1-7, which translate to the following:

1 = idle/empty
2 = setup
3 = operating
4 = blocked
5 = waiting
6 = up (multi-capacity Location)
7 = down

Syntax

LocState (<locationname>)

Syntax Example

Var1 = LocState(Packaging)

Parameters

(<locationname>)

The Location name to examine.

Parameters Example

The following example displays the Truck Location's Location State each time an Entity enters the Work Bench Location. Note how the displayed number changes based on whether or not an Entity is currently being processed at the Truck Location.

Display LocState(Truck)

LocState Example 1


LocState Example 2

In This Article
Back to top Generated by DocFX