# Configure Assets

Let's start by creating the asset model for the CoreForge plant.

::embed-section{src="../../../kanoa-ops/assets.md" collapsed="true" summary="Reference Materials: Assets - Learn how Kanoa models production equipment."}

::::action[Create the initial asset hierarchy]

1. Navigate to **Configuration → Ops → Assets**.
2. Create the following hierarchy:

   ```text
   CoreForge
   └── Philadelphia
       ├── Machining
       │   └── Machine 1
       ├── Coating
       │   └── Spray Line 1
       └── Finishing
           └── Manual Pack 1
   ```

3. Set the asset types:
   - `CoreForge` is the **Enterprise**.
   - `Philadelphia` is the **Site**. Set its time zone to Eastern Standard Time.
   - `Machining`, `Coating`, and `Finishing` are **Areas**.
   - `Machine 1`, `Spray Line 1`, and `Manual Pack 1` are **Lines**.
4. For each of the three line assets, enable **OEE Enabled**, set the **Process Type** to **discrete**, and save the asset.

:::tip[Asset in the wrong place?]

If you accidentally create an asset in the wrong place, no problem, simply drag that asset to where it rightfully belongs. You can do this at anytime even when that asset is running.
Data is stored against the assets primary key (assetId) and that never changes, so you move and rename assets at any time without fear of breaking your MES.
::::

***

**Asset Groups** allow you to group similar assets anywhere within an organization together. 
While Asset Groups are not needed, Kanoa has built-in reporting that can take advantage of them, and they become more valuable when you scale the implementation.
For this training we will setup Asset Groups.

:::action[Create Asset Groups]

1. You'll use one asset group for each main type of OEE-enabled asset in the system:

   - Machines
   - Coating Lines
   - Manual Packaging Lines

2. Assign an asset group to each line asset, creating the group the first time you use it:

   - Open the asset configuration and select the asset.
   - In the **Asset Group** dropdown, select the group. If it doesn't exist yet, type the group name and select **Create**.
   - Save the asset.

Configure the following:

| Asset | Asset group |
|---|---|
| Machine 1 | Machines |
| Spray Line 1 | Coating Lines |
| Manual Pack 1 | Manual Packaging Lines |
:::

***

:::check

Copy this script into the Ignition Designer Script Console (**Tools → Script Console**) and run it. It checks the hierarchy, asset types, the site's time zone, each line's OEE and process type settings, and the asset groups. 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/1-configure-assets.py" title="checkLesson-configureAssets.py"}

</details>

:::

:::download[Download the completed asset model]

If you want to check your work, or skip ahead, you can import the asset hierarchy instead of building it by hand.

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

Import it on the asset configuration screen (**Configuration → Ops → Assets**) using the import/export button.

:::
