Vous êtes sur la page 1sur 2

Problem:

I have a model that normally processes parts in the sequence Server1, Server2, Server3,
Inspect, Sink but based on the result of the inspection, it sometimes must be diverted to
Adjust and then restart at Server2.

Categories:
Add-On Process Logic, Sequence Tables

Key Concepts:

Sequence Table, By Sequence, Entity Destination Type, Add-On Process, SetRow Step

Assumptions:
The source produces one type of entity. The entity will follow a primary sequence of:
Source Server1 Server2 Server3 Inspect Sink.
But if it fails inspection (30% of the time), it will divert to an alternate sequence of:
Adjust
and then resume its normal sequence from Server2.

Technical Approach:
Separate Sequence Tables are created for the entity to follow its normal sequence and
sometimes divert to another route. We will create one main sequence table which is identical
to the first sequence specified above. We will create an additional sequence to switch to if the
entity fails and has to go to the Adjust server. In order to make decisions at the inspection,
add-on processes will be created.

Details for Building the Model:

Simple System Setup


Place a Source and a Sink in the Facility window. In between them, place four
Servers that are relatively next to each other and place Server5 parallel to Server4.
Connect an Output Node of Source to an Input Node of Server1, an Output Node of
Server1 to an Input Node of Server2, an Output Node of Server2 to an Input Node of
Server3, an Output Node of Server3 to an Input Node of Server4, and an Output Node
of Server4 to the Sink with a Path. An Output Node of Server 4 to an Input Node of
Server5 and an Output Node of Server 5 to an Input Node of Server2 must be
connected with a Path also.
Rename Server4 to Inspect and Server5 to Adjust. Place one Model Entity object in a
Facility window. Rename Model Entity to Part.

Setting up the Sequence Tables


In the Data Window, select the Tables panel and add two Sequence Tables. Name
them NormalSequence and AdjustmentSequence.
For the NormalSequence, set the following sequence:
Input@Server1 Input@Server2 Input@Server3 Input@Inspect
Input@Sink1
For the AdjustmentSequence, set the sequence: Input@Adjust

Setting up Add-On Process


In the Facility window, by clicking Inspect object and under Add-On Process
Triggers by double clicking After Processing, a process will be created by default
in a Processes window.
Repeat these steps with Adjust object in order to create After Processing Add-On
Process as well.

Setting up Process Logic


In a Processes window in the Inspect_AfterProcessing process, place a Decide step to
represent the inspection and the likelihood of passing. Change its Decide Type is
going to be ProbabilityBased with Expression set to 0.7. The True exit represents
Passed and requires no action we will leave that unchanged. The False exit
represents Failed and requires using SetRow step to change to an alternate
Sequence (set Table Name to AdjustmentSequence and leave Row Number at its
default (the start of the sequence)). Here we have also added an Assign step to set the
ModelEntity.Picture to 1 so we can identify it as a red failed part in the model.
In the Adjust_AfterProcessing process, we need to restore the part to its normal look
and processing. Place SetRow step with Table Name of NormalSequence. Set the
Row Number to 2 to allow entity to resume with Server2 object and follow its
normal sequence. Also add an Assign step to set the ModelEntity.Picture back to 0
so it will again be green.

Finalizing the Model


Change the Initial Sequence of the Entity to NormalSequence.
Add Additional Symbol to the entity and color it red.
Change the Interarrival Time on the Source to Random.Exponential(.3) to give a
more balanced system.

Submitted by: Jiangshan Sun and Olzhas Shugayev

Vous aimerez peut-être aussi