---
title: How to create a trigger outside of a Setup state?
description: "To trigger an alert outside of a setup you can do 2 things: 1. Trigger the alert at the end of a Setup state: Triggers Machine State Select ‘Setup’ Toggle on ‘On End’ Ensure a line is selected  2. Tri"
---

[Skip to content](https://support.ofsystems.com/how-to-create-a-trigger-outside-of-a-setup-state#main-content)

![OFS\_Circle.png\]](https://support.ofsystems.com/hs-fs/hubfs/OFS_Circle.png?height=45&name=OFS_Circle.png)

- [OFS Customer Portal](https://support.ofsystems.com/)
- [Main Website](https://ofsystems.com/)
- [Contact Us](https://www.ofsystems.com/contact-us?)
- [Service Portal](https://ofsystems.atlassian.net/servicedesk/customer/portal/1)

Open main navigation

Close main navigation

- [OFS Customer Portal](https://support.ofsystems.com/)
- [Main Website](https://ofsystems.com/)
- [Contact Us](https://www.ofsystems.com/contact-us?)
- [Service Portal](https://ofsystems.atlassian.net/servicedesk/customer/portal/1)

 Welcome to the OFS Customer Portal

- There are no suggestions because the search field is empty.

1. [OFS Customer Portal](https://support.ofsystems.com/?hsLang=en)
2. [How To Questions](https://support.ofsystems.com/how-to-questions?hsLang=en)
3. [Flow - Conditional Expression & Triggers](https://support.ofsystems.com/how-to-questions?hsLang=en#flow-conditional-expression-triggers)

# How to create a trigger outside of a Setup state?

## Stop an alert or form firing while the line is still in Setup, using either the end of the Setup state or a unit count as the starting point.

#### **What you'll build**

One of two triggers, depending on what you need:

- A trigger that fires the moment the Setup state ends.
- A trigger that fires once the line has produced a set number of units, which only happens after production has genuinely started.

#### **Which one to use**

Use the end of the Setup state when the check belongs to the changeover itself — a first-off quality check, or a sign-off that the line is ready.

Use the unit count when the check belongs to production and you want proof the line is actually running, not only out of Setup. This is the safer option on lines where Setup ends before anything is being made.

#### **Option 1 — Trigger at the end of the Setup state**

1. Go to the **Triggers** tab.
2. Select **Machine State** and click the **+** button.
3. Select **Setup**.
4. Toggle on **On End**.
5. Select the **Lines** the trigger applies to, and the **Services** that should deliver the message.
6. Click **Update**, then **Save** on the page.

![](https://support.ofsystems.com/hs-fs/hubfs/image-png-Aug-27-2024-05-09-50-4852-AM.png?width=670&height=451&name=image-png-Aug-27-2024-05-09-50-4852-AM.png)

#### **Option 2 — Trigger after a number of units In**

1. Go to the **Triggers** tab.
2. Select **Job** and click the **+** button.
3. Toggle on **Offset** and enter the number of units.
4. Select **In** as the unit.
5. Select the **Lines** the trigger applies to, and the **Services** that should deliver the message.
6. Click **Update**, then **Save** on the page.

The alert only fires once OFS starts counting, so anything that happens during Setup is passed over.

![](https://support.ofsystems.com/hs-fs/hubfs/image-png-Aug-27-2024-05-08-18-6342-AM.png?width=670&height=331&name=image-png-Aug-27-2024-05-08-18-6342-AM.png)

---

#### **Test it**

Run a changeover on the line and watch what happens.

- With Option 1, the alert should fire as the line leaves Setup, not while it is still in it.
- With Option 2, the alert should stay quiet through the whole changeover and fire only once the unit count is reached.

If nothing fires either way, check for a yellow **Unlicensed Lines** badge on the alert group, the alert or the trigger's Licence column, then confirm **Disable Alert** is off and the trigger has at least one line.

#### **Adapting it to your own line**

- Set the offset in Option 2 high enough that it cannot be reached by test running or by the tail of the previous job. A handful of units is rarely enough.
- Both options can carry a conditional expression as well, if the check should only apply to certain products.

- [Getting Started](https://support.ofsystems.com/getting-started?hsLang=en#main-content)

    - [Console: The Basics](https://support.ofsystems.com/getting-started?hsLang=en#console-the-basics)
    - [Analytics: The Basics](https://support.ofsystems.com/getting-started?hsLang=en#analytics-the-basics)
    - [Fusion Manager: The Basics](https://support.ofsystems.com/getting-started?hsLang=en#fusion-manager-the-basics)
    - [OFS-Flow Training : The Basics](https://support.ofsystems.com/getting-started?hsLang=en#ofs-flow-training-the-basics)
    - [OFS-Go](https://support.ofsystems.com/getting-started?hsLang=en#ofs-go)
    - [MayvnAI](https://support.ofsystems.com/getting-started?hsLang=en#mayvnai)
- [Help & Support](https://support.ofsystems.com/help-support?hsLang=en#main-content)

    - [Troubleshooting](https://support.ofsystems.com/help-support?hsLang=en#troubleshooting)
    - [OFS in a Box](https://support.ofsystems.com/help-support?hsLang=en#ofs-in-a-box)
    - [Routers](https://support.ofsystems.com/help-support?hsLang=en#routers)
    - [PLCs](https://support.ofsystems.com/help-support?hsLang=en#plcs)
- [Success with MayvnAI](https://support.ofsystems.com/success-with-mayvnai?hsLang=en)
- [Training Videos](https://support.ofsystems.com/training-videos?hsLang=en#main-content)

    - [Operator Console](https://support.ofsystems.com/training-videos?hsLang=en#operator-console)
    - [OFS Analytics](https://support.ofsystems.com/training-videos?hsLang=en#ofs-analytics)
    - [Fusion-Manager](https://support.ofsystems.com/training-videos?hsLang=en#fusion-manager)
    - [OFS-Flow](https://support.ofsystems.com/training-videos?hsLang=en#ofs-flow)
    - [OFS-Go](https://support.ofsystems.com/training-videos?hsLang=en#ofs-go)
- [How To Questions](https://support.ofsystems.com/how-to-questions?hsLang=en#main-content)

    - [Administration](https://support.ofsystems.com/how-to-questions?hsLang=en#administration)
    - [Operator Console](https://support.ofsystems.com/how-to-questions?hsLang=en#operator-console)
    - [Analytics](https://support.ofsystems.com/how-to-questions?hsLang=en#analytics)
    - [Fusion Manager](https://support.ofsystems.com/how-to-questions?hsLang=en#fusion-manager)
    - [Fusion Manager - Alerts & Services](https://support.ofsystems.com/how-to-questions?hsLang=en#fusion-manager-alerts-services)
    - [Flow](https://support.ofsystems.com/how-to-questions?hsLang=en#flow)
    - [Flow - Validations](https://support.ofsystems.com/how-to-questions?hsLang=en#flow-validations)
    - [Flow - Conditional Expression & Triggers](https://support.ofsystems.com/how-to-questions?hsLang=en#flow-conditional-expression-triggers)
    - [APIs](https://support.ofsystems.com/how-to-questions?hsLang=en#apis)
- [FAQs](https://support.ofsystems.com/faqs?hsLang=en#main-content)

    - [Operator Console](https://support.ofsystems.com/faqs?hsLang=en#operator-console)
    - [Fusion Manager](https://support.ofsystems.com/faqs?hsLang=en#fusion-manager)
    - [Analytics](https://support.ofsystems.com/faqs?hsLang=en#analytics)
    - [OFS-Flow](https://support.ofsystems.com/faqs?hsLang=en#ofs-flow)
- [Case Studies](https://support.ofsystems.com/case-studies?hsLang=en#main-content)

    - [Mavyn AI](https://support.ofsystems.com/case-studies?hsLang=en#mavyn-ai)
- [OFS Guides](https://support.ofsystems.com/ofs-guides?hsLang=en)
- [Webinars](https://support.ofsystems.com/webinars?hsLang=en)

[![](https://support.ofsystems.com/hs-fs/hubfs/Logo%20Medium_no%20words.png?width=128&height=68&name=Logo%20Medium_no%20words.png)](http://ofsystems.com)

Operations Feedback Pty Ltd

7/627 Chapel St, South Yarra, VIC 3123  
+61 3 8684 9859

<https://www.ofsystems.com/> <https://www.linkedin.com/company/operations-feedback-systems/> [mailto:support@ofsystems.com](mailto:support@ofsystems.com)

Copyright © 2025, Operations Feedback Systems Pty Ltd.