# Configure Production Rates

You now have assets that describe where production happens and items that describe what the plant makes. 
Now we'll configure which assets can make which items and set the expected production rates that scheduling and OEE depend on.

::embed-section{src="../../../kanoa-ops/items/item-rates.md" collapsed="true" summary="Reference Materials: Production Rates - Linking assets with Items and setting expected rate info."}

::::action[Hands-on: Link Items with Assets and Configure Production Rates]
1. From the **Materials** configuration screen, open the **Production Rates** tab.
2. Click the link button in the action bar to open the **Item Asset Link Editor**. Check the **output** option before linking.
3. Create three links:
   - Select `Machine 1` in the asset hierarchy and link it to `SC-2024`.
   - Select `Spray Line 1` and link it to `SC-2024-STD`.
   - Select `Manual Pack 1` and link it to `SC-2024-STD-100`.

   Each link creates a blank rate entry.
4. Open each rate entry by selecting it in the table and click the **Edit Asset Item Rate Info** button.
5. Enter these settings:

:::warning[Create the boxes unit]
The unit `boxes` probably doesn't exist yet. To create it, open the units menu, type the new name `boxes`, and click **Create**.
:::

| Setting | Machine 1 | Spray Line 1 | Manual Pack 1 | Description |
|---|---|---|---|---|
| Item | `SC-2024` | `SC-2024-STD` | `SC-2024-STD-100` ||
| Standard Rate | 3.75 | 50 | 60 | The expected rate at which the asset should process material. It uses the infeed units. |
| Scheduled Rate | 3.25 | 45 | 50 | The rate at which the asset is likely to process material based on the assets OEE. It is used to calculate how long in reality it will take to produce a certain quantity.|
| Period | Minute | Minute | Minute ||
| Infeed Units | lbs | units | units ||
| Outfeed Units | units | units | boxes ||
| Waste Units | lbs | units | units ||
| Package Count | 0.1 | 1.0 | 100.0 | Number of infeed units that make one outfeed unit |

::::

With the links in place, Kanoa knows that `Machine 1` can produce `SC-2024`, `Spray Line 1` can produce `SC-2024-STD`, and `Manual Pack 1` can produce `SC-2024-STD-100`. With the rates configured, it can also calculate expected production quantity, schedule duration, performance target, the OEE performance component, and infeed/outfeed relationships.

:::check

Copy this script into the Ignition Designer Script Console (**Tools → Script Console**) and run it. It checks that each item is linked to the right asset as an output, and that every rate setting in the table above is correct. 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/01-base-configuration/3-configure-item-rates.py" title="checkLesson-configureItemRates.py"}

</details>

:::

:::download[Download the completed item rates]

If you want to check your work, or skip ahead, you can import the item rates instead of building them by hand.

<a href="/files/ops-resources/coreforge-asset-model-rates-export-2.json" download="coreforge-asset-model-rates-export-2.json">Download <code>coreforge-asset-model-rates-export-2.json</code></a>

This file is an asset model export that includes the item-asset links and rates. Import it on the asset configuration screen (**Configuration → Ops → Assets**). See [Creating Assets](../../../kanoa-ops/assets.md#creating-assets).

:::
