---
title: Compliance and Loss
slug: manufacturing-connect-edge-v2/compliance-and-loss
docTags: 
createdAt: 2022-10-21T14:40:58.000Z
---

The **Compliance and Loss&#x20;**&#x4B;PI mainly deals with manufactured units and defective units.

# Compliance and Loss Overview

**Compliance:**

- If you do not need to keep a track of ALL the failures happening in a factory (like a machine failure/defective units/failing regulation, etc.), but if there is a topic(event trigger) that updates whenever there is such an event, you can just monitor how many units are compliant (pass quality assurance/non-defective units).

**Production Loss:**

- If you need to know how many of the manufactured units were unsuccessful, and hence realize the loss incurred on the desired period.
- The **timer interval** parameter is useful if the connected input tag is offline, but you still want this KPI to "look" for a value every few seconds, defined by the aforementioned timer.
  - If you know your tag is going to reliably publish at the expected interval, it is better to disable this timer by entering 0 in this field.

After creating this KPI, you need to add definitions called *manufactureEnd* and *defectiveUnit* to the connecting wire, which are event triggers, triggering when it is the end of manufacturing cycle, and one trigger which represents a defective unit was discovered.

# Compliance and Loss Parameter

| **Parameters**   | **Details**                                                                                                          |
| ---------------- | -------------------------------------------------------------------------------------------------------------------- |
| Manufacture From | The value at which the manufacturing cycle begins.                                                                   |
| Manufacture To   | The value at which the manufacturing cycle ends.                                                                     |
| Defective From   | The value at which the system detects a defective unit at the beginning.                                             |
| Defective To     | The value at which the system detects a defective unit at the end.                                                   |
| Timer Interval   | Timer in milliseconds. If no event, use this timer to keep displaying the output continually. Enter zero to disable. |

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/YPdiR9Vzm6CmcTEzzjGHV_image.png "Compliance and Loss Parameter")

:::hint{type="info"}
**Note:&#x20;**&#x57;hen creating an analytics flow with *Compliance and Loss&#x20;*&#x4B;PI, refer the [Use the Compliance and Loss KPI](docId\:aUMVIS5lLAc3c13R6BA69) guide for more details.
:::

