# Transports (Mobile Assets)

Some material sits on something that moves: a reusable tote, a cart, a rack, a tray, a forklift, a trailer. If you model that carrier as a fixed location, every lot on it has to be moved each time the carrier moves.

Instead, model the carrier as a **mobile asset** and use it as the **transport** of a lot event. A lot event then records two things:

- **Where the lot is**: its asset, such as `Coating\Spray Line 1`.
- **What it's on**: its transport, such as `Tote 01`.

So you can answer questions like:

- What's on `Tote 01`?
- What's at `Finishing\QA Station`, on or off a transport?
- Which lots are on transports at `Coating\Spray Line 1`?
- Which transport is carrying this lot?

## Creating mobile assets

An asset is mobile when its **asset type** is mobile.

1. Navigate to **Configuration → Ops → Assets** and select any asset.
2. Click the edit button next to **Asset Type** to open the asset type editor.
3. Select the parent type, such as `area`, and click **Add**. Name the type after the carrier, such as `Tote` or `Cart`, tick **Mobile**, choose an icon, and click **Save**.
4. Add the carriers as assets of that type. Keep them together under an area, such as `Totes`, so they're easy to find in the asset tree. That area only organizes them; lots don't go there.

| Asset type setting | Description |
| --- | --- |
| **Mobile** | Assets of this type are carriers that don't have a fixed location, such as racks, trays, totes and carts. They're offered as the transport of a lot event. |

## Using transports in lot operations

Every lot event has an optional transport (`assetTransportId`) alongside its asset:

- **Loading** a lot onto a transport is an operation, usually a `Transfer`, whose output lot event has the transport set.
- **Moving** the lot with the transport is a `Transfer` to the new asset that keeps the same transport.
- **Unloading** is a `Transfer` whose output has no transport.
- An **input** lot event takes the material from the transport it's on, so the quantity on that transport goes down.

In the Lot Manager, the lot table shows each lot's transport, and the **Transport** filter shows what's on one transport. When you run an operation, the **Transport** dropdown lists the enabled mobile assets.

## Transports in scripts

| Function | Transport parameters |
| --- | --- |
| [system.kanoa.lot.executeLotOperation](../systemFunctions/lot/executeLotOperation.md) | `assetTransportId` on each input and output lot event |
| [system.kanoa.lot.getLotActivity](../systemFunctions/lot/getLotActivity.md) | Filter by `assetTransportName`; each row returns `assetTransportId` and `assetTransportName` |
| [system.kanoa.asset.getAssets](../systemFunctions/asset/getAssets.md) | `mobile: True` returns the mobile assets |

Transport workflows usually run on custom screens built with these functions: load a lot onto a transport, move the transport, unload it, and view what it carries, often with barcode scans.
