Functions

What are Action Logic Functions?

Functions provide you with critical system information at any given time during the simulation. They can be used in an...

How do I use the Clock() Function?

Use Clock(min)Clock(sec)Clock(hr)Clock(Day)Clock(Wk) Syntax: CLOCK( ) or CLOCK(time unit) Example: a_Time = Clock( )v_Time_in_System =Clock( ) – CycleStartIf Clock(Hr) > 24Then…...

How do I use the Contents() Function?

Returns the total number of entities at an activity. Use CONTENTS(name of activity) to make decisions based on how busy...

How do I use FreeCap() Function?

Returns the available capacity of an activity (an integer). Example Suppose an entity can be routed to one of two...

How do I use FreeUnits() Function?

Returns the free units of an activity or resource (an integer). Example The example below demonstrates the use of the...

How do I use GroupQty() Function?

Returns the number of entities in a batched or loaded entity (a loaded entity is an entity with other entities...

How do I use OwnedResource() Function?

Returns the n th resource currently being used by the entity. Each resource is referenced according to the order it...

How do I use Percent() Function?

The percent function allows you to execute one or more statements only a certain percentage of the time. Used in...

How do I use ResQty() Function?

Returns the number of units of a specific resource that the current entity owns. You can use RESQTY() to determine...

What are Action Logic Statements?

Statements are simply commands to be executed at particular stages in an entity’s progress through the process. The following pages...

How do I use Comments Statement?

Comments You can add explanatory comments to your action logic by placing special characters in front of the comment. Comment...

How do I use Assignment Statement?

( ) = ( ) This is the assignment statement which allows you to assign a value (or descriptor) to...

How do I use the ANIMATE Statement?

The ANIMATE statement allows the control of the animation speed through the action logic dialog. This statement is especially useful...

How do I use a DEC Statement?

Decrement of a variable or attribute’s value. It subtracts one (the default) or more from the value of the variable...

How do I use DISPLAY Statement?

Pauses the simulation and displays a message. The simulation will resume when the user selects OK. The Display statement is...