# A Damaged Cavity

Back on `EC-25`, the operator notices that cavity 3 of `M-EC25-4` is making short shots: its caps come out incomplete.
In this lesson you'll take the cavity out of service two ways: **blocked** for now, and **retired** for good.

## Change Back to EC-25

:::action[Change Injection Press 1 over to M-EC25-4]

1. Tap the info panel's **Tooling** card and unmount `M-EC32-2`, clicking **Changeover** when Kanoa asks.
2. Mount `M-EC25-4` and close the popup.
3. Tap the mode card, and on Run Control's **Product** tab select `EC-25` and click **Start Run**.

:::

## Block the Cavity

The operator blocks cavity 3 so the mold keeps running on its other three cavities until the toolroom can look at it.

::embed-section{src="../../../kanoa-ops/speed-loss.md#the-speed-loss-event" collapsed="true" summary="Reference Materials: The speed-loss event - When it opens, ends, and which reason it gets."}

:::action[Block cavity 3]

1. Tap the **Tooling** card and select `M-EC25-4`.
2. In **Positions of the selected tool**, tick cavity `3` to block it, and pick a **Block reason** if asked.
3. Close the popup. The **Tooling** card shows *Tooling Installed - M-EC25-4 - 3 parts/cycle*.
4. Watch the info panel. Injection Press 1 now makes about 18 caps a minute instead of 24, and within about 5 minutes a
   speed loss card appears under the state card, such as *Below standard: 73% of the standard rate · Positions
   blocked*. The percentage moves around a little, because the simulator's speed does.

:::

A blocked cavity **still counts toward the standard rate**. The mold should be making 24 caps a minute; while a cavity
is blocked it can't, and the missing caps show as a speed loss with the reason *Positions blocked*, so the loss is
explained without anyone coding it. Blocking doesn't change the rate, so it never starts a new run.

## Retire the Cavity

The toolroom finds a crack in cavity 3 that can't be repaired, so it's welded shut and taken out of service for good. A
**retired** cavity leaves the standard rate. A mold's cavities can only be changed while it's off the machine.

:::action[Retire cavity 3 and remount]

1. Tap the **Tooling** card and **Unmount** `M-EC25-4`, clicking **Changeover** when Kanoa asks.
2. In **Configuration → Ops → Tooling**, double-click `M-EC25-4` and open the **Positions** tab.
3. Untick **Blocked** and tick **Retired** on cavity `3`, then click **Save positions**. A cavity can't be blocked and
   retired at once.
4. Mount `M-EC25-4` on `Injection Press 1` again from the **Tooling** card, and start an `EC-25` run from the mode card's
   **Product** tab.
5. Run the **Read the standard rate** script from [Run and Change Over](./3-run-and-change-over.md) for `EC-25`.
   `partsPerCycle` is now 3 and `standardRate` is 18.

:::

At 18 caps a minute, Injection Press 1 is back on its standard, and the speed loss card is gone: the new run closed the
speed-loss event. Cavity 3 keeps its history: it can't be removed, because earlier mounts recorded it.

| | Blocked | Retired |
| --- | --- | --- |
| Meaning | Out of service for now | Out of service for good |
| Standard rate | Unchanged: the missing parts are a speed loss | Drops from the moment it's retired |
| New run | Never | When it changes the rate |
| Change it while mounted | Yes, from the mount panel | No, unmount first |

:::check

Copy this script into the Ignition Designer Script Console (**Tools → Script Console**) and run it. It checks that
`M-EC25-4` is mounted on `Injection Press 1`, that cavity 3 is retired and not blocked while cavities 1, 2 and 4 are in
service, and that `EC-25`'s standard rate on `Injection Press 1` comes from the mold's cycle rate at 18 a minute. Each
check prints PASS or FAIL with what to fix. It doesn't change anything.

<details>
<summary>Show the check script</summary>

::check-script{src="ops/12-tooling/5-a-damaged-cavity.py" title="checkLesson-aDamagedCavity.py"}

</details>

:::
