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:
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 will want to use an oven's capacity as an input to other model entities. Similarly, you may want to use a conveyor's capacity as an input to other model entities. The CAPACITY function allows you to accomplish these tasks.
Example:
Mixer_Capacity = CAPACITY(Mixer) returns the capacity you have specified for the Oven Mixer.
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.
The PROCTIME builtin returns the processing time associated with the flow of material that is 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 is currently entering the Conveyor or Oven Work in Process.