---
title: Setup registration of stop code combined with registration of stop when no production dependet on the current product ICT on a unit
description: This service first checks the state code, if it is not the run code, then a stop is created based on the state code. If the state code is the run code, then the service checks if the last production a
---

[Skip to content](https://kb.dataintel.dk/setup-registration-of-stop-code-combined-with-registration-of-stop-when-no-production-dependet-on-the-current-product-ict-on-a-unit#main-content)

English

Show submenu for translations

[Submit a request](https://kb.dataintel.dk/kb-tickets/new?hsLang=en)

![DIAP-1.png\]](https://kb.dataintel.dk/hs-fs/hubfs/DIAP-1.png?height=41&name=DIAP-1.png)

- [Default HubSpot Blog](https://diap-6547305.hs-sites.com/blog)

Open main navigation

Close main navigation

- [Default HubSpot Blog](https://diap-6547305.hs-sites.com/blog)
- English
  
  Show submenu for translations
- [Submit a request](https://kb.dataintel.dk/kb-tickets/new)
- Go to Data Intelligence A/S

 Go to Data Intelligence A/S

 Hello. How can we help you?

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

1. [Help Center](https://kb.dataintel.dk/?hsLang=en)
2. [OEE site](https://kb.dataintel.dk/oee-site?hsLang=en)
3. [Configuration](https://kb.dataintel.dk/oee-site?hsLang=en#configuration)

# Setup registration of stop code combined with registration of stop when no production dependet on the current product ICT on a unit

### Introduction

- This guide describes how to setup registration of stops using state codes and when there is no production for an inactive time based on the ICT (Ideal cycle time) of the current product on a unit. This is basically a combination of [Setup registration of stop code](https://kb.dataintel.dk/setup-registration-of-stop-code?hsLang=en) and of [Setup registration of stop when no production dependet on the current product ICT on a unit](https://kb.dataintel.dk/setup-registration-of-stop-when-no-production-dependet-on-the-current-product-ict-on-a-unit?hsLang=en)

### Flow of stop creation

This service first checks the state code, if it is not the run code, then a stop is created based on the state code. If the state code is the run code, then the service checks if the last production active is within the period given by the ICT of the current product, if it isn't a small stop is creates.

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360016161859mceclip0.png)

### Setup

Go to the **Configuration -\>Data source** page:

![](https://kb.dataintel.dk/hubfs/image-png-Jul-02-2021-11-19-24-16-AM.png)

Select the unit you wish to setup the registration for(The units here are examples and are different from yours):

![](https://kb.dataintel.dk/hubfs/image-png-Jul-02-2021-11-44-01-88-AM.png)

Click the **Add** button:

![](https://kb.dataintel.dk/hubfs/image-png-Jul-02-2021-11-20-09-41-AM.png)

Select **Stop by code and when no production - ICT Dependent:**

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360016163100mceclip1.png)

### Configuration of Stop by code and when no production - ICT Dependent

- **Name:** The name of the event server, that is collecting the data.

#### **The state code part of this service uses:**

- **Registration Type**: The registration type that is used. There are the following type:  
    - **Keep stop reason**:  This type keeps the first registered stop reason between run registrations. Use this type when the first stop code should represent the stop.
    - **Start new stop**: This type starts a new stop reason for each different stop codes registered between run registrations. Use this type when each stop code registered in a stop should have a representation of the stop(as a series of stops adjacent to each other).
    - **Change stop reason**: This type uses the last registered stop reason between run registrations. Use this type when the last stop code should represent the stop.
- **Stop Code Tag**: The Stop Code tag is where the stop codes are collected from. The structure of the name is  \[DIAP\]-\[PLC\]-\[Tag\]
- **Run Code:** The code, that is used to state, that the unit is running.

**The production part of this service uses:**

- **Small stop time**: This is how long a small stop can last in seconds. A stop is consisted a small stop as long as it hasn't lasted longer than this period.
- **Small Stop Reason**: This is the stop reason that is used with small stops.
- **Production Tags**: The Production tags is where the production counts are collected from. The structure of the name is  \[DIAP\]-\[PLC\]-\[Tag\]
- **No production Stop reason**: This is the stop reason that is used, when the stop has lasted longer than **Small stop time**.
- **Times ICT before no production**: (See [Example - Times ICT before no production](https://kb.dataintel.dk/setup-registration-of-stop-code-combined-with-registration-of-stop-when-no-production-dependet-on-the-current-product-ict-on-a-unit#ExampleTimesICTBeforeNoProduction)*, for more clarification on this setting*) This is how many ICT periods of the current product on a unit, that must pass after the last production activity, before a stop is created. A ICT period is the seconds of the current ICT (ideal cycle time), that is used by the current product on a unit. (You can see more information about how a ICT is setup and selected here: [ideal cycle time for units and products](https://kb.dataintel.dk/setup-ideal-cycle-time-for-units-and-products?hsLang=en))

### Stop Code tag data type

- **Type:** Double(It gets converted into an integer)

The expected data type is hold numbers like : 0, 1, 2, 3, 5.

### Production tag data type

- **Type:** Double

The expected data type is decimal numbers like : 0.0, 0.1,1.

### Example - Registration Type, Keep stop reason:

Run Code = 1.

A unit is running, then it receives the stop code 12, then 17 and last 20, with registration type set to **Keep stop reason**, the first stop code is used to represent the stop:

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360037778414mceclip3.png)

### Example - Registration Type, Start new stop:

Run Code = 1.

A unit is running, when it receives the stop code 12, then 17 and last 20, with registration type set to **Start new stop**, all of the stop codes are used to represent the stop as more stops adjacent to each other:

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360038611893mceclip4.png)

### Example - Registration Type, Change stop reason:

Run Code = 1.

A unit is running, when it receives the stop code 12, then 17 and last 20, with registration type set to **Change stop reason**, the last stop code is used to represent the stop:

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360038612153mceclip5.png)

### Codes Setup:

**For more information regarding setup of stop codes, see:** [Setup registration of stop code](https://kb.dataintel.dk/setup-registration-of-stop-code?hsLang=en)

### Example - Times ICT before no production

The **Times ICT before no production** is used to resolve a **period** of seconds, that must pass after the last production activity, before a stop is created. This period is calculated this way:

***Period** = **Times ICT before no production** \* **Current ICT on unit and product***

Say that you have set the **Times ICT before no production** to 3:

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360016166900mceclip2.png)

The **Current ICT on unit and product** is based on the unit, that the event server is configured for. Here we have selected **Demo 1**:

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360010284760mceclip3.png)

And the current product, that is being produced(Here we are producing Product1, you can see this information on the page **Views -\> Productions status)**

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360010284820mceclip4.png)

Now we see what the **ICT** is for **Product1**, when it is produced on **Demo 1** (You can see more information about how a ICT is setup and selected here: [ideal cycle time for units and products](https://kb.dataintel.dk/setup-ideal-cycle-time-for-units-and-products?hsLang=en)) Here the **Current ICT on unit and product** is 10 seconds

![](https://kb.dataintel.dk/hubfs/image-png-Apr-01-2022-11-40-39-21-AM.png)

Now we can calculate the **period**:

**Times ICT before stop occurs = 3**

**Current ICT on unit and product= 10 seconds**

**Period = 3 \* 10 = 30 seconds**

This means that if there has been no production activity within the last 30 seconds, then a stop will be created.

### Stops starts with a duration of the current product ICT

When a stop is created, it will start with a duration based on the ICT from the current product on a units. If we take the example from above(see [Example - Times ICT before no production](https://kb.dataintel.dk/setup-registration-of-stop-code-combined-with-registration-of-stop-when-no-production-dependet-on-the-current-product-ict-on-a-unit#ExampleTimesICTBeforeNoProduction)), then the stop will start with a duration of 10 seconds.

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360010287920mceclip7.png)

### Example - Configure Stop by code and when no production - ICT Dependent

Select a name for the event server, that is collecting the data. Here we called it "Stop by code and when no production - ICT Dependent":

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360016169899mceclip3.png)

Set how long a small may last in seconds. Stops that last to this period and not longer, are consisted small stops. Here we set it to 30 seconds:

![](https://kb.dataintel.dk/hubfs/image-png-Jul-02-2021-11-26-30-48-AM.png)

Select a small stop reason, when a small stop is created, it uses this stop reason. Here we used "Small Stop":

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360016170199mceclip4.png)

Select a registration type, this decide whether the first stop code(Type **Keep stop reason**), all of the stop codes(Type **Start new stop**) or the last stop code represent the stop(Type **Change stop reason**), Here we used "Start new stop":

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360016170419mceclip5.png)

Select the Stop Code tag, where the state code data comes from. Here we selected "dev00225 - Demo - Tag 1":

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360016168080mceclip6.png)

Select a run Code, this code represent the run state of the unit:

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360016168360mceclip9.png)

Select the Production tags, where the production data comes from. Here we selected "dev00225 - Demo - Tag 2":

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360016168520mceclip10.png)

Select the stop reason, that will be used, when the stop has lasted longer than **Small stop time**. Here we selected "No Production":

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360016170639mceclip11.png)

Set how many ICT period must pass, before a stop is created. Here we sat it to 3 periods:

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360016170679mceclip12.png)

When you are done, the configuration should look something like this (But with your values):

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360016168700mceclip13.png)

Click **Save** to save the configuration:

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360037673894mceclip11.png)

Now you have a configuration for checking state codes and production activity.

### Start collecting data

When you have made your configurations in the **Data source**, then you need to start the event server for the configuration, so the data get collected.

Go to the **Configuration-\>Data source status** page:

![](https://kb.dataintel.dk/hubfs/image-png-Jul-02-2021-11-27-27-24-AM.png)

Select your unit:

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360038505433mceclip13.png)

Click the switch for the event server with the configuration:

![](https://kb.dataintel.dk/hubfs/image-png-Jul-02-2021-11-30-30-54-AM.png)![](https://kb.dataintel.dk/hubfs/image-png-Jul-02-2021-11-29-55-57-AM.png)

Then the light turns green and the Last run timestamp is updated, when your event server has run your configuration for the first time:

![](https://kb.dataintel.dk/hubfs/Knowledge%20Base%20Import/eltronic.zendesk.comhcarticle_attachments360038507553mceclip14.png)

That it. Now your configuration are done and you are collecting data.

 

 

 

- [DIAP Gateway](https://kb.dataintel.dk/diap-gateway?hsLang=en#main-content)

    - [Getting Started](https://kb.dataintel.dk/diap-gateway?hsLang=en#getting-started)
    - [Troubleshooting](https://kb.dataintel.dk/diap-gateway?hsLang=en#troubleshooting)
    - [Known issues/limitations](https://kb.dataintel.dk/diap-gateway?hsLang=en#known-issues-limitations)
- [General](https://kb.dataintel.dk/general?hsLang=en#main-content)

    - [FAQ](https://kb.dataintel.dk/general?hsLang=en#faq)
- [Configuration](https://kb.dataintel.dk/configuration?hsLang=en#main-content)

    - [FAQ](https://kb.dataintel.dk/configuration?hsLang=en#faq)
    - [Troubleshooting](https://kb.dataintel.dk/configuration?hsLang=en#troubleshooting)
    - [Guides](https://kb.dataintel.dk/configuration?hsLang=en#guides)
    - [Protocols](https://kb.dataintel.dk/configuration?hsLang=en#protocols)
- [Live/Real time site](https://kb.dataintel.dk/live-real-time-site?hsLang=en#main-content)

    - [Getting Started](https://kb.dataintel.dk/live-real-time-site?hsLang=en#getting-started)
    - [FAQ](https://kb.dataintel.dk/live-real-time-site?hsLang=en#faq)
    - [Guide](https://kb.dataintel.dk/live-real-time-site?hsLang=en#guide)
    - [Features](https://kb.dataintel.dk/live-real-time-site?hsLang=en#features)
- [OEE site](https://kb.dataintel.dk/oee-site?hsLang=en#main-content)

    - [Getting Started](https://kb.dataintel.dk/oee-site?hsLang=en#getting-started)
    - [FAQ](https://kb.dataintel.dk/oee-site?hsLang=en#faq)
    - [Guides](https://kb.dataintel.dk/oee-site?hsLang=en#guides)
    - [Configuration](https://kb.dataintel.dk/oee-site?hsLang=en#configuration)
- [Remote Access](https://kb.dataintel.dk/remote-access?hsLang=en#main-content)

    - [Getting Started](https://kb.dataintel.dk/remote-access?hsLang=en#getting-started)
    - [FAQ](https://kb.dataintel.dk/remote-access?hsLang=en#faq)
    - [Guides](https://kb.dataintel.dk/remote-access?hsLang=en#guides)
- [API](https://kb.dataintel.dk/api?hsLang=en#main-content)

    - [API](https://kb.dataintel.dk/api?hsLang=en#api)
- [Release information](https://kb.dataintel.dk/release-information?hsLang=en#main-content)

    - [DIAP Release Notes](https://kb.dataintel.dk/release-information?hsLang=en#diap-release-notes)
    - [Live/Real time site](https://kb.dataintel.dk/release-information?hsLang=en#live-real-time-site)
    - [OEE site](https://kb.dataintel.dk/release-information?hsLang=en#oee-site)
    - [Management site](https://kb.dataintel.dk/release-information?hsLang=en#management-site)
    - [DIAP Gateway](https://kb.dataintel.dk/release-information?hsLang=en#diap-gateway)

- [Default HubSpot Blog](https://diap-6547305.hs-sites.com/blog)

[![Chill listening crop-3](https://kb.dataintel.dk/hs-fs/hubfs/Sk%C3%A6rmbillede%202021-05-04%20kl.%2017.46.04.png?width=221&height=26&name=Sk%C3%A6rmbillede%202021-05-04%20kl.%2017.46.04.png "Chill listening crop-3")](https://diap.hubspotpagebuilder.com/-temporary-slug-5b226bcb-69c8-45c1-82ff-e060e2d4037d?hsLang=en)

Copyright © 2026, Data Intelligence A/S