Now
that the electrode groups have been placed inside the battery case, the
case will be covered with a lid and the battery terminals will be
welded. After this the battery will undergo a quality check. Batteries
that have passed the quality check will be filled with acid while the
defective batteries will be removed from the production line.
Let's start modeling these processes with preparing the layout.
Prepare the layout
a.
Visible:
no
b.
Process time:
1 minute
c.
Length:
1 meter.
a.
Visible:
no
b.
Process time:
uniform( 20, 30 ) seconds
c.
Length:
1 meter.
The turntable element divides the conveyor it has been placed on into two independent conveyors.
a.
Visible:
no
b.
Process time:
2 minutes
b.
Quantity:
3
c.
Length:
2.5 meter
Add the 3D animation
Furthermore, let's enhance the animation of the battery case to make it more realistic. Initially, we've used a simple black container, but during this phase we add a lid to the container and build the terminals. All these actions take place at the addCapAndTerminalsStation.
agent.industrial_container_1.setVisible(false);
agent.lead_acid_battery.setVisible(true);
This
way, when the batteries leave this station, one 3D figure will become
invisible, while the other 3D figure will become visible.
Now, let's build the logic behind this production phase.
Add the logic
This block will direct the major flow of the batteries along the conveyor.
a.
Convey from:
Current position
b.
Target conveyor:
defectiveBatteryConveyor
if (randomTrue(0.01))
conveyBattery.cancel(agent);
This way we model the batteries that don't pass the quality assurance test. Now some of the agents passing through the qaStation will be cancelled. The cancelled agents will exit the conveyBattery block through its cancel port situated at the bottom of the block and will go through the conveyDefective block.
Reference model:
Lead Acid Battery Production - Phase 5