> ## Documentation Index
> Fetch the complete documentation index at: https://docs.industrialpmr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Production Targets, Downtime & Raw Materials

> Setting machine production quotas, OEE calculations, downtime classification, and raw material inventory tracking.

The **Production Targets & Raw Materials** suite gives shift supervisors and production managers complete control over job orders, shift quotas, machine downtime categorization, and resin inventory consumption.

***

## Production Targets Master View

The **Production Targets** view organizes all machines with real-time target completion cards:

![Production Targets Overview](https://mintcdn.com/kunji-soft-technologies/TnyhoDiDF9en26mf/images/dashboard-targets.png?fit=max\&auto=format\&n=TnyhoDiDF9en26mf\&q=85\&s=d5d7d981612a3ed4fe770229c18d3001)

### Target Card Anatomy

![Target Card Anatomy with Visual Callouts](https://mintcdn.com/kunji-soft-technologies/TnyhoDiDF9en26mf/images/dashboard-target-card-annotated.png?fit=max\&auto=format\&n=TnyhoDiDF9en26mf\&q=85\&s=360794380e84b8dc2fac1259e6c60e3c)

| Marker | Component | Description & Telemetry Source |
| :-: | :- | :- |
| **①** | **Machine & State Banner** | Targeted production unit (`Toshiba 350T IMM-01`) with active state (`46m - ON`). |
| **②** | **Concentric Fulfillment Dial** | Dual radial progress rings tracking Expected Output (`4.1K pcs`) vs Actual Molded Pieces (`4,120 of 5K pcs`) with live `● ON TRACK` badge. |
| **③** | **Tooling & Nominal Cycle** | Active mold code (`DOOR TRIM LH 8210`) with benchmark cycle standard (`25s`). |
| **④** | **OEE Rating & Time Forecast** | Live OEE score (`92.13%`), shift run/downtime (`5H ON / 28M DOWN`), and real-time forecast (`PROJECTED COMPLETION: IN 3H`). |

***

## Machine Production Target & Order Management

Opening an active or pending machine target navigates to the dedicated **Production Target Inspector**:

![Machine Target Management View](https://mintcdn.com/kunji-soft-technologies/TnyhoDiDF9en26mf/images/dashboard-target-detail.png?fit=max\&auto=format\&n=TnyhoDiDF9en26mf\&q=85\&s=8a4489413657235aee0f92950b43d186)

1. **Select Target Mode**:
   * **Enterprise ERP Order**: For integrated facilities, select an approved Production Order (PO) to automatically populate order number, material code, target piece count, and scheduled finish date.
   * **Custom Factory Target**: For internal runs, input the target piece quota, active mold, operator name, and scheduled completion window.
2. **Verify Tooling & Mold Configuration**:
   * Confirm the installed mold profile (e.g., `GALLON IML 6`, `BUCKET`, `PAINT GALLON`).
   * Verify the cavity count (e.g., 1-cavity, 2-cavity, 4-cavity) and nominal cycle time (seconds).
3. **Lock & Activate Target**:
   * Click **Save & Activate Target**.
   * Industrial PMR immediately freezes baseline pulse readings and begins accumulating pieces in real time.

***

## Targets Page Filters & Summary

Selecting a card opens `/targets/:machineID`.

The page refreshes itself every **30 seconds**.

### Filters

| Control | Description |
| :- | :- |
| **Search** | Find a machine by name. |
| **All Departments** | Show only one department's machines. |
| **All Statuses** | Show machines that are On, Off, Idle, or Offline. |
| **All / Active Targets / SAP Orders** | Show every machine, only machines that have a target, or only machines linked to a SAP order. |

### Summary Bar

| Tile | Description |
| :- | :- |
| **Active Targets** | Machines with a target out of the total machines, with a percentage. |
| **Floor Production** | Pieces produced against the combined target quantity, with an overall percentage. |
| **Schedule Health** | How many targets are **On Track** and how many are **Behind**. |
| **SAP Orders** | Number of **Linked POs**, the last sync time, and a **Sync SAP** button. Shows **No Active SAP Targets** when none are linked, and **Syncing with SAP...** while a refresh runs. |

### Target Card States

* A machine without a target shows **No Active Target** and **Awaiting Setup**, with a **Set Target or SAP Order** action.
* A **SAP** badge marks a card linked to a SAP order.
* A **Manual End** badge marks a target that must be completed by hand (see [Ending a Target](#ending-a-target)).
* Cards show **Prog** (progress), **OEE**, **ontime**, **downtime**, and **projected completion**.

***

## Target Detail Tabs

| Tab | Contents |
| :- | :- |
| **Current Stats** | Progress, projected completion, a Performance and OEE card, and (when SAP is enabled) a SAP target summary. The downtime figure shows a **Planned** badge with the total planned downtime when there is any. |
| **Ontime** | Time the machine ran. |
| **Downtime** | Every stop with Started, Reason, and Duration. Categorize one at a time or several at once. See [Downtime Categorization](https://docs.industrialpmr.com/dashboard/downtime-categorization.md). |
| **Hourly Stats** | Target versus actual by hour. |
| **Queue** | Upcoming targets. |

### Target Page Header

| Control | Description |
| :- | :- |
| **Machine Details** | Opens the machine's live telemetry page. |
| **Refresh** | Reloads live target and production data. |
| **Update Target** | Opens the target form to change the running target. |
| **Categorize Downtime** | Appears when the categorization prompt applies (see below). |

A **Target Reached** badge appears when the quota is met. For SAP targets, **Manual End Required** appears instead until the target is completed by hand.

### Current Stats Details

* **Produced / Target**, **Hourly Target**, **Ontime Run** (live production time), and **Downtime Recorded** (idle and stops logged).
* **Completion Timeline** shows **Started**, **Expected End**, and **Due Set**, or **Goal Achieved** once the target is reached.
* With no target, the page shows **No Active Production Target** with the installed mold and current OEE, and a button to set a target or import a SAP order.
* The **Ontime** tab shows **No Runtime Logged Today** until the machine sends data.

### Downtime Tab

* Stops can be categorized **one at a time**, or **several at once (bulk)** with the same category, note, and Planned/Unplanned setting.
* Already categorized stops can be **edited**.
* Stops that began before the target started are ignored.
* A stop left open when the machine resumed is closed automatically, and duplicate records are merged.

### Hourly Stats: 24h Uniform Timeline

The timeline shows **every hour, including hours with no record**.

* Hours outside the configured shifts are marked **Off Shift** and count as zero downtime.
* **Active Shifts Only** hides the off-shift hours. The toggle appears only when the target has off-shift hours.
* The Downtime column shows the duration and the reason: a blue **Planned: …** badge for planned stops, red for uncategorized.
* **Efficiency per hour** = ontime ÷ (ontime + unplanned downtime).
* Hours that ended before the target started are excluded.

### Queue

Lists upcoming targets with **total occupied hours** and **projected end time**. You can **start the queue**, **delete** an item, or **change the order**.

***

## Add or Update a Target

| Field | Description |
| :- | :- |
| **Name** | Target name. |
| **Mold** | Mold to run, with its cycle time. |
| **Target pieces** | Total quota. |
| **Hourly target** | Pieces expected per hour. |
| **Monitor Downtime** | Yes or No. Controls whether the downtime categorization prompt appears. |
| **Due date** | Set manually, or choose **Auto**. |
| **Notifications** | Which events to notify about. |
| **Notify** | The **device categories** that receive the notifications. |

**Notification types:** **Milestone**, **Due Missed**, and **Expected Target Missed**.

With SAP enabled, an order can be chosen from the SAP order selector. See [SAP integration](https://docs.industrialpmr.com/integrations/sap-erp.md).

> [!NOTE]
>
> The downtime categorization prompt appears when the machine is not running, the target has started, Monitor Downtime is on, and downtime records exist.

### Form Behavior

* **Name** is required (up to 150 characters). The **Mold** is the one installed on the machine and is shown with its cycle time.
* **Target pieces** and **Hourly target** must each be at least 1. When a SAP order is linked, the target quantity is read-only and marked **Locked to SAP**.
* **Max Hourly Target** is the most the mold can produce in an hour: 3600 ÷ cycle time × cavities, rounded down. Click it (or **Auto-fill**) to use it as the hourly target.
* With **Auto** due date, the due date is the target pieces ÷ hourly target hours from now. If no hourly target is set, it is the expected end time plus one hour.
* A due date in the past is rejected (**Due date cannot be in the past**).
* The footer shows the **Target**, **Max Hourly Target**, and **Expected End** (cycle time × shots needed, rounded up).
* **Update Target** keeps the live piece count and the original start time, so updating a running target does not reset it.
* When the machine already has a target, the same form can **Queue** the next one. See [Queue](#queue).

### Ending a Target

* **End Now** (shown when updating an existing target) ends the target after a danger confirmation and clears the target from the machine.
* **SAP targets never complete automatically.** Production keeps accumulating after the quantity is reached until someone presses **Complete Target**. See [SAP integration](https://docs.industrialpmr.com/integrations/sap-erp.md#manual-completion).

***

## Target Lifecycle & Operational Continuity

```mermaid theme={null}
stateDiagram-v2
    [*] --> Unassigned : Machine Idle / Setup
    Unassigned --> Active : Target Assigned (Manual or ERP)
    Active --> Active : Pulse Sensors Increment Piece Counts
    Active --> Active : OEE Calculated Continuously
    Active --> QuotaReached : Produced Count >= Target Quota
    QuotaReached --> Active : Production Continues (Buffer / Quality Samples)
    QuotaReached --> Closed : Shift Supervisor Closes Target
    Active --> Closed : Manual Force Close (Mold Change)
    Closed --> [*]
```

In Industrial PMR, reaching 100% of a production quota **never** halts edge sensors or interrupts machine operation.

Factory operations frequently require producing an extra buffer (e.g., 2% to 5%) to cover quality control lab sampling or downstream packaging rejects. When the quota is achieved:

* The target progress badge illuminates **Green** (`Quota Reached`).
* Piece counters continue incrementing accurately without resetting.
* Only the authorized shift supervisor can trigger **Close Target** during shift handover.

***

## Overall Equipment Effectiveness (OEE)

Industrial PMR computes real-time OEE across all running machines according to industry gold standards:

$\text{OEE} = \text{Availability} \times \text{Performance} \times \text{Quality}$

* **Availability**:
  $\text{Availability} = \frac{\text{Actual Operating Run Time}}{\text{Planned Shift Production Time}}$
* **Performance**:
  $\text{Performance} = \frac{\text{Actual Cycle Speed}}{\text{Standard Baseline Cycle Time}} = \frac{\text{Total Cycles Produced} \times \text{Ideal Cycle Time}}{\text{Operating Run Time}}$
* **Quality**:
  $\text{Quality} = \frac{\text{Good Accepted Pieces}}{\text{Total Pieces Produced}}$

***

### Target OEE and Planned Downtime

On the target page, OEE is calculated as:

$\text{OEE} = \frac{\text{Ontime}}{\text{Ontime} + \text{Downtime} - \text{Planned Downtime}} \times 100$

**Planned downtime does not reduce OEE.** Mark stops as *Planned* in the [downtime categorization](https://docs.industrialpmr.com/dashboard/downtime-categorization.md) dialog.

### Target Statistics

> [!NOTE]
>
> **Target Statistics** (`/targets/stats`) is planned. It will offer a month-range picker and a units-produced figure. The route currently shows "Coming Soon".

***

## Raw Materials & Inventory Tracking

Navigate to **Raw Materials** to monitor shop-floor material consumption and resin silo levels:

![Raw Materials Dashboard](https://mintcdn.com/kunji-soft-technologies/TnyhoDiDF9en26mf/images/dashboard-raw-materials.png?fit=max\&auto=format\&n=TnyhoDiDF9en26mf\&q=85\&s=91a18f2492325df91304ad5a5bc72310)

### Raw Material Features

* **Real-Time Consumption**: Automatically calculates grams and kilograms of resin consumed based on:
  $\text{Material Used} = \text{Shot Count} \times (\text{Part Weight} + \text{Runner / Sprue Weight})$
* **Inventory Utilization Gauge**: Donut meter indicating the percentage of allocated raw material consumed against batch inventory.
* **Material Distribution Breakdown**: Displays consumption split across high-volume polymer grades (e.g., PP Homo-polymer, HDPE, ABS, Masterbatch additives).
* **Material Management Portal (`/raw-materials/manage`)**: Add, edit, and delete materials and track remaining stock. See below.

### Raw Materials Page

The page shows **total consumption**, a **consumption breakdown with insights**, and **inventory status** (available quantity, total materials, and percentage utilized).

***

## Manage Inventory

Open **Manage Inventory** at `/raw-materials/manage`.

### Stat Cards

**Total Materials**, **Available Material**, **Consumed Material**, and **Negative Materials**.

### Table, Search & Sort

| Column | Description |
| :- | :- |
| **Name** | Material name |
| **Department** | Owning department |
| **Consumed** | Quantity consumed |
| **Remaining** | Quantity left |
| **Updated** | Last update time |
| **Last Used** | When it was last consumed |

* **Search** by name and **filter** by department.
* **Sort** by Name, Consumed, Remaining, Updated, or Last Used.

### Add Material

| Field | Options |
| :- | :- |
| **Name** | Material name |
| **Department** | Department the material belongs to |
| **Quantity type** | **Weight** or **Pieces** (pieces need a **piece weight in grams**) |
| **Unit** | **Bags** (25 kg each) or **KGs** |
| **Quantity** | Starting stock |

### Edit or Delete Material

* **Set** the quantity to a new value, or **Add** to the current stock.
* Materials can be **deleted** after confirmation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.