Skip to content

Instantly share code, notes, and snippets.

@jpdillingham
Created January 28, 2017 03:59
Show Gist options
  • Save jpdillingham/75aef4fb369492edd7d836cb4c35c369 to your computer and use it in GitHub Desktop.
Save jpdillingham/75aef4fb369492edd7d836cb4c35c369 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<KPIDefinition xsi:schemaLocation="http://www.mesa.org/xml/KPI-ML-V01 KPI-ML-V01.xsd" xmlns="http://www.mesa.org/xml/KPI-ML-V01" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ID>OEE</ID>
<Description>
The OEE Index represents the availability of a work unit, the effectiveness of the work unit, and the quality ratio KPIs integrated in a single indicator.
</Description>
<Name>Overall Equipment Effectiveness Index</Name>
<Scope>Work Unit</Scope>
<Scope>Product</Scope>
<Scope>Time Period</Scope>
<Scope>Product</Scope>
<Scope>Defect Types</Scope>
<Formula>OEE Index = Availability * Effectiveness * Quality Ratio</Formula>
<UnitOfMeasure>%</UnitOfMeasure>
<Range>
<ID>Natural</ID>
<Description>Natural Range</Description>
<LowerLimit>0</LowerLimit>
<UpperLimit>100</UpperLimit>
</Range>
<Trend>Higher-is-better</Trend>
<Timing>On-demand</Timing>
<Timing>Periodically</Timing>
<Timing>Real-time</Timing>
<Audience>Operator</Audience>
<Audience>Supervisor</Audience>
<Audience>Management</Audience>
<ProductionMethodology>Discrete</ProductionMethodology>
<ProductionMethodology>Batch</ProductionMethodology>
<ProductionMethodology>Continuous</ProductionMethodology>
<Notes>
"Overall Equipment Effectiveness (OEE) is an indicator for the efficiency of work units, work centers, and areas with several work units or an entire work center. The OEE Index forms the basis for improvements by better production information, identification of production losses, and improvement of the product quality by optimized processes. The calculation of OEE based on the hierarchy structure is only useful if the characteristic of the work unit processes would be comparable. Before starting a benchmark based on the OEE index the criteria for comparability should be checked."
</Notes>
</KPIDefinition>
--------------------------------------------------------------------------------------------------------------------------------------
{
"ID": {
"Value": "OEE"
},
"Description": [
{
"Value": "\n The OEE Index represents the availability of a work unit, the effectiveness of the work unit, and the quality ratio KPIs integrated in a single indicator.\n "
}
],
"Name": [
{
"Value": "Overall Equipment Effectiveness Index"
}
],
"Scope": [
{
"Value": "Work Unit"
},
{
"Value": "Product"
},
{
"Value": "Time Period"
},
{
"Value": "Product"
},
{
"Value": "Defect Types"
}
],
"Formula": {
"Value": "OEE Index = Availability * Effectiveness * Quality Ratio"
},
"UnitOfMeasure": {
"Value": "%"
},
"Range": [
{
"ID": {
"Value": "Natural"
},
"Description": [
{
"Value": "Natural Range"
}
],
"LowerLimit": {
"Value": 0.0
},
"UpperLimit": {
"Value": 100.0
}
}
],
"Trend": {
"Value": "Higher-is-better"
},
"Timing": [
{
"Value": "On-demand"
},
{
"Value": "Periodically"
},
{
"Value": "Real-time"
}
],
"Audience": [
{
"Value": "Operator"
},
{
"Value": "Supervisor"
},
{
"Value": "Management"
}
],
"ProductionMethodology": [
{
"Value": "Discrete"
},
{
"Value": "Batch"
},
{
"Value": "Continuous"
}
],
"Notes": [
{
"Value": "\n \"Overall Equipment Effectiveness (OEE) is an indicator for the efficiency of work units, work centers, and areas with several work units or an entire work center. The OEE Index forms the basis for improvements by better production information, identification of production losses, and improvement of the product quality by optimized processes. The calculation of OEE based on the hierarchy structure is only useful if the characteristic of the work unit processes would be comparable. Before starting a benchmark based on the OEE index the criteria for comparability should be checked.\"\n "
}
]
}
-------------------------------------------------------------------------------------------------------------------------------------
XmlSerializer serializer = new XmlSerializer(typeof(KPIDefinitionType));
KPIDefinitionType kd = (KPIDefinitionType)serializer.Deserialize(new FileStream(@"C:\KPI-ML\KPI-ML-OEE.xml", FileMode.Open));
string json = JsonConvert.SerializeObject(kd, Formatting.Indented, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
File.WriteAllText(@"C:\KPI-ML\KPI-ML-OEE.json", json);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment