From 38ef2e628746e9853ded93de42e348fb03bb3f62 Mon Sep 17 00:00:00 2001 From: Lucio Maranta Date: Fri, 27 Apr 2018 10:54:07 +0000 Subject: [PATCH] --- CMS_CORE_Library/ToolConfigurations.cs | 74 ++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 CMS_CORE_Library/ToolConfigurations.cs diff --git a/CMS_CORE_Library/ToolConfigurations.cs b/CMS_CORE_Library/ToolConfigurations.cs new file mode 100644 index 0000000..d0caded --- /dev/null +++ b/CMS_CORE_Library/ToolConfigurations.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using static CMS_CORE_Library.DataStructures; + +namespace CMS_CORE_Library +{ + public static class ToolConfigurations + { + public static List SiemensToolsConfig = new List() + { + new ToolConfiguration{Name = "id", Type = "int", SelectValues = null, Category = "general"}, + new ToolConfiguration{Name= "toolType", Type = "select", Category = "general", + SelectValues = new Dictionary() + { + {100, "milling"}, + {110, "ballNoseAndMill"}, + {111, "canonicalBallEnd"}, + {120, "endMill" }, + {121, "endMillCornerRounding" }, + {130, "angleHeadCutter" }, + {131, "cornRoundAngHdCut" }, + {140, "facingTool" }, + {145, "threadCutter" }, + {150, "sideMill" }, + {151, "saw" }, + {155, "bevelledCutter" }, + {156, "bevelledCutterCorner" }, + {157, "tapDieSinkCutter" }, + {160, "drillAndThreadCut" } + }}, + new ToolConfiguration{Name = "toolLifeType", Type="select", Category = "general", + SelectValues = new Dictionary() + { + {0, "toolLifeType"}, + {1, "countLife"}, + {2, "wearLife"} + }}, + new ToolConfiguration{Name = "familyName", Type = "string", SelectValues = null, Category = "family"}, + new ToolConfiguration{Name = "childId", Type = "int", SelectValues = null, Category = "family"}, + + new ToolConfiguration{Name = "isActive", Type = "boolean", SelectValues = null, Category = "state"}, + new ToolConfiguration{Name = "isInhibited", Type = "boolean", SelectValues = null, Category = "state"}, + new ToolConfiguration{Name = "fixedPlace", Type = "boolean", SelectValues = null, Category = "state"}, + new ToolConfiguration{Name = "isMeasured", Type = "boolean", SelectValues = null, Category = "state"}, + new ToolConfiguration{Name = "changeTool", Type = "boolean", SelectValues = null, Category = "state"}, + new ToolConfiguration{Name = "isInUse", Type = "boolean", SelectValues = null, Category = "state"}, + new ToolConfiguration{Name = "preAlarm", Type = "boolean", SelectValues = null, Category = "state"}, + + new ToolConfiguration{Name = "cooling1", Type = "boolean", SelectValues = null, Category = "cooling"}, + new ToolConfiguration{Name = "cooling2", Type = "boolean", SelectValues = null, Category = "cooling" }, + + new ToolConfiguration{Name = "magazinePositionType", Type = "int", Category = "magazine"}, + new ToolConfiguration{Name = "leftSize", Type = "int", Category = "magazine"}, + new ToolConfiguration{Name = "rightSize", Type = "int", Category = "magazine"}, + + new ToolConfiguration{Name = "rotation", Type = "select", Category = "head", + SelectValues = new Dictionary() + { + {0, "none"}, + {1, "clockWhise"}, + {2, "counterClockWhise"} + }}, + + new ToolConfiguration{Name = "edgeId", Type = "int", SelectValues = null, Category = "edge"}, + new ToolConfiguration{Name = "edgeResidualLife", Type = "double", SelectValues = null, Category = "edge"}, + new ToolConfiguration{Name = "edgeNominalLife", Type = "double", SelectValues = null, Category = "edge"}, + new ToolConfiguration{Name = "edgeNominalLife", Type = "double", SelectValues = null, Category = "edge"}, + new ToolConfiguration{Name = "edgePreAlarmVal", Type = "double", SelectValues = null, Category = "edge"} + }; + } +}