# OEE calculation in Ignition

**URL:** <https://forum.inductiveautomation.com/t/oee-calculation-in-ignition/84020>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [January 10, 2024, 7:18am UTC](https://forum.inductiveautomation.com/t/oee-calculation-in-ignition/84020 "2024-01-10T07:18:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anjali\_manogna](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Anjali\_manogna](https://forum.inductiveautomation.com/u/Anjali_manogna)\
**Post date:** [January 10, 2024, 7:18am UTC](https://forum.inductiveautomation.com/t/oee-calculation-in-ignition/84020/1 "2024-01-10T07:18:02Z")

</div>

How do we calculate OEE in ignition gateway is there any way for OEE calculation in ignition

---

<div class="post-metadata">

**Author:** ![shabir.ahmed](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@shabir.ahmed](https://forum.inductiveautomation.com/u/shabir.ahmed)\
**Post date:** [January 10, 2024, 9:45am UTC](https://forum.inductiveautomation.com/t/oee-calculation-in-ignition/84020/2 "2024-01-10T09:45:09Z")

</div>

Hi There are many ways to calculate. My approach is to get tag values from PLC and store it event wise. e.g. PO change, Hour, Days etc. OEE can be calculated at the same interval by script and stored as History tag or transaction group/DB bridge. Later you can query the data to display.

It can also be calculated using the formula applied by script on performance data. The question is very general you can share more details and many people would be helping here in this forum.

---

<div class="post-metadata">

**Author:** ![Anjali\_manogna](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Anjali\_manogna](https://forum.inductiveautomation.com/u/Anjali_manogna)\
**Post date:** [January 10, 2024, 9:53am UTC](https://forum.inductiveautomation.com/t/oee-calculation-in-ignition/84020/3 "2024-01-10T09:53:41Z")

</div>

Yes sure. We get it by writing the formula in the script and creating the tag details independently Is there any other way like fetching the availability performance and quality from the database in ignition gateway ?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 10, 2024, 10:37am UTC](https://forum.inductiveautomation.com/t/oee-calculation-in-ignition/84020/4 "2024-01-10T10:37:26Z")

</div>

> [@Anjali\_manogna](#):
>
> Is there any other way like fetching the availability performance and quality from the database in ignition gateway?

Is the information available in the gateway? How have you stored it? Machine run time / availability is usually easy to record and calculate. Rate should be easy to calculate from the run time and production counts. Quality you can get if the machine has reject counters but if the operator rejects parts as well (after visual inspection, for example) then you need to input that data into the database.

> [@Anjali\_manogna](#):
>
> ... and creating the tag details independently.

You'll need to explain that. Most of us would calculate OEE from a database, not from a tag.

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [January 10, 2024, 12:36pm UTC](https://forum.inductiveautomation.com/t/oee-calculation-in-ignition/84020/5 "2024-01-10T12:36:45Z")

</div>

> [@OEE Sepasoft vs In house Development](https://forum.inductiveautomation.com/t/oee-sepasoft-vs-in-house-development/44431):
>
> We are currently investigating OEE development and are considering using Sepasfot OEE modules Without having the experience we are looking to justify using the OEE package vs development from scratch and need to present to our leadership team (non-technical) for justification. Looking for shared experiences, methods of justification ( i.e reduced development time, sounds good but how do we explain this?) What other advantages have been found?

Note my OEE works are all Vision, none of my customers have asked me to do it in Perspective, yet.

---

<div class="post-metadata">

**Author:** ![Sandip\_Tiwari](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sandip\_Tiwari](https://forum.inductiveautomation.com/u/Sandip_Tiwari)\
**Post date:** [July 24, 2024, 3:03pm UTC](https://forum.inductiveautomation.com/t/oee-calculation-in-ignition/84020/6 "2024-07-24T15:03:57Z")

</div>

![OEE CALCULATION QUERY 123](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/9/a91947ce5578fa2ea219704b6ab23b30efe8ef1c.png)  
I have data tags coming from controller which will provide me real time data values and i want to perform some calculation on new tag just like OEE.  
Please let me know that how to perform calculation in Ignition

1. Expression
2. Properties
3. Tag binding  
where i have to write the python code ?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 24, 2024, 3:07pm UTC](https://forum.inductiveautomation.com/t/oee-calculation-in-ignition/84020/7 "2024-07-24T15:07:10Z")

</div>

What tags have you got (post their names) and what calculation do you want to perform to calculate OEE?

---

<div class="post-metadata">

**Author:** ![Sandip\_Tiwari](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sandip\_Tiwari](https://forum.inductiveautomation.com/u/Sandip_Tiwari)\
**Post date:** [July 25, 2024, 5:44am UTC](https://forum.inductiveautomation.com/t/oee-calculation-in-ignition/84020/8 "2024-07-25T05:44:48Z")

</div>

![AVAILABILITY FOR OEE](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/f/cf97e2115ed22c934635f7a5cdd701f54dcc1fcb.png)

When I tried to calculate availability using auto operation time and power on time in Ignition Designer, I couldn't retrieve the power on time data directly from Ignition. Instead, I had to manually input the power on time. How can I fetch the power on time value directly from Ignition Designer for my calculations, rather than using a fixed value in my code?

---

<div class="post-metadata">

**Author:** ![Ujwal\_Wankhede](https://avatars.discourse-cdn.com/v4/letter/u/4af34b/32.png) [@Ujwal\_Wankhede](https://forum.inductiveautomation.com/u/Ujwal_Wankhede)\
**Post date:** [July 25, 2024, 6:17am UTC](https://forum.inductiveautomation.com/t/oee-calculation-in-ignition/84020/9 "2024-07-25T06:17:52Z")

</div>

Use _Expression Structure_ Binding to access multiple data  
 ![Expression Structure](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/8/388667822ca4df7a84828a8127b95ebde9b2866c.png)

---

<div class="post-metadata">

**Author:** ![Sandip\_Tiwari](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sandip\_Tiwari](https://forum.inductiveautomation.com/u/Sandip_Tiwari)\
**Post date:** [July 25, 2024, 6:27am UTC](https://forum.inductiveautomation.com/t/oee-calculation-in-ignition/84020/10 "2024-07-25T06:27:32Z")

</div>

For the calculation of OEE , We need Three Things :

1. Performance
2. Availability  
3.Quality  
so the formulae is OEE = Performance \*Availability \* Quality
