Discrete builtins

The discrete builtins provide information about the internal workings of the conveyor, queue, and oven stock types. These builtins tell you what a particular discrete stock is doing as the simulation progresses.

This section describes the following builtins:

CAPACITY(<oven or conveyor>)

The CAPACITY builtin returns the capacity associated with a conveyor or an oven, where conveyor is defined as a conveyor stock type, and oven is defined as an oven stock type. Often, you'll want to use an oven's capacity as an input to other model variables. Similarly, you may want to use a conveyor's capacity as an input to other model variables. The CAPACITY function allows you to accomplish these tasks.

Example:

Mixer_Capacity = CAPACITY(Mixer) returns the capacity you've specified for the Oven named Mixer.

OSTATE(<oven>)

The OSTATE function returns the status of an Oven, where oven is a discrete "oven" stock. If the oven is filling, OSTATE returns a "0". If the oven is "cooking," OSTATE returns a "1". If the oven is "emptying," OSTATE returns a "2". When the oven is simultaneously emptying current contents and filling with new contents, OSTATE returns a "2". For more information about ovens, see Stocks.

Example:

Status = OSTATE(Mixer) returns the status of Mixer, where Mixer is a discrete oven stock.

PROCTIME(<conveyor or oven>)

The PROCTIME builtin returns the processing time associated with the flow of material that's currently entering the conveyor or oven stock type. When the inflow goes to zero, the PROCTIME builtin holds the value of processing time from the most recent inflow.

Example:

Process_time = PROCTIME(Work_in_Process) returns the processing time associated with material that's currently entering the Conveyor or Oven "Work in Process".

Concept Link IconSee Also